3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Вопрос: Как купить автомобиль безопасно ответ? Ответ: не ясен. Ответ: Прежде всего, нужно обратиться в компанию...'; $res = preg_replace('/.*(?=Ответ:)/u', '', $str); var_dump($res);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0040.01118.52
8.3.50.0100.00318.35
8.3.40.0100.01022.06
8.3.30.0110.00418.70
8.3.20.0000.00824.18
8.3.10.0030.00624.66
8.3.00.0000.00726.16
8.2.180.0100.01025.92
8.2.170.0040.01118.91
8.2.160.0140.00022.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00420.92
8.2.110.0030.00620.35
8.2.100.0070.00320.34
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00318.51
8.1.230.0000.01018.71
8.0.100.0080.00016.96

preferences:
44.29 ms | 400 KiB | 5 Q