3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; while($i < 10000) { $data1[] = rand(); } function cube($n){ return ($n*$n*$n); } $b = array_map("cube", $data1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
Branch analysis from position: 2
filename:       /in/RTScL
function name:  (null)
number of ops:  14
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                                                      ->6
    5     2    >   INIT_FCALL                                               'rand'
          3        DO_ICALL                                         $5      
          4        ASSIGN_DIM                                               !1
          5        OP_DATA                                                  $5
    4     6    >   IS_SMALLER                                               !0, 10000
          7      > JMPNZ                                                    ~6, ->2
   11     8    >   INIT_FCALL                                               'array_map'
          9        SEND_VAL                                                 'cube'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
         13      > RETURN                                                   1

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

End of function cube

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.38 ms | 1387 KiB | 17 Q