3v4l.org

run code in 300+ PHP versions simultaneously
<?php $randList = array(); for ($i=0;$i<1000000;$i++) { $randList[] = rand(1, 10); } foreach ($randList as $number) { //echo "$number "; } echo "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
Branch analysis from position: 3
filename:       /in/ttDeK
function name:  (null)
number of ops:  18
compiled vars:  !0 = $randList, !1 = $i, !2 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->10
    4     3    >   INIT_FCALL                                               'rand'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 10
          6        DO_ICALL                                         $6      
          7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  $6
    3     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 1000000
         11      > JMPNZ                                                    ~8, ->3
    9    12    > > FE_RESET_R                                       $9      !0, ->15
         13    > > FE_FETCH_R                                               $9, !2, ->15
         14    > > JMP                                                      ->13
         15    >   FE_FREE                                                  $9
   13    16        ECHO                                                     '%0A'
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.07 ms | 1395 KiB | 15 Q