3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); class Something { public function run() { // instace method called statically. Crazy::doSomething(); } public function log($var) { echo $var; } } class Crazy { public function doSomething() { $this->log('Hello World'); } } (new Something)->run();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WT3Uk
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
   26     3        NEW                                              $1      'Something'
          4        DO_FCALL                                      0          
          5        INIT_METHOD_CALL                                         $1, 'run'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Something:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WT3Uk
function name:  run
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_STATIC_METHOD_CALL                                  'Crazy', 'doSomething'
          1        DO_FCALL                                      0          
   10     2      > RETURN                                                   null

End of function run

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

End of function log

End of class Something.

Class Crazy:
Function dosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WT3Uk
function name:  doSomething
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_METHOD_CALL                                         'log'
          1        SEND_VAL_EX                                              'Hello+World'
          2        DO_FCALL                                      0          
   22     3      > RETURN                                                   null

End of function dosomething

End of class Crazy.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.98 ms | 1396 KiB | 15 Q