3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.01 ms | 1394 KiB | 17 Q