3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r = array('hoge'=> new \stdClass()); $j = json_encode($r); echo $j . "\n"; print_r(json_decode($j)); echo "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CclM7
function name:  (null)
number of ops:  18
compiled vars:  !0 = $r, !1 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~4      $2, 'hoge'
          3        ASSIGN                                                   !0, ~4
    3     4        INIT_FCALL                                               'json_encode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    4     8        CONCAT                                           ~8      !1, '%0A'
          9        ECHO                                                     ~8
    5    10        INIT_FCALL                                               'print_r'
         11        INIT_FCALL                                               'json_decode'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $9      
         14        SEND_VAR                                                 $9
         15        DO_ICALL                                                 
    6    16        ECHO                                                     '%0A'
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164 ms | 1394 KiB | 19 Q