3v4l.org

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

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

End of function cube

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.94 ms | 1386 KiB | 17 Q