3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = rand(); $h = rand(); $a = 1; for($l=0;$l<1000;$l++){ $a = $a*$i*$h; } echo $a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 9
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 9
Branch analysis from position: 15
Branch analysis from position: 9
filename:       /in/12bVA
function name:  (null)
number of ops:  17
compiled vars:  !0 = $i, !1 = $h, !2 = $a, !3 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'rand'
          1        DO_ICALL                                         $4      
          2        ASSIGN                                                   !0, $4
    3     3        INIT_FCALL                                               'rand'
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    4     6        ASSIGN                                                   !2, 1
    5     7        ASSIGN                                                   !3, 0
          8      > JMP                                                      ->13
    6     9    >   MUL                                              ~10     !2, !0
         10        MUL                                              ~11     !1, ~10
         11        ASSIGN                                                   !2, ~11
    5    12        PRE_INC                                                  !3
         13    >   IS_SMALLER                                               !3, 1000
         14      > JMPNZ                                                    ~14, ->9
    8    15    >   ECHO                                                     !2
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.78 ms | 1395 KiB | 15 Q