3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.08 ms | 1394 KiB | 19 Q