3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "-----------------------------------------------------------------------------------<br>"; echo "trying functions with parameters <br>"; function funct_name ($name,$year){ echo "$name was borN on year $year <br>"; } funct_name(joel,1994); funct_name(arun,1986); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gXgEe
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     '-----------------------------------------------------------------------------------%3Cbr%3E'
    5     1        ECHO                                                     'trying+functions+with+parameters+%3Cbr%3E'
    9     2        INIT_FCALL                                               'funct_name'
          3        FETCH_CONSTANT                                   ~0      'joel'
          4        SEND_VAL                                                 ~0
          5        SEND_VAL                                                 1994
          6        DO_FCALL                                      0          
   10     7        INIT_FCALL                                               'funct_name'
          8        FETCH_CONSTANT                                   ~2      'arun'
          9        SEND_VAL                                                 ~2
         10        SEND_VAL                                                 1986
         11        DO_FCALL                                      0          
   11    12      > RETURN                                                   1

Function funct_name:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gXgEe
function name:  funct_name
number of ops:  8
compiled vars:  !0 = $name, !1 = $year
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        ROPE_INIT                                     4  ~3      !0
          3        ROPE_ADD                                      1  ~3      ~3, '+was+borN+on+year+'
          4        ROPE_ADD                                      2  ~3      ~3, !1
          5        ROPE_END                                      3  ~2      ~3, '+%3Cbr%3E'
          6        ECHO                                                     ~2
    8     7      > RETURN                                                   null

End of function funct_name

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.45 ms | 1398 KiB | 15 Q