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
Output for 7.2.0 - 7.3.0rc3
streak: Warning: Use of undefined constant t - assumed 't' (this will throw an Error in a future version of PHP) in /in/BopLZ on line 11 Warning: A non-numeric value encountered in /in/BopLZ on line 11 -2057
Output for 7.1.0 - 7.1.20
streak: Notice: Use of undefined constant t - assumed 't' in /in/BopLZ on line 11 Warning: A non-numeric value encountered in /in/BopLZ on line 11 -2057
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.0.20
streak: Notice: Use of undefined constant t - assumed 't' in /in/BopLZ on line 11 -2057