3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function __construct() {} public static function greet() { echo "Hi!\n"; } } A::greet(); new A();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l6kOh2
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  'A', 'greet'
          1        DO_FCALL                                      0          
   12     2        NEW                                              $1      'A'
          3        DO_FCALL                                      0          
          4        FREE                                                     $1
          5      > RETURN                                                   1

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

End of function __construct

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

End of function greet

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.44 ms | 1441 KiB | 13 Q