3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { public static $class = __CLASS__; public static $file = __FILE__; public function f() { var_dump(__CLASS__); var_dump(__FILE__); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bSODb
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                   1

Class A:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bSODb
function name:  f
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_CLASS_NAME                                 ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   10     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAL                                                 '%2Fin%2FbSODb'
          6        DO_ICALL                                                 
   11     7      > RETURN                                                   null

End of function f

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.01 ms | 1394 KiB | 15 Q