3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; while($i < 5000) { $data1[] = rand(); $i++; } function cube($n){ return ($n*$n*$n); } $b = array_map("cube", $data1); print_r($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
Branch analysis from position: 2
filename:       /in/ItJgj
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i, !1 = $data1, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1      > JMP                                                      ->7
    5     2    >   INIT_FCALL                                               'rand'
          3        DO_ICALL                                         $5      
          4        ASSIGN_DIM                                               !1
          5        OP_DATA                                                  $5
    6     6        PRE_INC                                                  !0
    4     7    >   IS_SMALLER                                               !0, 5000
          8      > JMPNZ                                                    ~7, ->2
   12     9    >   INIT_FCALL                                               'array_map'
         10        SEND_VAL                                                 'cube'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
   14    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

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

End of function cube

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.44 ms | 1395 KiB | 19 Q