3v4l.org

run code in 300+ PHP versions simultaneously
<?php function print_name($first, $middle, $last) { echo $last . ', ' . $first . ' ' . $middle; } $name_array = ['Joel', 'So Damn Friendly', 'Clermont']; print_name(...$name_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DNF9p
function name:  (null)
number of ops:  6
compiled vars:  !0 = $name_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'print_name'
          2        SEND_UNPACK                                              !0
          3        CHECK_UNDEF_ARGS                                         
          4        DO_FCALL                                      1          
          5      > RETURN                                                   1

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

End of function print_name

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.1 ms | 1397 KiB | 14 Q