3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all('/a/', "aaa", $m); var_dump(implode("", $m[0]));
Output for 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.13
string(3) "aaa"

preferences:
43.36 ms | 406 KiB | 5 Q