3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function doStuff(){ echo 'Hi!'; } } $obj = new stdClass; $obj->theFoo = new Foo(); $obj->theFoo->doStuff(); @$obj->notTheFoo->doStuff();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OLJmG
function name:  (null)
number of ops:  16
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        NEW                                              $5      'Foo'
          4        DO_FCALL                                      0          
          5        ASSIGN_OBJ                                               !0, 'theFoo'
          6        OP_DATA                                                  $5
   11     7        FETCH_OBJ_R                                      ~7      !0, 'theFoo'
          8        INIT_METHOD_CALL                                         ~7, 'doStuff'
          9        DO_FCALL                                      0          
   12    10        BEGIN_SILENCE                                    ~9      
         11        FETCH_OBJ_R                                      ~10     !0, 'notTheFoo'
         12        INIT_METHOD_CALL                                         ~10, 'doStuff'
         13        DO_FCALL                                      0          
         14        END_SILENCE                                              ~9
         15      > RETURN                                                   1

Class Foo:
Function dostuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OLJmG
function name:  doStuff
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'Hi%21'
    5     1      > RETURN                                                   null

End of function dostuff

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.25 ms | 1394 KiB | 13 Q