3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total = $t = 2057; $win = $w = 1223; while(($w/$t) < 0.60) { $w++; $t++; } echo "streak: ", t - $total;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
Branch analysis from position: 5
filename:       /in/BopLZ
function name:  (null)
number of ops:  15
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                                                      ->7
    7     5    >   PRE_INC                                                  !3
    8     6        PRE_INC                                                  !1
    6     7    >   DIV                                              ~10     !3, !1
          8        IS_SMALLER                                               ~10, 0.6
          9      > JMPNZ                                                    ~11, ->5
   11    10    >   ECHO                                                     'streak%3A+'
         11        FETCH_CONSTANT                                   ~12     't'
         12        SUB                                              ~13     ~12, !0
         13        ECHO                                                     ~13
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.75 ms | 1384 KiB | 13 Q