3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass(); $a->{1} = 'Y'; $prop = 1; $b = json_decode(json_encode($a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3NIGJ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $prop, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
          3        ASSIGN_OBJ                                               !0, '1'
          4        OP_DATA                                                  'Y'
          5        ASSIGN                                                   !1, 1
          6        INIT_FCALL                                               'json_decode'
          7        INIT_FCALL                                               'json_encode'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $8      
         10        SEND_VAR                                                 $8
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !2, $9
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.8 ms | 1394 KiB | 17 Q