3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = 19; $s = ''; $x = 1; $y = 1; $ammount = 5; while ($x <= $t) { $s.= rand(1,9); $x++; } echo $s."\n";
based on APe8N
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 13
Branch analysis from position: 13
Jump found. Position 1 = 15, Position 2 = 6
Branch analysis from position: 15
Jump found. Position 1 = -2
Branch analysis from position: 6
Jump found. Position 1 = 15, Position 2 = 6
Branch analysis from position: 15
Branch analysis from position: 6
filename:       /in/0iqui
function name:  (null)
number of ops:  18
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                                                      ->13
   9     6    >   INIT_FCALL                                               'rand'
         7        SEND_VAL                                                 1
         8        SEND_VAL                                                 9
         9        DO_ICALL                                         $10     
        10        ASSIGN_CONCAT                                 0          !1, $10
  10    11        POST_INC                                         ~12     !2
        12        FREE                                                     ~12
   8    13    >   IS_SMALLER_OR_EQUAL                              ~13     !2, !0
        14      > JMPNZ                                                    ~13, ->6
  12    15    >   CONCAT                                           ~14     !1, '%0A'
        16        ECHO                                                     ~14
        17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0