3v4l.org

run code in 300+ PHP versions simultaneously
<?php while (∞) { print "."; if (++$i == 2) break; };
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Fatal error: Uncaught Error: Undefined constant "∞" in /in/3ieLr:1 Stack trace: #0 {main} thrown in /in/3ieLr on line 1
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
Warning: Use of undefined constant ∞ - assumed '∞' (this will throw an Error in a future version of PHP) in /in/3ieLr on line 1 . Notice: Undefined variable: i in /in/3ieLr on line 1 Warning: Use of undefined constant ∞ - assumed '∞' (this will throw an Error in a future version of PHP) in /in/3ieLr on line 1 .
Output for 7.3.32 - 7.3.33
Warning: Use of undefined constant ∞ - assumed '∞' (this will throw an Error in a future version of PHP) in /in/3ieLr on line 1 . Warning: Use of undefined constant ∞ - assumed '∞' (this will throw an Error in a future version of PHP) in /in/3ieLr on line 1 .
Output for 5.5.0 - 5.5.36, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20
Notice: Use of undefined constant ∞ - assumed '∞' in /in/3ieLr on line 1 . Notice: Undefined variable: i in /in/3ieLr on line 1 Notice: Use of undefined constant ∞ - assumed '∞' in /in/3ieLr on line 1 .

preferences:
163.51 ms | 402 KiB | 219 Q