3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = array('a'=> chr(2)." hello"); echo(json_encode($arr));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I38XJ
function name:  (null)
number of ops:  7
compiled vars:  !0 = $arr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_ARRAY                                           ~1      '%02+hello', 'a'
          1        ASSIGN                                                       !0, ~1
    3     2        INIT_FCALL                                                   'json_encode'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $3      
          5        ECHO                                                         $3
          6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.7 ms | 1992 KiB | 14 Q