3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __construct() { } public function doIt() { echo Test::doTheOther(). "\n"; } public function doTheOther() { echo "Doing the Other..\n"; } } $t = new Test(); $t->doIt(); Test::doTheOther(); echo PHP_VERSION; // your code goes here
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tZ2UT
function name:  (null)
number of ops:  9
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   23     3        INIT_METHOD_CALL                                         !0, 'doIt'
          4        DO_FCALL                                      0          
   24     5        INIT_STATIC_METHOD_CALL                                  'Test', 'doTheOther'
          6        DO_FCALL                                      0          
   25     7        ECHO                                                     '8.0.0'
   26     8      > RETURN                                                   1

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

End of function __construct

Function doit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tZ2UT
function name:  doIt
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_STATIC_METHOD_CALL                                  'Test', 'doTheOther'
          1        DO_FCALL                                      0  $0      
          2        CONCAT                                           ~1      $0, '%0A'
          3        ECHO                                                     ~1
   14     4      > RETURN                                                   null

End of function doit

Function dotheother:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tZ2UT
function name:  doTheOther
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   ECHO                                                     'Doing+the+Other..%0A'
   19     1      > RETURN                                                   null

End of function dotheother

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.85 ms | 1394 KiB | 13 Q