3v4l.org

run code in 300+ PHP versions simultaneously
<?php $true = true; while($true){ $ticket = rand(1,89); if($ticket != 45) $true = !$true; } echo $ticket;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 2
Branch analysis from position: 12
Branch analysis from position: 2
Branch analysis from position: 11
filename:       /in/BaRht
function name:  (null)
number of ops:  14
compiled vars:  !0 = $true, !1 = $ticket
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <true>
    4     1      > JMP                                                      ->11
    5     2    >   INIT_FCALL                                               'rand'
          3        SEND_VAL                                                 1
          4        SEND_VAL                                                 89
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    6     7        IS_NOT_EQUAL                                             !1, 45
          8      > JMPZ                                                     ~5, ->11
          9    >   BOOL_NOT                                         ~6      !0
         10        ASSIGN                                                   !0, ~6
    4    11    > > JMPNZ                                                    !0, ->2
    9    12    >   ECHO                                                     !1
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.75 ms | 1009 KiB | 14 Q