3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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'); } } error_reporting(0); (new Something)->run(); error_reporting(E_ALL | E_STRICT); (new Something)->run();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y8sOh
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     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          
   28     7        INIT_FCALL                                               'error_reporting'
          8        SEND_VAL                                                 32767
          9        DO_ICALL                                                 
   29    10        NEW                                              $5      'Something'
         11        DO_FCALL                                      0          
         12        INIT_METHOD_CALL                                         $5, 'run'
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

Class Something:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y8sOh
function name:  run
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_STATIC_METHOD_CALL                                  'Crazy', 'doSomething'
          1        DO_FCALL                                      0          
    9     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/Y8sOh
function name:  log
number of ops:  3
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        ECHO                                                     !0
   13     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/Y8sOh
function name:  doSomething
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_METHOD_CALL                                         'log'
          1        SEND_VAL_EX                                              'Hello+World'
          2        DO_FCALL                                      0          
   21     3      > RETURN                                                   null

End of function dosomething

End of class Crazy.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.69 ms | 1396 KiB | 15 Q