3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo (string &...$in): string { return implode(', ', $in); } $x = 1; $y = 2; $z = 3; echo foo($x, $y, $z);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Nl5s
function name:  (null)
number of ops:  10
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 1
    7     1        ASSIGN                                                   !1, 2
    8     2        ASSIGN                                                   !2, 3
    9     3        INIT_FCALL                                               'foo'
          4        SEND_REF                                                 !0
          5        SEND_REF                                                 !1
          6        SEND_REF                                                 !2
          7        DO_FCALL                                      0  $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Nl5s
function name:  foo
number of ops:  9
compiled vars:  !0 = $in
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_VARIADIC                                    !0      
    3     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '%2C+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        VERIFY_RETURN_TYPE                                       $1
          6      > RETURN                                                   $1
    4     7*       VERIFY_RETURN_TYPE                                       
          8*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.22 ms | 1453 KiB | 15 Q