3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.27 ms | 1386 KiB | 15 Q