3v4l.org

run code in 300+ PHP versions simultaneously
<?php function with($object) { return $object; } class MyClass { public function sayHi() { return 'hi'; } } with(new MyClass)->sayHi();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eGECM
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'with'
          1        NEW                                              $0      'MyClass'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $0
          4        DO_FCALL                                      0  $2      
          5        INIT_METHOD_CALL                                         $2, 'sayHi'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function with:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eGECM
function name:  with
number of ops:  3
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1      > RETURN                                                   !0
    6     2*     > RETURN                                                   null

End of function with

Class MyClass:
Function sayhi:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eGECM
function name:  sayHi
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                   'hi'
   13     1*     > RETURN                                                   null

End of function sayhi

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.08 ms | 1397 KiB | 14 Q