3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = ''; for ($i = 0; $i < 10000; $i++) { $string .= chr(rand(65, 122)); } echo "Calling preg_match_all()\n"; preg_match_all('/(\D|3)*/', $string, $matches); echo "It didn't broke php\n";
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
Calling preg_match_all() It didn't broke php
Output for 5.6.0 - 5.6.40
Calling preg_match_all()
Process exited with code 139.

preferences:
144.86 ms | 401 KiB | 157 Q