3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (false) print "Test A1\n"; print "Test A2\n"; if (false) print "Test B1\n"; print "Test B2\n"; $arr = [1, 2, 3]; foreach ($arr as $item) print "Test C". $item ."\n"; print "Test CX\n";
Output for 5.5.38, 7.3.33, 8.1.32, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
Test A2 Test B2 Test C1 Test C2 Test C3 Test CX

preferences:
59.42 ms | 406 KiB | 5 Q