3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.07 ms | 1394 KiB | 19 Q