3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "http://www.directcars.co.uk/usedcars/index_pg4.htm"; preg_match("/_pg[0-9]/", $string, $matches, PREG_OFFSET_CAPTURE); echo implode("", preg_split("/_pg[0-9]/", "http://www.directcars.co.uk/usedcars/index_pg4.htm");); print_r($keywords); 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.0430.07320.12
7.0.10.0070.06020.26
7.0.00.0100.07320.08
5.6.170.0300.07720.47
5.6.160.0000.06020.52
5.6.150.0070.07718.21
5.6.140.0100.05318.18
5.6.130.0030.07718.17
5.6.120.0130.08721.14
5.6.110.0030.06320.98
5.6.100.0030.06020.98
5.6.90.0200.07321.07
5.6.80.0030.08320.38
5.5.310.0370.07320.35
5.5.300.0070.07317.95
5.5.290.0070.08317.96
5.5.280.0000.05320.96
5.5.270.0200.07720.79
5.5.260.0170.08020.72
5.5.250.0130.07720.54
5.5.240.0270.07720.12

preferences:
145.93 ms | 1394 KiB | 7 Q