3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Controller { public function showAction($request) { echo 'foo'; } } class MyController extends Controller { public function showAction($request, $_format = 'html') { parent::showAction($request, $_format); } } $c = new MyController(); $c->showAction('request', 'json');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BNIhV
function name:  (null)
number of ops:  8
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $1      'MyController'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   21     3        INIT_METHOD_CALL                                         !0, 'showAction'
          4        SEND_VAL_EX                                              'request'
          5        SEND_VAL_EX                                              'json'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Controller:
Function showaction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BNIhV
function name:  showAction
number of ops:  3
compiled vars:  !0 = $request
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ECHO                                                     'foo'
    7     2      > RETURN                                                   null

End of function showaction

End of class Controller.

Class MyController:
Function showaction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BNIhV
function name:  showAction
number of ops:  7
compiled vars:  !0 = $request, !1 = $_format
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      'html'
   14     2        INIT_STATIC_METHOD_CALL                                  'showAction'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0          
   15     6      > RETURN                                                   null

End of function showaction

End of class MyController.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.77 ms | 1394 KiB | 13 Q