3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar['key'] = "name"; $array[] = $json_encode($ar); $json = $json_encode($array); echo $json;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sfaNu
function name:  (null)
number of ops:  13
compiled vars:  !0 = $ar, !1 = $array, !2 = $json_encode, !3 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'key'
          1        OP_DATA                                                  'name'
    4     2        INIT_DYNAMIC_CALL                                        !2
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $6      
          5        ASSIGN_DIM                                               !1
          6        OP_DATA                                                  $6
    5     7        INIT_DYNAMIC_CALL                                        !2
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $7      
         10        ASSIGN                                                   !3, $7
    7    11        ECHO                                                     !3
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.06 ms | 1392 KiB | 13 Q