3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Pizza{ public function show(){ return 'Yeas - ' . phpversion(); } public static function xpto(){ return new static; } } echo Pizza::xpto()->show();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rWbSB
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   INIT_STATIC_METHOD_CALL                                      'Pizza', 'xpto'
          1        DO_FCALL                                          0  $0      
          2        INIT_METHOD_CALL                                             $0, 'show'
          3        DO_FCALL                                          0  $1      
          4        ECHO                                                         $1
          5      > RETURN                                                       1

Class Pizza:
Function show:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rWbSB
function name:  show
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                                   'phpversion'
          1        DO_ICALL                                             $0      
          2        CONCAT                                               ~1      'Yeas+-+', $0
          3      > RETURN                                                       ~1
    7     4*     > RETURN                                                       null

End of function show

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

End of function xpto

End of class Pizza.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.7 ms | 2405 KiB | 14 Q