3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); for ($i = 0; $i < 10000; $i++) { preg_match('/^label-(.+)/', 'label-en_US', $matches); } $time = microtime(true) - $time; echo 'preg_match() took ' . number_format($time, 3) . ' seconds' . "\n";

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.4.10.0050.01615.08
7.4.00.0030.01615.14
7.3.130.0080.01315.09
7.3.120.0090.01114.97
7.3.110.0120.00815.21
7.3.100.0040.01214.88
7.3.90.0080.00714.96
7.3.80.0060.00815.03
7.3.70.0070.00914.77
7.3.60.0110.00614.93
7.3.50.0030.01314.95
7.3.40.0050.00814.85
7.3.30.0030.01015.03
7.3.20.0050.00816.83
7.3.10.0050.01316.85
7.3.00.0050.00516.79
7.2.260.0070.01415.22
7.2.250.0110.00915.31
7.2.240.0080.00915.29
7.2.230.0030.01315.25
7.2.220.0060.01115.35
7.2.210.0050.01115.20
7.2.200.0050.00915.39
7.2.190.0090.00615.22
7.2.180.0050.01315.09
7.2.170.0020.01115.10
7.2.160.0060.00915.13
7.2.150.0080.00817.20
7.2.140.0070.01117.01
7.2.130.0080.00817.06
7.2.120.0030.01216.98
7.2.110.0070.01217.05
7.2.100.0030.01117.23
7.2.90.0020.01617.16
7.2.80.0040.01416.99
7.2.70.0030.01017.05
7.2.60.0030.01317.07
7.2.50.0040.01317.17
7.2.40.0020.01217.25
7.2.30.0070.01217.24
7.2.20.0030.01617.09
7.2.10.0020.01417.05
7.2.00.0040.01217.91
7.1.330.0060.01316.08
7.1.320.0040.01416.03
7.1.310.0040.01216.16
7.1.300.0070.00815.97
7.1.290.0040.01215.99
7.1.280.0050.01316.05
7.1.270.0020.01515.90
7.1.260.0080.01115.91
7.1.250.0050.01116.14
7.1.240.0050.01415.98
7.1.230.0070.01015.99
7.1.220.0060.01116.05
7.1.210.0070.01415.98
7.1.200.0070.01215.90
7.1.190.0070.00915.88
7.1.180.0050.01216.05
7.1.170.0060.01215.84
7.1.160.0050.01116.02
7.1.150.0080.00915.93
7.1.140.0030.01715.86
7.1.130.0080.01316.07
7.1.120.0030.01315.82
7.1.110.0020.01516.09
7.1.100.0020.01515.80
7.1.90.0070.01215.97
7.1.80.0030.01316.07
7.1.70.0050.00916.38
7.1.60.0080.01217.13
7.1.50.0060.01716.32
7.1.40.0050.01316.01
7.1.30.0030.01416.00
7.1.20.0090.00815.91
7.1.10.0080.01015.87
7.1.00.0030.02618.00
7.0.330.0020.01415.65
7.0.320.0040.01215.61
7.0.310.0050.01215.55
7.0.300.0030.01515.65
7.0.290.0020.01815.51
7.0.280.0050.01215.63
7.0.270.0030.01415.60
7.0.260.0030.01115.85
7.0.250.0030.01615.71
7.0.240.0000.01715.54
7.0.230.0070.01015.58
7.0.220.0070.01215.84
7.0.210.0000.01715.51
7.0.200.0060.01116.05
7.0.190.0070.01215.43
7.0.180.0050.01315.53
7.0.170.0060.01215.76
7.0.160.0060.01315.52
7.0.150.0060.01015.58
7.0.140.0020.03617.71
7.0.130.0030.01515.57
7.0.120.0010.03317.82
7.0.110.0090.00715.59
7.0.100.0060.00715.67
7.0.90.0050.00915.59
7.0.80.0040.01415.69
7.0.70.0030.01115.70
7.0.60.0040.03116.95
7.0.50.0020.02916.29
7.0.40.0060.02315.74
7.0.30.0130.03315.81
7.0.20.0110.03315.80
7.0.10.0030.02515.87
7.0.00.0090.03115.80
5.6.400.0060.01814.53
5.6.390.0070.01814.29
5.6.380.0070.01514.74
5.6.370.0050.01614.40
5.6.360.0050.01914.42
5.6.350.0030.02014.45
5.6.340.0030.01914.30
5.6.330.0040.02014.24
5.6.320.0030.02114.48
5.6.310.0060.01914.28
5.6.300.0080.01714.65
5.6.290.0060.02014.22
5.6.280.0080.03816.41
5.6.270.0020.02514.73
5.6.260.0000.02114.35
5.6.250.0050.02214.29
5.6.240.0020.01914.39
5.6.230.0080.01514.55
5.6.220.0050.01714.37
5.6.210.0040.03716.49
5.6.200.0050.04415.50
5.6.190.0050.04216.44
5.6.180.0200.03716.57
5.6.170.0100.02916.49
5.6.160.0020.02916.43
5.6.150.0040.04415.54
5.6.140.0070.03415.68
5.6.130.0080.02515.64
5.6.120.0130.03316.56
5.6.110.0010.03116.61
5.6.100.0070.04616.76
5.6.90.0100.03116.66
5.6.80.0060.03616.40
5.6.70.0020.02514.28
5.6.60.0020.02114.23
5.6.50.0050.02114.38
5.6.40.0100.01614.38
5.6.30.0050.01914.28
5.6.20.0050.02214.34
5.6.10.0030.02014.32
5.6.00.0030.02214.28
5.5.380.0100.01714.54
5.5.370.0020.02114.49
5.5.360.0070.01714.27
5.5.350.0120.03916.30
5.5.340.0020.03015.73
5.5.330.0080.04116.45
5.5.320.0130.04416.28
5.5.310.0110.04216.48
5.5.300.0050.03815.60
5.5.290.0080.02515.53
5.5.280.0070.04116.51
5.5.270.0090.02916.42
5.5.260.0100.04416.58
5.5.250.0060.02516.51
5.5.240.0050.04516.38
5.5.230.0020.02114.25
5.5.220.0040.02314.19
5.5.210.0080.01814.26
5.5.200.0080.01814.21
5.5.190.0050.02314.16
5.5.180.0030.01614.31
5.5.170.0070.01914.38
5.5.160.0030.02114.29
5.5.150.0050.02014.13
5.5.140.0090.01814.33
5.5.130.0070.02214.12
5.5.120.0070.01614.40
5.5.110.0030.02114.40
5.5.100.0050.02014.25
5.5.90.0020.02014.10
5.5.80.0070.01714.30
5.5.70.0050.02014.27
5.5.60.0050.01914.29
5.5.50.0070.02014.15
5.5.40.0020.02014.38
5.5.30.0080.01714.29
5.5.20.0050.02514.44
5.5.10.0070.02714.27
5.5.00.0040.01814.15
5.4.450.0010.02914.31
5.4.440.0040.02714.26
5.4.430.0050.02714.15
5.4.420.0020.02714.22
5.4.410.0030.02614.16
5.4.400.0030.03014.11
5.4.390.0050.02514.06
5.4.380.0030.03114.16
5.4.370.0010.03014.07
5.4.360.0070.02414.14
5.4.350.0010.03014.16
5.4.340.0040.02714.16
5.4.330.0050.01811.67
5.4.320.0040.02314.21
5.4.310.0070.02514.13
5.4.300.0040.02714.15
5.4.290.0070.02814.14
5.4.280.0030.02214.06
5.4.270.0050.02914.10
5.4.260.0000.03214.19
5.4.250.0040.04014.15
5.4.240.0040.03714.05
5.4.230.0030.03814.09
5.4.220.0060.04014.20
5.4.210.0060.04114.02
5.4.200.0060.02714.12
5.4.190.0070.03914.12
5.4.180.0020.04513.94
5.4.170.0060.03614.15
5.4.160.0030.03114.00
5.4.150.0040.04113.99
5.4.140.0050.03913.20
5.4.130.0060.03213.25
5.4.120.0020.04713.32
5.4.110.0050.02413.28
5.4.100.0040.02513.34
5.4.90.0060.02613.18
5.4.80.0070.03813.18
5.4.70.0030.03713.11
5.4.60.0060.04013.11
5.4.50.0070.03213.26
5.4.40.0010.03413.22
5.4.30.0030.04413.19
5.4.20.0050.02613.14
5.4.10.0050.03913.19
5.4.00.0030.04112.89
5.3.290.0030.04714.51
5.3.280.0070.04014.53
5.3.270.0130.08714.42
5.3.260.0130.08014.53
5.3.250.0030.08314.56
5.3.240.0130.07714.53
5.3.230.0100.05314.63
5.3.220.0030.08314.55
5.3.210.0030.05314.51
5.3.200.0100.03714.49
5.3.190.0000.05014.50
5.3.180.0030.08714.49
5.3.170.0030.08314.52
5.3.160.0100.08014.55
5.3.150.0000.07314.58
5.3.140.0030.06314.48
5.3.130.0000.09714.50
5.3.120.0000.05714.47
5.3.110.0000.06314.36
5.3.100.0100.07713.98
5.3.90.0070.08713.94
5.3.80.0130.04713.83
5.3.70.0070.05713.93
5.3.60.0100.06313.84
5.3.50.0000.09313.73
5.3.40.0070.04313.96
5.3.30.0000.06013.93
5.3.20.0100.07713.63
5.3.10.0000.08013.60
5.3.00.0100.08313.59
5.2.170.0070.06311.21
5.2.160.0030.05011.26
5.2.150.0000.07711.20
5.2.140.0030.07311.29
5.2.130.0030.06711.25
5.2.120.0070.04011.05
5.2.110.0000.07311.05
5.2.100.0030.04011.21
5.2.90.0070.06011.12
5.2.80.0030.07711.11
5.2.70.0070.06311.15
5.2.60.0000.08011.15
5.2.50.0100.06311.07
5.2.40.0000.04711.03
5.2.30.0030.04711.03
5.2.20.0030.03711.25
5.2.10.0070.06710.95
5.2.00.0070.07010.83
5.1.60.0070.04710.25
5.1.50.0070.04310.13
5.1.40.0070.06310.21
5.1.30.0070.06010.48
5.1.20.0030.06710.51
5.1.10.0000.03310.22
5.1.00.0000.07010.29
5.0.50.0070.0378.67
5.0.40.0070.0438.53
5.0.30.0030.0738.25
5.0.20.0030.0308.32
5.0.10.0030.0378.24
5.0.00.0000.0578.37
4.4.90.0030.0407.81
4.4.80.0000.0407.81
4.4.70.0000.0307.81
4.4.60.0030.0237.81
4.4.50.0070.0237.81
4.4.40.0000.0407.81
4.4.30.0000.0577.81
4.4.20.0030.0237.81
4.4.10.0000.0337.81
4.4.00.0070.0607.81
4.3.110.0000.0407.81
4.3.100.0000.0537.81
4.3.90.0030.0477.81
4.3.80.0030.0637.81
4.3.70.0030.0337.81
4.3.60.0000.0277.81
4.3.50.0030.0477.81
4.3.40.0000.0577.81
4.3.30.0000.0507.81
4.3.20.0070.0437.81
4.3.10.0030.0437.81
4.3.00.0000.0337.81

preferences:
37.21 ms | 400 KiB | 5 Q