3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.09 ms | 1399 KiB | 15 Q