<?php
print_r(array(
'JSON_ERROR_NONE' => JSON_ERROR_NONE,
'JSON_ERROR_DEPTH' => JSON_ERROR_DEPTH,
'JSON_ERROR_STATE_MISMATCH' => JSON_ERROR_STATE_MISMATCH,
'JSON_ERROR_CTRL_CHAR' => JSON_ERROR_CTRL_CHAR,
'JSON_ERROR_SYNTAX' => JSON_ERROR_SYNTAX,
'JSON_ERROR_UTF8' => JSON_ERROR_UTF8,
'JSON_ERROR_RECURSION' => JSON_ERROR_RECURSION,
'JSON_ERROR_INF_OR_NAN' => JSON_ERROR_INF_OR_NAN,
'JSON_ERROR_UNSUPPORTED_TYPE' => JSON_ERROR_UNSUPPORTED_TYPE
));
$vTest = array("test"=> null);
echo json_encode($vTest);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/skk6m
function name: (null)
number of ops: 9
compiled vars: !0 = $vTest
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > INIT_FCALL 'print_r'
4 1 SEND_VAL <array>
3 2 DO_ICALL
14 3 ASSIGN !0, <array>
16 4 INIT_FCALL 'json_encode'
5 SEND_VAR !0
6 DO_ICALL $3
7 ECHO $3
8 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
148.5 ms | 1458 KiB | 15 Q