3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $p = json_encode(array('Foo', array('baz' => 14, 45 => 'Bar'))); print_r(json_decode($p, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bpAIM
function name:  (null)
number of ops:  13
compiled vars:  !0 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_encode'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                         $1      
          3        ASSIGN                                           ~2      !0, $1
          4        ECHO                                                     ~2
    4     5        INIT_FCALL                                               'print_r'
          6        INIT_FCALL                                               'json_decode'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.12 ms | 1394 KiB | 19 Q