3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($key=1; $key<=2; $key++){ echo $key; }
Output for 8.2.0 - 8.2.26, 8.3.0 - 8.3.14, 8.4.1
12

preferences:
41.17 ms | 405 KiB | 5 Q