3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($arg1, $arg2, $arg3) { var_dump($arg1, $arg2, $arg3); } test("1", "2", false); print "\n---\n"; $arr = ["1", "2", false]; test(...$arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GJjH1
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAL                                                 '1'
          2        SEND_VAL                                                 '2'
          3        SEND_VAL                                                 <false>
          4        DO_FCALL                                      0          
   10     5        ECHO                                                     '%0A---%0A'
   12     6        ASSIGN                                                   !0, <array>
   13     7        INIT_FCALL                                               'test'
          8        SEND_UNPACK                                              !0
          9        CHECK_UNDEF_ARGS                                         
         10        DO_FCALL                                      1          
         11      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GJjH1
function name:  test
number of ops:  9
compiled vars:  !0 = $arg1, !1 = $arg2, !2 = $arg3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    5     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                                 
    6     8      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.17 ms | 999 KiB | 16 Q