3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public $foo = 1; } $Obj1 = new Bar( Foo.bar() ); // class Foo !? $Obj2 = new stdClass( getFoo( $Obj1 ) ); // getFoo() !?
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ljrfk
function name:  (null)
number of ops:  16
compiled vars:  !0 = $Obj1, !1 = $Obj2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'Bar'
          1        FETCH_CONSTANT                                   ~3      'Foo'
          2        INIT_FCALL_BY_NAME                                       'bar'
          3        DO_FCALL                                      0  $4      
          4        CONCAT                                           ~5      ~3, $4
          5        SEND_VAL_EX                                              ~5
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $2
    8     8        NEW                                              $8      'stdClass'
          9        INIT_FCALL_BY_NAME                                       'getFoo'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $9      
         12        SEND_VAR_NO_REF_EX                                       $9
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !1, $8
         15      > RETURN                                                   1

Class Bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
133.45 ms | 1397 KiB | 13 Q