3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xpto1($name, $val) { xpto2($name, $val); } function xpto2($name, $val = "xpto") { echo 'name: ' . $name; echo 'val: ' . $val; } xpto1('abc');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e8b9u
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'xpto1'
          1        SEND_VAL                                                 'abc'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function xpto1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e8b9u
function name:  xpto1
number of ops:  7
compiled vars:  !0 = $name, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL_BY_NAME                                       'xpto2'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0          
    5     6      > RETURN                                                   null

End of function xpto1

Function xpto2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e8b9u
function name:  xpto2
number of ops:  7
compiled vars:  !0 = $name, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      'xpto'
    8     2        CONCAT                                           ~2      'name%3A+', !0
          3        ECHO                                                     ~2
    9     4        CONCAT                                           ~3      'val%3A+', !1
          5        ECHO                                                     ~3
   10     6      > RETURN                                                   null

End of function xpto2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.19 ms | 1398 KiB | 14 Q