3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $total = $t = 2057; $win = $w = 1223; while(($w/$t) < 0.60) { $w++; $t++; } echo "streak: ", t - $total;
based on N6lJ9
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Jump found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
Jump found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
Jump found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
Branch analysis from position: 5
filename:       /in/BopLZ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $total, !1 = $t, !2 = $win, !3 = $w
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                           $4      !1, 2057
         1        ASSIGN                                                   !0, $4
   4     2        ASSIGN                                           $6      !3, 1223
         3        ASSIGN                                                   !2, $6
   6     4      > JMP                                                      ->9
   7     5    >   POST_INC                                         ~8      !3
         6        FREE                                                     ~8
   8     7        POST_INC                                         ~9      !1
         8        FREE                                                     ~9
   6     9    >   DIV                                              ~10     !3, !1
        10        IS_SMALLER                                       ~11     ~10, 0.6
        11      > JMPNZ                                                    ~11, ->5
  11    12    >   ECHO                                                     'streak%3A+'
        13        FETCH_CONSTANT                                   ~12     't'
        14        SUB                                              ~13     ~12, !0
        15        ECHO                                                     ~13
        16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0