3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xpto1($name, $val) { xpto2($name, $val, true); } function xpto2($name, $val = "xpto", $xcenas) { echo 'name: ' . $name; echo 'val: ' . $val; echo 'xcenas: ' . $xcenas; } xpto1('abc');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TmjNU
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     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/TmjNU
function name:  xpto1
number of ops:  8
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        SEND_VAL_EX                                              <true>
          6        DO_FCALL                                      0          
    5     7      > 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/TmjNU
function name:  xpto2
number of ops:  10
compiled vars:  !0 = $name, !1 = $val, !2 = $xcenas
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      'xpto'
          2        RECV                                             !2      
    8     3        CONCAT                                           ~3      'name%3A+', !0
          4        ECHO                                                     ~3
    9     5        CONCAT                                           ~4      'val%3A+', !1
          6        ECHO                                                     ~4
   10     7        CONCAT                                           ~5      'xcenas%3A+', !2
          8        ECHO                                                     ~5
   11     9      > RETURN                                                   null

End of function xpto2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.94 ms | 1398 KiB | 14 Q