3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface CommandInterface { public function execute(); } class PriceTest implements CommandInterface { public function execute($i) { echo 'test ' . $i; return null; } } (new PriceTest)->execute('aslkjdfnlaksdf');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1KhhB
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'pricetest'
   16     1        NEW                                              $0      'PriceTest'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $0, 'execute'
          4        SEND_VAL_EX                                              'aslkjdfnlaksdf'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function execute

End of class CommandInterface.

Class PriceTest:
Function execute:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1KhhB
function name:  execute
number of ops:  5
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        CONCAT                                           ~1      'test+', !0
          2        ECHO                                                     ~1
   12     3      > RETURN                                                   null
   13     4*     > RETURN                                                   null

End of function execute

End of class PriceTest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.46 ms | 1394 KiB | 13 Q