3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public $myVar; public function myMethod() { } } $instance = new MyClass(); $instance->myVar = "Hello World"; // Assign "Hello World" to "myVar" $instance->myMethod(); // Run "myMethod()" echo myVar; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5g01M
function name:  (null)
number of ops:  10
compiled vars:  !0 = $instance
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'MyClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        ASSIGN_OBJ                                               !0, 'myVar'
          4        OP_DATA                                                  'Hello+World'
   13     5        INIT_METHOD_CALL                                         !0, 'myMethod'
          6        DO_FCALL                                      0          
   15     7        FETCH_CONSTANT                                   ~6      'myVar'
          8        ECHO                                                     ~6
   17     9      > RETURN                                                   1

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

End of function mymethod

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.32 ms | 1393 KiB | 13 Q