3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = 19; $s = ''; $x = 1; $y = 1; $ammount = 5; while ($x <= $t) { $s.= rand(1,9); $x++; } echo $s."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/0iqui
function name:  (null)
number of ops:  17
compiled vars:  !0 = $t, !1 = $s, !2 = $x, !3 = $y, !4 = $ammount
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 19
    3     1        ASSIGN                                                   !1, ''
    4     2        ASSIGN                                                   !2, 1
    5     3        ASSIGN                                                   !3, 1
    6     4        ASSIGN                                                   !4, 5
    8     5      > JMP                                                      ->12
    9     6    >   INIT_FCALL                                               'rand'
          7        SEND_VAL                                                 1
          8        SEND_VAL                                                 9
          9        DO_ICALL                                         $10     
         10        ASSIGN_OP                                     8          !1, $10
   10    11        PRE_INC                                                  !2
    8    12    >   IS_SMALLER_OR_EQUAL                                      !2, !0
         13      > JMPNZ                                                    ~13, ->6
   12    14    >   CONCAT                                           ~14     !1, '%0A'
         15        ECHO                                                     ~14
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.22 ms | 1395 KiB | 15 Q