3v4l.org

run code in 300+ PHP versions simultaneously
<?php $instance = new stdClass; $instance->f = $instance; var_dump(serialize([1, 2, 3, 5 => $instance, [$instance, $instance]]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rYASa
function name:  (null)
number of ops:  19
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
    4     3        ASSIGN_OBJ                                               !0, 'f'
          4        OP_DATA                                                  !0
    6     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'serialize'
          7        INIT_ARRAY                                       ~5      1
          8        ADD_ARRAY_ELEMENT                                ~5      2
          9        ADD_ARRAY_ELEMENT                                ~5      3
         10        ADD_ARRAY_ELEMENT                                ~5      !0, 5
         11        INIT_ARRAY                                       ~6      !0
         12        ADD_ARRAY_ELEMENT                                ~6      !0
         13        ADD_ARRAY_ELEMENT                                ~5      ~6
         14        SEND_VAL                                                 ~5
         15        DO_ICALL                                         $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.69 ms | 1386 KiB | 17 Q