3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array() preg_match('/^(.*)-keyword-(\d+)-(\w+)$/', 'aa-bb-cc-keyword-12345-lastword', $matches) var_dump($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.0000.09019.17
5.4.310.0070.05719.16
5.4.300.0070.05719.14
5.4.290.0030.04718.86
5.4.280.0070.07719.22
5.4.270.0070.03719.09
5.4.260.0070.06019.16
5.4.250.0030.03719.23
5.4.240.0100.07318.84
5.4.230.0030.04719.08
5.4.220.0000.04718.86
5.4.210.0070.03319.20
5.4.200.0030.03719.21
5.4.190.0030.04719.23
5.4.180.0000.04719.08
5.4.170.0130.06719.30
5.4.160.0100.07719.07
5.4.150.0130.04319.14
5.4.140.0130.06716.37
5.4.130.0100.03316.37
5.4.120.0070.05316.49
5.4.110.0100.06316.54
5.4.100.0000.05016.55
5.4.90.0030.07316.46
5.4.80.0100.04316.41
5.4.70.0030.06016.55
5.4.60.0130.06316.19
5.4.50.0100.03016.43
5.4.40.0100.04016.52
5.4.30.0100.03016.40
5.4.20.0030.07316.34
5.4.10.0030.04316.48
5.4.00.0100.06015.95
5.3.290.0070.05014.68
5.3.280.0070.04314.43
5.3.270.0030.06314.56
5.3.260.0030.04314.59
5.3.250.0030.04014.46
5.3.240.0100.06014.45
5.3.230.0030.04714.45
5.3.220.0000.06314.45
5.3.210.0100.07014.67
5.3.200.0030.03714.53
5.3.190.0030.07314.62
5.3.180.0000.05314.42
5.3.170.0030.07014.55
5.3.160.0170.03314.55
5.3.150.0000.04014.65
5.3.140.0070.03314.43
5.3.130.0030.04014.38
5.3.120.0070.06714.50
5.3.110.0030.03714.41
5.3.100.0000.06013.87
5.3.90.0070.06313.88
5.3.80.0000.04013.86
5.3.70.0100.05014.00
5.3.60.0070.06013.86
5.3.50.0070.05313.86
5.3.40.0070.04313.88
5.3.30.0070.06713.86
5.3.20.0000.05713.86
5.3.10.0070.06713.86
5.3.00.0030.05013.86
5.2.170.0030.04013.86
5.2.160.0070.03013.86
5.2.150.0100.05713.86
5.2.140.0030.03713.86
5.2.130.0030.03013.86
5.2.120.0030.06013.86
5.2.110.0100.02713.86
5.2.100.0030.04313.86
5.2.90.0030.03313.86
5.2.80.0030.02713.86
5.2.70.0030.05313.86
5.2.60.0000.04013.86
5.2.50.0000.03313.86
5.2.40.0000.03713.86
5.2.30.0000.03313.86
5.2.20.0030.05313.86
5.2.10.0070.04313.86
5.2.00.0000.06313.86
5.1.60.0000.03013.86
5.1.50.0030.03013.86
5.1.40.0070.03713.86
5.1.30.0030.04713.86
5.1.20.0070.03013.86
5.1.10.0070.05013.86
5.1.00.0070.02313.86
5.0.50.0000.02313.86
5.0.40.0000.03313.86
5.0.30.0030.06713.86
5.0.20.0000.03013.86
5.0.10.0030.02313.86
5.0.00.0000.06313.86
4.4.90.0070.01713.86
4.4.80.0000.02313.86
4.4.70.0000.02313.86
4.4.60.0000.03313.86
4.4.50.0030.03013.86
4.4.40.0000.04313.86
4.4.30.0000.02013.86
4.4.20.0000.03713.86
4.4.10.0000.02713.86
4.4.00.0070.02713.86
4.3.110.0070.01713.86
4.3.100.0000.02013.86
4.3.90.0030.02313.86
4.3.80.0000.02713.86
4.3.70.0030.02713.86
4.3.60.0030.02013.86
4.3.50.0070.02013.86
4.3.40.0100.04313.86
4.3.30.0030.02713.86
4.3.20.0030.03313.86
4.3.10.0030.02313.86
4.3.00.0030.02313.86

preferences:
139.44 ms | 1394 KiB | 7 Q