3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match("/(X)+/", str_repeat('X', 1024) 'X', $matches)); var_dump(preg_match("/(X)+/", str_repeat('X', 1024), $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.0300.05320.05
7.0.10.0030.09020.15
7.0.00.0070.08720.26
5.6.170.0270.06320.56
5.6.160.0130.07320.52
5.6.150.0070.05318.17
5.6.140.0000.05018.18
5.6.130.0030.05318.19
5.6.120.0130.07720.98
5.6.110.0100.03721.00
5.6.100.0070.05721.02
5.6.90.0030.08720.96
5.6.80.0030.08720.52
5.5.310.0300.07320.34
5.5.300.0070.06017.95
5.5.290.0100.04317.95
5.5.280.0070.07720.77
5.5.270.0070.05320.97
5.5.260.0030.08720.86
5.5.250.0130.07020.65
5.5.240.0030.06720.14

preferences:
137.49 ms | 1394 KiB | 7 Q