---
name: "diag_testScriptSimpleVM"
type: command
status: ok
groups: ["Diagnostic", "Performance Profiling"]
arma3_since: "2.16"
branch: "diag prof"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/diag_testScriptSimpleVM
revid: 373686
updated: 2025-06-12T19:27:16Z
---

# diag_testScriptSimpleVM

*Command · Diagnostic, Performance Profiling · Arma 3 v2.16 · branch: diag prof*

## Description

Outputs the provided SQF code's end code.

## Syntax

```sqf
diag_testScriptSimpleVM code
```

**Parameters:**

- `code`: [Code](../topics/Code.md) - the code to process

**Returns:** [Array](../topics/Array.md)

## Examples

### Example 1

```sqf
private _result = diag_testScriptSimpleVM { leader _x == _x && { alive _x && { not captive _x } } };
hint str _result;
/*
["Success", 360, "
0000:const any
0010:unary leader (variants 3)
0060:const any
0070:binary == (variants 2)
00C8:jmpIfFalse 0160
00D8:const any
00E8:unary alive (variants 1)
0108:jmpIfFalse 0160
0118:const any
0128:unary captive (variants 1)
0148:unary not (variants 1)
0160:ret(implicit)
"]
*/
```

## See also

Arma 3: Diagnostics Exe · Performance Profiling

<sub>Source: [BI Community Wiki — diag testScriptSimpleVM](https://community.bistudio.com/wiki/diag_testScriptSimpleVM) (revision 373686).</sub>
