3v4l.org

run code in 500+ PHP versions simultaneously
<?php function query1($query, ...$params) { return "Hello WOrld" . $query . implode(' :: ', $params); } function query2($query, ...$params) { return query1($query, ...$params); } echo query2("Hello"); echo query2("Hello", 12, 34, 222, 233);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sJ6S0
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                                   'query2'
          1        SEND_VAL                                                     'Hello'
          2        DO_FCALL                                          0  $0      
          3        ECHO                                                         $0
   13     4        INIT_FCALL                                                   'query2'
          5        SEND_VAL                                                     'Hello'
          6        SEND_VAL                                                     12
          7        SEND_VAL                                                     34
          8        SEND_VAL                                                     222
          9        SEND_VAL                                                     233
         10        DO_FCALL                                          0  $1      
         11        ECHO                                                         $1
         12      > RETURN                                                       1

Function query1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sJ6S0
function name:  query1
number of ops:  7
compiled vars:  !0 = $query, !1 = $params
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV_VARIADIC                                        !1      
    4     2        CONCAT                                               ~2      'Hello+WOrld', !0
          3        FRAMELESS_ICALL_2                implode             ~3      '+%3A%3A+', !1
          4        CONCAT                                               ~4      ~2, ~3
          5      > RETURN                                                       ~4
    5     6*     > RETURN                                                       null

End of function query1

Function query2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sJ6S0
function name:  query2
number of ops:  9
compiled vars:  !0 = $query, !1 = $params
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV                                                 !0      
          1        RECV_VARIADIC                                        !1      
    8     2        INIT_FCALL                                                   'query1'
          3        SEND_VAR                                                     !0
          4        SEND_UNPACK                                                  !1
          5        CHECK_UNDEF_ARGS                                             
          6        DO_FCALL                                          1  $2      
          7      > RETURN                                                       $2
    9     8*     > RETURN                                                       null

End of function query2

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
183.78 ms | 2595 KiB | 18 Q