3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new DateTimeZone('UTC'); $a->meow = 'test'; $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/tS2L6
function name:  (null)
number of ops:  16
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        ASSIGN_OBJ                                               !0, 'meow'
          5        OP_DATA                                                  'test'
    5     6        FETCH_OBJ_W                                      $6      !0, 'meow'
          7        ASSIGN_REF                                               !1, $6
    6     8        INIT_FCALL                                               'serialize'
          9        INIT_ARRAY                                       ~8      !0
         10        INIT_ARRAY                                       ~9      ~8
         11        ADD_ARRAY_ELEMENT                                ~9      !1
         12        SEND_VAL                                                 ~9
         13        DO_ICALL                                         $10     
         14        ECHO                                                     $10
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.4 ms | 1394 KiB | 15 Q