3v4l.org

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

Class Test:
Function bla:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F7O1k
function name:  bla
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $0      'Test'
          1        DO_FCALL                                      0          
          2        VERIFY_RETURN_TYPE                                       $0
          3      > RETURN                                                   $0
    5     4*       VERIFY_RETURN_TYPE                                       
          5*     > RETURN                                                   null

End of function bla

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.25 ms | 1393 KiB | 13 Q