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.2.00.0000.01619.49
7.1.70.0040.00717.49
7.1.60.0000.01217.51
7.1.50.0030.01517.19
7.1.40.0060.00616.95
7.1.30.0030.01016.81
7.1.20.0000.01317.00
7.1.10.0060.01116.82
7.1.00.0040.00716.83
7.0.200.0060.00916.91
7.0.190.0000.01116.98
7.0.180.0000.01016.62
7.0.170.0000.01116.60
7.0.160.0050.00516.49
7.0.150.0000.01116.54
7.0.140.0060.01016.52
7.0.130.0070.00416.82
7.0.120.0030.00716.84
7.0.110.0000.01116.62
7.0.100.0000.01016.59
7.0.90.0030.00616.56
7.0.80.0030.00716.46
7.0.70.0050.00516.47
7.0.60.0030.00816.34
7.0.50.0030.00716.61
7.0.40.0060.00814.58
7.0.30.0000.01514.91
7.0.20.0030.00714.70
7.0.10.0060.00914.67
7.0.00.0000.01214.58
5.6.300.0100.04820.96
5.6.290.0070.05620.92
5.6.280.0070.05620.88
5.6.270.0000.05321.04
5.6.260.0030.05420.97
5.6.250.0070.05320.87
5.6.240.0000.05420.98
5.6.230.0000.05821.04
5.6.220.0000.05520.88
5.6.210.0000.06021.05
5.6.200.0000.05420.86
5.6.190.0060.04820.86
5.6.180.0070.04920.93
5.6.170.0030.05220.93
5.6.160.0260.04820.93
5.6.150.0000.06420.83
5.6.140.0200.04020.71
5.6.130.0030.05720.79
5.6.120.0030.07820.92
5.6.110.0100.05221.01
5.6.100.0160.04420.82
5.6.90.0090.05220.97
5.6.80.0210.05520.21
5.6.70.0100.06120.37
5.6.60.0170.05020.36
5.6.50.0260.04620.38
5.6.40.0030.05220.34
5.6.30.0040.06020.29
5.6.20.0070.05120.40
5.6.10.0030.05120.40
5.6.00.0090.04620.26
5.5.380.0030.05817.48
5.5.370.0000.05617.41
5.5.360.0130.03917.60
5.5.350.0000.05517.40
5.5.340.0070.04617.84
5.5.330.0070.05018.07
5.5.320.0030.05217.94
5.5.310.0130.04217.74
5.5.300.0030.04918.11
5.5.290.0000.05318.02
5.5.280.0100.05017.96
5.5.270.0030.05518.05
5.5.260.0030.05317.96
5.5.250.0260.04317.93
5.5.240.0070.04717.22
5.5.230.0000.05417.44
5.5.220.0030.04417.07
5.5.210.0090.04117.40
5.5.200.0030.04417.38
5.5.190.0030.04717.05
5.5.180.0060.04817.32
5.5.160.0110.04217.39
5.5.150.0000.05517.29
5.5.140.0030.04417.46
5.5.130.0000.04917.31
5.5.120.0000.04917.38
5.5.110.0000.05317.30
5.5.100.0000.05217.39
5.5.90.0070.04317.22
5.5.80.0030.06017.31
5.5.70.0000.05117.26
5.5.60.0030.04716.94
5.5.50.0000.05217.31
5.5.40.0030.04717.27
5.5.30.0000.05017.29
5.5.20.0000.04917.22
5.5.10.0030.04717.18
5.5.00.0030.04916.93
5.4.450.0090.05719.41
5.4.440.0030.05219.31
5.4.430.0170.05619.15
5.4.420.0000.05619.24
5.4.410.0030.05019.05
5.4.400.0070.05519.11
5.4.390.0060.04519.07
5.4.380.0000.05218.83
5.4.370.0000.05519.04
5.4.360.0030.05119.17
5.4.350.0030.04718.98
5.4.340.0100.03719.15
5.4.320.0030.04319.07
5.4.310.0230.04619.03
5.4.300.0030.04619.07
5.4.290.0100.04219.07
5.4.280.0000.04619.17
5.4.270.0060.04119.07
5.4.260.0060.04419.10
5.4.250.0000.05519.14
5.4.240.0030.04619.12
5.4.230.0100.04018.98
5.4.220.0030.05018.91
5.4.210.0060.04218.91
5.4.200.0070.04319.03
5.4.190.0030.05018.85
5.4.180.0060.04519.14
5.4.170.0000.05218.97
5.4.160.0260.03218.81
5.4.150.0000.05119.11
5.4.140.0000.04816.60
5.4.130.0060.03816.62
5.4.120.0030.04616.39
5.4.110.0030.04816.64
5.4.100.0230.04616.36
5.4.90.0070.04716.42
5.4.80.0120.03316.35
5.4.70.0030.04616.35
5.4.60.0030.04116.34
5.4.50.0000.04916.33
5.4.40.0100.03616.61
5.4.30.0000.04716.64
5.4.20.0000.04516.54
5.4.10.0030.04216.66
5.4.00.0030.04415.96
5.3.290.0030.05114.81
5.3.280.0070.04614.64
5.3.270.0030.05014.72
5.3.260.0060.04514.79
5.3.250.0030.05014.75
5.3.240.0220.04814.76
5.3.230.0030.04514.75
5.3.220.0100.04414.79
5.3.210.0090.05114.78
5.3.200.0070.04614.75
5.3.190.0070.06314.61
5.3.180.0060.04514.73
5.3.170.0000.04814.67
5.3.160.0030.05314.75
5.3.150.0030.05414.58
5.3.140.0070.04014.65
5.3.130.0030.05214.58
5.3.120.0070.04514.66
5.3.110.0160.04914.69
5.3.100.0070.03914.58
5.3.90.0070.10014.58
5.3.80.0190.03914.58
5.3.70.0030.04614.58
5.3.60.0030.04314.58
5.3.50.0000.04814.58
5.3.40.0100.03914.58
5.3.30.0030.04414.58
5.3.20.0030.05114.58
5.3.10.0030.04114.58
5.3.00.0060.04114.58
5.2.170.0000.04414.58
5.2.160.0030.03714.58
5.2.150.0070.03714.58
5.2.140.0060.03814.58
5.2.130.0060.03214.58
5.2.120.0230.03914.58
5.2.110.0030.03714.58
5.2.100.0060.03514.58
5.2.90.0200.03714.58
5.2.80.0030.03714.58
5.2.70.0030.03514.58
5.2.60.0000.03914.58
5.2.50.0000.04214.58
5.2.40.0060.03214.58
5.2.30.0070.04314.58
5.2.20.0030.04614.58
5.2.10.0030.04014.58
5.2.00.0030.03914.58
5.1.60.0030.04114.58
5.1.50.0000.03314.58
5.1.40.0030.04314.58
5.1.30.0030.05214.58
5.1.20.0060.02914.58
5.1.10.0000.04614.58
5.1.00.0030.03214.58
5.0.50.0030.02714.58
5.0.40.0060.02914.58
5.0.30.0030.03814.58
5.0.20.0060.02214.58
5.0.10.0030.02914.58
5.0.00.0040.03914.58
4.4.90.0030.02314.58
4.4.80.0040.02214.58
4.4.70.0140.01814.58
4.4.60.0030.02114.58
4.4.50.0000.02614.58
4.4.40.0000.04014.58
4.4.30.0000.02714.58
4.4.20.0090.01514.58
4.4.10.0000.02714.58
4.4.00.0000.03814.58
4.3.110.0000.02814.58
4.3.100.0000.02314.58
4.3.90.0110.02814.58
4.3.80.0060.02914.58
4.3.70.0000.02514.58
4.3.60.0030.02714.58
4.3.50.0000.03114.58
4.3.40.0000.03514.58
4.3.30.0000.02814.58
4.3.20.0030.02214.58
4.3.10.0140.03814.58
4.3.00.0000.03014.58

preferences:
36.45 ms | 401 KiB | 5 Q