3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19' $pattern = "/.*Android/"; preg_match($pattern, $a, $matches); 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)
5.4.320.0430.05719.21
5.4.310.0330.07319.00
5.4.300.0370.07319.31
5.4.290.0330.06319.09
5.4.280.0330.05019.09
5.4.270.0370.05319.21
5.4.260.0430.08318.86
5.4.250.0330.07019.18
5.4.240.0370.04319.23
5.4.230.0270.05019.30
5.4.220.0230.04319.16
5.4.210.0300.04719.09
5.4.200.0330.06019.21
5.4.190.0270.03319.16
5.4.180.0230.03719.07
5.4.170.0270.03319.05
5.4.160.0230.07319.07
5.4.150.0330.06718.96
5.4.140.0270.06016.34
5.4.130.0330.03716.34
5.4.120.0270.07016.38
5.4.110.0300.06716.45
5.4.100.0370.06016.37
5.4.90.0300.03716.55
5.4.80.0300.06316.54
5.4.70.0300.07016.43
5.4.60.0370.05716.36
5.4.50.0230.04016.51
5.4.40.0200.03716.17
5.4.30.0300.04316.25
5.4.20.0330.03316.37
5.4.10.0300.05016.50
5.4.00.0270.05715.96
5.3.290.0300.05714.62
5.3.280.0230.04314.54
5.3.270.0400.06314.43
5.3.260.0330.05714.57
5.3.250.0200.04714.46
5.3.240.0230.07014.62
5.3.230.0270.05014.56
5.3.220.0170.04714.52
5.3.210.0200.04314.42
5.3.200.0370.03714.41
5.3.190.0300.03014.42
5.3.180.0330.04014.66
5.3.170.0370.06714.52
5.3.160.0270.03314.44
5.3.150.0330.06314.42
5.3.140.0330.07014.50
5.3.130.0270.04014.64
5.3.120.0230.03714.41
5.3.110.0330.06314.38
5.3.100.0300.04713.99
5.3.90.0300.07013.96
5.3.80.0230.03313.86
5.3.70.0230.07314.00
5.3.60.0200.04714.11
5.3.50.0400.05314.04
5.3.40.0200.04714.04
5.3.30.0230.04013.79
5.3.20.0330.04313.63
5.3.10.0200.03713.68
5.3.00.0330.06313.57
5.2.170.0200.02713.00
5.2.160.0170.03013.00
5.2.150.0300.05313.00
5.2.140.0170.04713.00
5.2.130.0170.03013.00
5.2.120.0270.06013.00
5.2.110.0270.04713.00
5.2.100.0230.03313.00
5.2.90.0230.04713.00
5.2.80.0370.03313.00
5.2.70.0270.04713.00
5.2.60.0300.05013.00
5.2.50.0230.03313.00
5.2.40.0170.03313.00
5.2.30.0330.04713.00
5.2.20.0230.03013.00
5.2.10.0330.04713.00
5.2.00.0370.02713.00
5.1.60.0230.04013.00
5.1.50.0230.05013.00
5.1.40.0200.02313.00
5.1.30.0230.04313.00
5.1.20.0200.05013.00
5.1.10.0270.05313.00
5.1.00.0430.02013.00
5.0.50.0130.04313.00
5.0.40.0230.01713.00
5.0.30.0130.05713.00
5.0.20.0100.02713.00
5.0.10.0130.04313.00
5.0.00.0130.03013.00
4.4.90.0100.01313.00
4.4.80.0100.01313.00
4.4.70.0200.02313.00
4.4.60.0130.03013.00
4.4.50.0130.03313.00
4.4.40.0100.04313.00
4.4.30.0170.01313.00
4.4.20.0130.02013.00
4.4.10.0100.03313.00
4.4.00.0130.04713.00
4.3.110.0170.03013.00
4.3.100.0100.03713.00
4.3.90.0100.03013.00
4.3.80.0130.04013.00
4.3.70.0130.02013.00
4.3.60.0170.02713.00
4.3.50.0130.03313.00
4.3.40.0100.04013.00
4.3.30.0070.02013.00
4.3.20.0030.04013.00
4.3.10.0130.02713.00
4.3.00.0070.02013.00

preferences:
141.08 ms | 1394 KiB | 7 Q