3v4l.org

run code in 300+ PHP versions simultaneously
<?php function cube($n, $m, $o) { return($n * $m * $o); } $a = array(1, 2, 3, 4, 5); $c = array(1, 2, 3, 4, 5); $d = array(1, 2, 3, 4, 5); $b = array_map("cube", $a, $c, $d); print_r($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ofost
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $c, !2 = $d, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
    9     2        ASSIGN                                                   !2, <array>
   11     3        INIT_FCALL                                               'array_map'
          4        SEND_VAL                                                 'cube'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !3, $7
   13    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Function cube:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ofost
function name:  cube
number of ops:  7
compiled vars:  !0 = $n, !1 = $m, !2 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3        MUL                                              ~3      !0, !1
          4        MUL                                              ~4      !2, ~3
          5      > RETURN                                                   ~4
    5     6*     > RETURN                                                   null

End of function cube

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.89 ms | 1395 KiB | 17 Q