3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = ['John', 'Brian', 'Raj']; $salary = ['500', '1000', '2000']; $dpart = ['HTML', 'CSS', 'PHP']; $address = ['Floor 3', 'Floor 5', 'Floor 6']; print_r( array_map( fn(...$col) => vsprintf("%s's salary is %d, depart is %s, address is %s", $col), $name, $salary, $dpart, $address ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jf3Kb
function name:  (null)
number of ops:  16
compiled vars:  !0 = $name, !1 = $salary, !2 = $dpart, !3 = $address
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    6     3        ASSIGN                                                   !3, <array>
    8     4        INIT_FCALL                                               'print_r'
    9     5        INIT_FCALL                                               'array_map'
   10     6        DECLARE_LAMBDA_FUNCTION                          ~8      [0]
          7        SEND_VAL                                                 ~8
   11     8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !2
         11        SEND_VAR                                                 !3
    9    12        DO_ICALL                                         $9      
   11    13        SEND_VAR                                                 $9
    8    14        DO_ICALL                                                 
   13    15      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jf3Kb
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $col
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV_VARIADIC                                    !0      
          1        INIT_FCALL                                               'vsprintf'
          2        SEND_VAL                                                 '%25s%27s+salary+is+%25d%2C+depart+is+%25s%2C+address+is+%25s'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
          6*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.21 ms | 1000 KiB | 16 Q