3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<a href="http://www.google.com/" class=l2>Go to Google!</a>'; preg_match_all('/<a href="([^"]+)" class=l.+?>([^<]+)<\/a>/', $string, $results); var_dump( $results); for( $i = 0; $i < count( $results[1]); $i++) echo $results[1][$i] . ' ' . $results[2][$i];

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)
8.3.60.0060.01018.30
8.3.50.0060.01022.05
8.3.40.0090.00618.75
8.3.30.0070.00719.22
8.3.20.0000.00720.34
8.3.10.0090.00622.04
8.3.00.0040.00422.46
8.2.180.0110.00716.88
8.2.170.0150.00322.96
8.2.160.0110.00421.14
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0140.00026.16
8.2.120.0040.00419.61
8.2.110.0060.00619.21
8.2.100.0100.00317.82
8.2.90.0040.00419.12
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0030.00817.91
8.2.50.0060.00318.07
8.2.40.0070.00018.17
8.2.30.0040.00418.08
8.2.20.0000.00717.79
8.2.10.0040.00417.87
8.2.00.0020.00517.81
8.1.280.0150.00625.92
8.1.270.0050.00322.24
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00622.14
8.1.230.0060.00618.89
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0000.00917.48
8.1.190.0050.00317.52
8.1.180.0000.00718.56
8.1.170.0050.00318.82
8.1.160.0050.00322.04
8.1.150.0030.00518.77
8.1.140.0070.00017.51
8.1.130.0000.00717.80
8.1.120.0040.00417.55
8.1.110.0050.00317.48
8.1.100.0000.00717.63
8.1.90.0040.00417.54
8.1.80.0070.00017.64
8.1.70.0070.00017.58
8.1.60.0080.00317.76
8.1.50.0070.00017.57
8.1.40.0040.00417.66
8.1.30.0030.00617.79
8.1.20.0050.00317.87
8.1.10.0000.00817.73
8.1.00.0000.00817.63
8.0.300.0030.00618.77
8.0.290.0000.00717.05
8.0.280.0040.00418.45
8.0.270.0050.00317.20
8.0.260.0040.00418.46
8.0.250.0030.00317.01
8.0.240.0040.00417.14
8.0.230.0080.00017.12
8.0.220.0000.00717.09
8.0.210.0030.00316.92
8.0.200.0000.00617.05
8.0.190.0040.00417.09
8.0.180.0040.00416.98
8.0.170.0040.00417.04
8.0.160.0030.00516.93
8.0.150.0000.00816.95
8.0.140.0040.00416.94
8.0.130.0050.00013.51
8.0.120.0040.00417.01
8.0.110.0000.00816.98
8.0.100.0000.00717.02
8.0.90.0000.00716.95
8.0.80.0120.00316.95
8.0.70.0040.00416.86
8.0.60.0040.00417.07
8.0.50.0000.00717.00
8.0.30.0150.01017.24
8.0.20.0090.00917.40
8.0.10.0070.00017.05
8.0.00.0110.00616.79
7.4.330.0050.00015.00
7.4.320.0030.00316.73
7.4.300.0060.00016.85
7.4.290.0000.00716.63
7.4.280.0030.00316.70
7.4.270.0080.00016.59
7.4.260.0000.00716.78
7.4.250.0000.00816.79
7.4.240.0080.00016.78
7.4.230.0000.00716.93
7.4.220.0030.01316.93
7.4.210.0090.00616.73
7.4.200.0070.00016.90
7.4.190.0070.00016.97
7.4.160.0080.00816.76
7.4.150.0090.00917.40
7.4.140.0100.00917.86
7.4.130.0180.00116.65
7.4.120.0070.01016.78
7.4.110.0000.01716.60
7.4.100.0180.00016.58
7.4.90.0110.00716.54
7.4.80.0150.00619.39
7.4.70.0000.01816.84
7.4.60.0080.01117.02
7.4.50.0030.00516.76
7.4.40.0060.00622.77
7.4.30.0140.00316.79
7.4.00.0050.01115.10
7.3.330.0070.00013.41
7.3.320.0000.00513.32
7.3.310.0070.00016.34
7.3.300.0070.00016.47
7.3.290.0100.01416.37
7.3.280.0070.01016.44
7.3.270.0090.00917.40
7.3.260.0130.00616.48
7.3.250.0070.01516.67
7.3.240.0090.00916.59
7.3.230.0130.00416.65
7.3.210.0150.00316.67
7.3.200.0130.00319.39
7.3.190.0160.00816.60
7.3.180.0070.01116.82
7.3.170.0100.01316.70
7.3.160.0100.00716.43
7.3.120.0100.01015.07
7.3.110.0020.01515.05
7.3.100.0050.00914.93
7.3.90.0100.00515.03
7.3.80.0060.01015.14
7.3.70.0050.00915.10
7.3.60.0040.01214.94
7.3.50.0040.00914.96
7.3.40.0070.00515.03
7.3.30.0030.00914.95
7.3.20.0070.00516.82
7.3.10.0050.00916.88
7.3.00.0040.00816.85
7.2.330.0090.00917.00
7.2.320.0210.00616.82
7.2.310.0100.00716.80
7.2.300.0170.00016.95
7.2.290.0120.00616.75
7.2.250.0040.01515.34
7.2.240.0120.00715.29
7.2.230.0050.01115.16
7.2.220.0080.00615.06
7.2.210.0030.01215.29
7.2.200.0090.00915.19
7.2.190.0050.00915.28
7.2.180.0040.00815.28
7.2.170.0050.01015.39
7.2.160.0070.00715.29
7.2.150.0030.01317.22
7.2.140.0060.00316.82
7.2.130.0120.00017.12
7.2.120.0030.00917.03
7.2.110.0070.00516.88
7.2.100.0070.00716.99
7.2.90.0060.00717.22
7.2.80.0010.00917.26
7.2.70.0080.00217.25
7.2.60.0100.00717.14
7.2.50.0090.00317.00
7.2.40.0070.00517.06
7.2.30.0070.00516.96
7.2.20.0090.00617.13
7.2.10.0080.00517.06
7.2.00.0050.00718.02
7.1.330.0100.00515.94
7.1.320.0060.00616.10
7.1.310.0030.00915.91
7.1.300.0030.00815.98
7.1.290.0030.01015.99
7.1.280.0060.01016.11
7.1.270.0050.00716.07
7.1.260.0060.00615.97
7.1.250.0060.00616.11
7.1.200.0080.00415.79
7.1.100.0040.00718.37
7.1.70.0000.01517.40
7.1.60.0070.01819.82
7.1.50.0040.01517.19
7.1.00.0000.07722.55
7.0.200.0000.00817.07
7.0.140.0030.07321.95
7.0.100.0070.07321.70
7.0.90.0100.07721.96
7.0.80.0030.05721.66
7.0.70.0030.08721.66
7.0.60.0030.08321.86
7.0.50.0000.07722.09
7.0.40.0070.07719.96
7.0.30.0030.08020.04
7.0.20.0070.05019.96
7.0.10.0000.08020.04
7.0.00.0000.08320.18
5.6.280.0100.06721.09
5.6.250.0030.08320.72
5.6.240.0030.09320.69
5.6.230.0100.07020.74
5.6.220.0070.04720.59
5.6.210.0030.06320.66
5.6.200.0070.06321.04
5.6.190.0070.08021.04
5.6.180.0030.08721.08
5.6.170.0070.08021.04
5.6.160.0100.07021.01
5.6.150.0070.08021.01
5.6.140.0000.08721.10
5.6.130.0070.06721.03
5.6.120.0070.08321.07
5.6.110.0030.07720.99
5.6.100.0070.06721.00
5.6.90.0070.08020.91
5.6.80.0100.07020.41
5.6.70.0030.07020.39
5.6.60.0030.07020.38
5.6.50.0130.04720.42
5.6.40.0070.06720.29
5.6.30.0030.08020.45
5.6.20.0070.07320.30
5.6.10.0030.07320.42
5.6.00.0000.07020.51
5.5.380.0030.08020.41
5.5.370.0070.08020.49
5.5.360.0100.06320.33
5.5.350.0070.07720.41
5.5.340.0030.07720.77
5.5.330.0070.08020.88
5.5.320.0000.08720.86
5.5.310.0070.05320.83
5.5.300.0030.08020.82
5.5.290.0030.06320.79
5.5.280.0100.07720.79
5.5.270.0030.07720.88
5.5.260.0100.08020.81
5.5.250.0030.08720.69
5.5.240.0100.06720.25
5.5.230.0030.07320.26
5.5.220.0000.09720.14
5.5.210.0100.07720.24
5.5.200.0070.06320.10
5.5.190.0000.06320.21
5.5.180.0100.07019.98
5.5.160.0000.07719.99
5.5.150.0070.07320.20
5.5.140.0000.08320.11
5.5.130.0070.07020.17
5.5.120.0000.04720.11
5.5.110.0100.04020.08
5.5.100.0030.08020.15
5.5.90.0000.07720.05
5.5.80.0100.05720.14
5.5.70.0000.08320.08
5.5.60.0100.07020.09
5.5.50.0100.07020.07
5.5.40.0070.07320.13
5.5.30.0000.07719.94
5.5.20.0000.05020.06
5.5.10.0000.08020.00
5.5.00.0070.07020.09
5.4.450.0130.06719.45
5.4.440.0070.06719.35
5.4.430.0130.06019.55
5.4.420.0070.07319.30
5.4.410.0070.07319.42
5.4.400.0130.04318.91
5.4.390.0070.07019.11
5.4.380.0100.08019.12
5.4.370.0030.08019.07
5.4.360.0000.04719.14
5.4.350.0000.05719.12
5.4.340.0030.08318.79
5.4.320.0130.06719.12
5.4.310.0000.07718.78
5.4.300.0030.08019.02
5.4.290.0000.04018.96
5.4.280.0030.08319.09
5.4.270.0070.06318.78
5.4.260.0070.07318.98
5.4.250.0070.05319.14
5.4.240.0100.07019.11
5.4.230.0000.07019.09
5.4.220.0030.07318.80
5.4.210.0070.04019.11
5.4.200.0130.06718.95
5.4.190.0000.08019.09
5.4.180.0100.06318.95
5.4.170.0000.08319.04
5.4.160.0100.07319.00
5.4.150.0030.08019.07
5.4.140.0030.06716.02
5.4.130.0030.07316.36
5.4.120.0030.04016.34
5.4.110.0000.05016.30
5.4.100.0030.04016.30
5.4.90.0070.06016.33
5.4.80.0030.07016.25
5.4.70.0000.07016.34
5.4.60.0000.06716.39
5.4.50.0100.06016.41
5.4.40.0070.07016.29
5.4.30.0000.07316.41
5.4.20.0000.07716.39
5.4.10.0030.05016.29
5.4.00.0030.06315.79
5.3.290.0030.07714.50
5.3.280.0030.06714.46
5.3.270.0000.08714.54
5.3.260.0000.05314.46
5.3.250.0030.07014.58
5.3.240.0000.07714.54
5.3.230.0070.07014.43
5.3.220.0000.03714.49
5.3.210.0030.05314.55
5.3.200.0000.06714.40
5.3.190.0000.08314.55
5.3.180.0070.07314.38
5.3.170.0030.07014.39
5.3.160.0000.08014.54
5.3.150.0000.05014.43
5.3.140.0030.05314.39
5.3.130.0030.05314.50
5.3.120.0000.07714.40
5.3.110.0070.07314.38
5.3.100.0070.07014.02
5.3.90.0000.07313.99
5.3.80.0000.07313.79
5.3.70.0030.05313.79
5.3.60.0070.06713.98
5.3.50.0000.07013.85
5.3.40.0030.07313.80
5.3.30.0030.05713.87
5.3.20.0000.06713.68
5.3.10.0030.07013.61
5.3.00.0000.06013.57
5.2.170.0030.06010.99
5.2.160.0000.06011.13
5.2.150.0070.06311.16
5.2.140.0030.03710.96
5.2.130.0000.06011.10
5.2.120.0070.05711.12
5.2.110.0070.05711.05
5.2.100.0030.03311.17
5.2.90.0030.05011.06
5.2.80.0070.03011.09
5.2.70.0100.04310.95
5.2.60.0070.05711.00
5.2.50.0070.04711.00
5.2.40.0030.05011.04
5.2.30.0000.06010.83
5.2.20.0000.06310.79
5.2.10.0030.05710.87
5.2.00.0070.06010.79
5.1.60.0070.0479.99
5.1.50.0030.0509.82
5.1.40.0030.0279.98
5.1.30.0070.03010.33
5.1.20.0000.05310.27
5.1.10.0000.05710.13
5.1.00.0070.0339.90
5.0.50.0030.0438.53
5.0.40.0030.0438.40
5.0.30.0000.0608.35
5.0.20.0000.0438.35
5.0.10.0030.0408.35
5.0.00.0000.0338.35
4.4.90.0030.0338.35
4.4.80.0030.0238.35
4.4.70.0030.0308.35
4.4.60.0000.0378.35
4.4.50.0030.0338.35
4.4.40.0030.0508.35
4.4.30.0030.0238.35
4.4.20.0000.0338.35
4.4.10.0070.0308.35
4.4.00.0000.0538.35
4.3.110.0000.0338.35
4.3.100.0030.0308.35
4.3.90.0000.0338.35
4.3.80.0030.0578.35
4.3.70.0000.0378.35
4.3.60.0000.0378.35
4.3.50.0030.0308.35
4.3.40.0030.0478.35
4.3.30.0000.0378.35
4.3.20.0030.0278.35
4.3.10.0030.0208.35
4.3.00.0070.0338.35

preferences:
40.52 ms | 400 KiB | 5 Q