3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=10; echo $x; $x+=1; echo $x;
Output for 8.1.0 - 8.1.29, 8.2.0 - 8.2.20, 8.3.0 - 8.3.8
1011

preferences:
76.89 ms | 402 KiB | 65 Q