3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = microtime(true); for ($i = 0; $i < 9000; $i++) { preg_match('/^[^\:]++(\:[^\:]++)*$/', '12345678901234567890:12345678901234567890'); preg_match('/^[^\:]++(\:[^\:]++)*$/', '1234567890123456789012345678901234567890:'); } echo (microtime(true) - $t);

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.3.10.0060.01016.54
7.3.00.0050.01016.88
7.2.130.0080.01217.01
7.2.120.0060.01117.07
7.2.110.0050.01416.96
7.2.100.0070.01017.13
7.2.90.0040.01417.04
7.2.80.0050.01317.03
7.2.70.0050.01016.99
7.2.60.0090.01217.20
7.2.50.0040.01216.99
7.2.40.0100.01216.77
7.2.30.0030.01217.07
7.2.20.0040.01316.99
7.2.10.0070.01017.23
7.2.00.0070.00917.78
7.1.250.0070.01215.82
7.1.70.0090.00617.06
7.1.60.0070.01117.53
7.1.50.0090.00617.16
7.1.00.0030.03722.30
7.0.200.0060.01616.96
7.0.140.0030.08022.07
7.0.100.0070.08019.95
7.0.90.0030.09719.82
7.0.80.0030.09319.91
7.0.70.0330.05719.93
7.0.60.0600.08019.84
7.0.50.0130.05720.34
7.0.40.0100.06320.04
7.0.30.0100.09019.99
7.0.20.0170.07320.03
7.0.10.0070.05020.07
7.0.00.0100.07720.07
5.6.280.0170.07321.06
5.6.250.0130.09020.54
5.6.240.0030.10020.46
5.6.230.0030.08720.48
5.6.220.0070.08320.57
5.6.210.0000.05720.55
5.6.200.0270.05021.09
5.6.190.0200.08021.05
5.6.180.0100.06021.01
5.6.170.0070.10320.96
5.6.160.0130.05720.98
5.6.150.0070.08721.03
5.6.140.0070.06020.88
5.6.130.0100.04720.96
5.6.120.0100.09720.99
5.6.110.0100.07720.96
5.6.100.0000.10720.96
5.6.90.0070.09020.89
5.6.80.0070.04720.35
5.6.70.0070.07020.34
5.6.60.0070.09320.34
5.6.50.0030.05320.26
5.6.40.0200.07720.44
5.6.30.0070.06320.26
5.6.20.0070.05320.40
5.6.10.0030.05020.25
5.6.00.0130.08020.34
5.5.380.0030.08720.46
5.5.370.0030.07320.36
5.5.360.0070.09020.31
5.5.350.0030.07320.42
5.5.340.0100.07320.86
5.5.330.0030.09720.81
5.5.320.0070.08320.84
5.5.310.0070.08720.74
5.5.300.0100.05320.83
5.5.290.0100.09720.74
5.5.280.0030.07020.78
5.5.270.0170.07720.82
5.5.260.0070.08020.77
5.5.250.0070.06020.40
5.5.240.0070.08020.10
5.5.230.0030.08720.23
5.5.220.0030.07320.13
5.5.210.0070.04720.05
5.5.200.0070.09019.94
5.5.190.0070.04720.12
5.5.180.0070.05020.21
5.5.160.0030.10020.07
5.5.150.0130.08320.16
5.5.140.0000.06020.02
5.5.130.0130.04020.16
5.5.120.0100.05320.12
5.5.110.0000.09720.18
5.5.100.0070.09320.06
5.5.90.0070.07020.11
5.5.80.0070.07720.07
5.5.70.0070.07019.99
5.5.60.0070.06720.03
5.5.50.0000.07719.94
5.5.40.0030.07320.05
5.5.30.0070.04019.86
5.5.20.0000.09020.00
5.5.10.0030.05019.98
5.5.00.0070.04319.91
5.4.450.0130.08319.39
5.4.440.0170.08319.45
5.4.430.0070.05019.26
5.4.420.0070.08719.35
5.4.410.0070.06319.22
5.4.400.0070.05019.23
5.4.390.0130.07019.03
5.4.380.0030.08018.92
5.4.370.0030.05318.91
5.4.360.0100.04019.02
5.4.350.0070.08318.90
5.4.340.0230.05719.25
5.4.320.0070.08018.78
5.4.310.0000.06319.11
5.4.300.0100.07319.09
5.4.290.0070.07019.04
5.4.280.0070.05018.99
5.4.270.0030.08318.94
5.4.260.0100.06019.17
5.4.250.0070.04719.04
5.4.240.0000.05719.05
5.4.230.0030.04719.02
5.4.220.0030.07019.13
5.4.210.0030.04319.02
5.4.200.0000.05019.07
5.4.190.0130.05019.02
5.4.180.0070.06319.02
5.4.170.0000.05718.95
5.4.160.0070.04318.78
5.4.150.0030.06019.10
5.4.140.0030.04316.27
5.4.130.0100.05316.21
5.4.120.0000.06716.30
5.4.110.0100.07016.31
5.4.100.0030.08316.46
5.4.90.0030.06016.22
5.4.80.0070.07716.29
5.4.70.0070.05716.20
5.4.60.0070.03716.20
5.4.50.0070.07016.23
5.4.40.0030.04316.45
5.4.30.0030.08316.35
5.4.20.0000.04316.20
5.4.10.0000.04716.46
5.4.00.0030.08015.68
5.3.290.0200.07314.66
5.3.280.0030.04714.58
5.3.270.0070.04014.58
5.3.260.0000.09714.61
5.3.250.0000.09314.55
5.3.240.0100.09714.61
5.3.230.0000.05014.45
5.3.220.0000.05314.42
5.3.210.0070.07014.38
5.3.200.0030.06314.42
5.3.190.0070.04314.54
5.3.180.0070.05714.49
5.3.170.0030.05314.52
5.3.160.0030.08014.54
5.3.150.0070.07714.42
5.3.140.0170.04714.46
5.3.130.0030.07714.50
5.3.120.0070.06714.50
5.3.110.0000.06314.41
5.3.100.0070.03314.01
5.3.90.0030.08313.99
5.3.80.0170.04013.98
5.3.70.0030.08713.98
5.3.60.0100.07313.93
5.3.50.0100.06313.93
5.3.40.0170.07313.94
5.3.30.0070.04013.77
5.3.20.0070.04313.55
5.3.10.0000.04713.52
5.3.00.0100.04313.48
5.2.170.0070.06011.00
5.2.160.0070.07311.10
5.2.150.0030.04311.00
5.2.140.0070.05711.21
5.2.130.0000.07011.05
5.2.120.0030.04310.96
5.2.110.0030.03711.11
5.2.100.0000.04011.14
5.2.90.0030.03710.96
5.2.80.0000.04010.94
5.2.70.0000.04010.88
5.2.60.0030.03711.01
5.2.50.0000.04010.80
5.2.40.0100.03010.83
5.2.30.0030.03711.02
5.2.20.0070.03010.91
5.2.10.0070.03010.91
5.2.00.0000.04010.73
5.1.60.0030.0279.82
5.1.50.0030.03310.04
5.1.40.0030.03010.05
5.1.30.0000.03710.32
5.1.20.0070.03310.46
5.1.10.0030.0339.89
5.1.00.0070.04710.16
5.0.50.0000.0478.57
5.0.40.0070.0278.26
5.0.30.0030.0408.30
5.0.20.0000.0378.27
5.0.10.0000.0438.24
5.0.00.0000.0438.14
4.4.90.0000.0277.60
4.4.80.0000.0277.60
4.4.70.0030.0207.60
4.4.60.0000.0237.60
4.4.50.0000.0277.60
4.4.40.0000.0337.60
4.4.30.0000.0277.60
4.4.20.0000.0277.60
4.4.10.0030.0277.60
4.4.00.0000.0377.60
4.3.110.0000.0237.60
4.3.100.0030.0237.60
4.3.90.0000.0277.60
4.3.80.0030.0577.60
4.3.70.0030.0237.60
4.3.60.0000.0277.60
4.3.50.0070.0207.60
4.3.40.0000.0337.60
4.3.30.0000.0277.60
4.3.20.0000.0237.60
4.3.10.0000.0237.60
4.3.00.0000.0237.60

preferences:
41.1 ms | 400 KiB | 5 Q