3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array ( '1' => 'A', '2' => 'B', '3' => 'C' ); $array2 = array ( '1' => 'A', '4' => 'B', '5' => 'D' ); $array3 = array ( '5' => 'A', '6' => 'E', '7' => 'D' ); $array4 = array ( '4' => 'A', '7' => 'B', '10' => 'C' ); function test() { $count = func_get_args(); print_r($count); } test($array1, $array2, $array3, $array4);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6ZrNg
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array1, !1 = $array2, !2 = $array3, !3 = $array4
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, <array>
   15     2        ASSIGN                                                   !2, <array>
   21     3        ASSIGN                                                   !3, <array>
   32     4        INIT_FCALL                                               'test'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        SEND_VAR                                                 !3
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6ZrNg
function name:  test
number of ops:  6
compiled vars:  !0 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   FUNC_GET_ARGS                                    ~1      
          1        ASSIGN                                                   !0, ~1
   29     2        INIT_FCALL                                               'print_r'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
   30     5      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.72 ms | 1397 KiB | 16 Q