3v4l.org

run code in 300+ PHP versions simultaneously
<?php function MyClass($a) { return "MyStaticClass"; } class MyStaticClass { static public function staticMethod($b) { echo $b; } } MyClass("")::staticMethod("xx");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h5toJ
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL                                               'myclass'
          1        SEND_VAL                                                 ''
          2        DO_FCALL                                      0  $0      
          3        FETCH_CLASS                                   0  $1      $0
          4        INIT_STATIC_METHOD_CALL                                  $1, 'staticMethod'
          5        SEND_VAL_EX                                              'xx'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function myclass

Class MyStaticClass:
Function staticmethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h5toJ
function name:  staticMethod
number of ops:  3
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   14     1        ECHO                                                     !0
   15     2      > RETURN                                                   null

End of function staticmethod

End of class MyStaticClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.41 ms | 998 KiB | 14 Q