3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $subject = "abcdef"; $pattern = '/^def/'; preg_match($pattern, substr($subject,3), $matches, PREG_OFFSET_CAPTURE); print_r($matches); ?>

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)
7.0.20.0270.05020.26
7.0.10.0000.04720.07
7.0.00.0070.07720.06
5.6.170.0170.04320.51
5.6.160.0200.07320.54
5.6.150.0100.07718.22
5.6.140.0070.05718.18
5.6.130.0030.08318.18
5.6.120.0030.04321.12
5.6.110.0100.07020.89
5.6.100.0030.09321.13
5.6.90.0030.04020.95
5.6.80.0070.06020.37
5.5.310.0270.04720.28
5.5.300.0130.07318.03
5.5.290.0070.07018.08
5.5.280.0070.08320.80
5.5.270.0070.06020.95
5.5.260.0200.07320.64
5.5.250.0070.06320.46
5.5.240.0270.07320.04

preferences:
141.25 ms | 1394 KiB | 7 Q