3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public string $bar; } $foo = new Foo(); $foo->bar = 'bar'; var_dump($foo->bar); $arrayObject = new ArrayObject($foo); $arrayObject['bar'] = new \DateTimeImmutable("1986-08-20 midnight"); var_dump($foo->bar);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nTogS
function name:  (null)
number of ops:  23
compiled vars:  !0 = $foo, !1 = $arrayObject
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   NEW                                                  $2      'Foo'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    9     3        ASSIGN_OBJ                                                   !0, 'bar'
          4        OP_DATA                                                      'bar'
   11     5        INIT_FCALL                                                   'var_dump'
          6        FETCH_OBJ_R                                          ~6      !0, 'bar'
          7        SEND_VAL                                                     ~6
          8        DO_ICALL                                                     
   13     9        NEW                                                  $8      'ArrayObject'
         10        SEND_VAR_EX                                                  !0
         11        DO_FCALL                                          0          
         12        ASSIGN                                                       !1, $8
   14    13        NEW                                                  $12     'DateTimeImmutable'
         14        SEND_VAL_EX                                                  '1986-08-20+midnight'
         15        DO_FCALL                                          0          
         16        ASSIGN_DIM                                                   !1, 'bar'
         17        OP_DATA                                                      $12
   16    18        INIT_FCALL                                                   'var_dump'
         19        FETCH_OBJ_R                                          ~14     !0, 'bar'
         20        SEND_VAL                                                     ~14
         21        DO_ICALL                                                     
         22      > RETURN                                                       1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
153.9 ms | 3441 KiB | 14 Q