3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern="/\(((?>[^()]+)|(?R))*/\)"; //$str="(def a (x) (+ 1 x))(print (a 1))"; $str="(aaa) preg_match_all($pattern,$str,$out); var_dump($out);

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)
5.4.260.0030.05318.97
5.4.250.0200.05318.84
5.4.240.0170.06318.77
5.4.230.0000.06018.67
5.4.220.0070.05318.71
5.4.210.0070.07719.00
5.4.200.0100.05018.75
5.4.190.0130.04318.90
5.4.180.0030.05318.82
5.4.170.0070.05318.78
5.4.160.0000.05718.82
5.4.150.0030.05718.61
5.4.140.0130.06716.51
5.4.130.0000.05316.24
5.4.120.0030.05716.48
5.4.110.0030.05716.37
5.4.100.0100.04316.38
5.4.90.0030.05016.46
5.4.80.0170.05016.19
5.4.70.0070.04716.18
5.4.60.0030.05016.18
5.4.50.0130.04016.43
5.4.40.0070.05716.41
5.4.30.0030.05016.14
5.4.20.0070.05016.17
5.4.10.0030.06016.44
5.4.00.0070.05015.86
5.3.280.0130.05014.59
5.3.270.0030.08014.62
5.3.260.0070.05314.63
5.3.250.0070.05014.75
5.3.240.0070.05014.44
5.3.230.0070.05014.32
5.3.220.0070.05014.58
5.3.210.0000.08314.49
5.3.200.0030.05314.58
5.3.190.0070.06714.46
5.3.180.0000.06014.58
5.3.170.0070.05314.36
5.3.160.0030.08314.61
5.3.150.0030.05314.59
5.3.140.0100.07014.45
5.3.130.0070.06314.43
5.3.120.0030.05714.55
5.3.110.0000.05714.57
5.3.100.0030.07713.89
5.3.90.0100.05013.79
5.3.80.0030.06714.04
5.3.70.0100.07013.86
5.3.60.0070.05713.88
5.3.50.0100.05013.96
5.3.40.0030.05013.96
5.3.30.0030.05713.87
5.3.20.0070.05713.68
5.3.10.0100.06713.34
5.3.00.0170.03713.66
5.2.170.0030.05711.24
5.2.160.0200.04711.15
5.2.150.0070.05311.15
5.2.140.0100.05311.14
5.2.130.0070.05711.01
5.2.120.0070.04310.98
5.2.110.0130.04011.12
5.2.100.0030.05011.12
5.2.90.0030.04711.12
5.2.80.0100.05311.18
5.2.70.0170.03010.99
5.2.60.0070.05711.20
5.2.50.0130.05310.94
5.2.40.0130.03011.15
5.2.30.0100.04310.98
5.2.20.0030.05711.06
5.2.10.0030.04310.76
5.2.00.0030.04710.70
5.1.60.0100.0309.85
5.1.50.0100.0439.85
5.1.40.0030.04310.07
5.1.30.0030.05310.17
5.1.20.0000.04310.27
5.1.10.0000.04710.10
5.1.00.0070.03310.31
5.0.50.0030.0408.40
5.0.40.0030.0278.35
5.0.30.0030.0408.16
5.0.20.0000.0378.18
5.0.10.0030.0278.23
5.0.00.0000.0478.13
4.4.90.0000.0337.11
4.4.80.0030.0207.11
4.4.70.0070.0277.11
4.4.60.0000.0237.11
4.4.50.0030.0307.11
4.4.40.0030.0337.11
4.4.30.0000.0237.11
4.4.20.0030.0307.11
4.4.10.0000.0237.11
4.4.00.0070.0437.11
4.3.110.0000.0307.11
4.3.100.0000.0237.11
4.3.90.0030.0207.11
4.3.80.0000.0377.11
4.3.70.0030.0207.11
4.3.60.0070.0207.11
4.3.50.0030.0207.11
4.3.40.0030.0337.11
4.3.30.0000.0277.11
4.3.20.0030.0207.11
4.3.10.0030.0237.11
4.3.00.0000.0277.46

preferences:
136.33 ms | 1394 KiB | 7 Q