3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.37 ms | 1399 KiB | 15 Q