3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 1; } $a = ($b = new Foo)->bar; echo $a, $b->bar;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LEr9g
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                           ~4      !1, $2
          3        FETCH_OBJ_R                                      ~5      ~4, 'bar'
          4        ASSIGN                                                   !0, ~5
    9     5        ECHO                                                     !0
          6        FETCH_OBJ_R                                      ~7      !1, 'bar'
          7        ECHO                                                     ~7
          8      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.01 ms | 1392 KiB | 13 Q