3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '~<a\s*(.*)\>(.*)</a>~'; $subject = '<a href="#">hello</a> <abbr href="#">FYI</abbr> <a title="goodbye">later</a>'; preg_match_all($pattern, $subject, $matches); print_r($matches[1]);

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.0100.00716.75
8.3.50.0070.00718.30
8.3.40.0090.00618.68
8.3.30.0090.00618.68
8.3.20.0050.00220.89
8.3.10.0080.00020.33
8.3.00.0040.00420.52
8.2.180.0130.00918.66
8.2.170.0110.00322.96
8.2.160.0090.00922.21
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00420.94
8.2.110.0070.00321.12
8.2.100.0070.00418.03
8.2.90.0050.00317.97
8.2.80.0000.00819.00
8.2.70.0040.00417.68
8.2.60.0040.00818.09
8.2.50.0080.00018.10
8.2.40.0080.00019.34
8.2.30.0000.00819.17
8.2.20.0000.00718.09
8.2.10.0080.00019.26
8.2.00.0000.00719.12
8.1.280.0120.00625.92
8.1.270.0050.00323.84
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0040.00423.80
8.1.230.0070.00420.96
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0050.00517.35
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0040.00419.05
8.1.150.0040.00418.89
8.1.140.0040.00418.79
8.1.130.0000.00820.09
8.1.120.0060.00317.47
8.1.110.0040.00317.55
8.1.100.0020.00517.46
8.1.90.0050.00217.55
8.1.80.0030.00617.44
8.1.70.0040.00417.54
8.1.60.0060.00317.59
8.1.50.0000.01217.60
8.1.40.0040.00417.60
8.1.30.0030.00517.60
8.1.20.0050.00317.71
8.1.10.0050.00317.59
8.1.00.0040.00417.66
8.0.300.0000.00719.86
8.0.290.0030.00616.75
8.0.280.0070.00018.38
8.0.270.0040.00416.89
8.0.260.0030.00319.97
8.0.250.0070.00017.03
8.0.240.0000.00816.92
8.0.230.0030.00317.05
8.0.220.0040.00416.86
8.0.210.0040.00417.04
8.0.200.0070.00016.99
8.0.190.0040.00417.03
8.0.180.0080.00016.97
8.0.170.0040.00417.04
8.0.160.0030.00616.92
8.0.150.0040.00416.83
8.0.140.0030.00416.78
8.0.130.0060.00013.35
8.0.120.0040.00416.96
8.0.110.0070.00016.84
8.0.100.0000.00816.85
8.0.90.0000.00816.80
8.0.80.0060.00916.91
8.0.70.0070.00017.00
8.0.60.0040.00416.79
8.0.50.0000.00716.86
8.0.30.0090.01217.16
8.0.20.0090.00917.25
8.0.10.0000.00817.11
8.0.00.0110.00716.73
7.4.330.0000.00515.55
7.4.320.0000.00616.59
7.4.300.0030.00316.79
7.4.290.0000.00816.64
7.4.280.0030.00616.74
7.4.270.0070.00016.65
7.4.260.0030.00313.41
7.4.250.0000.00716.61
7.4.240.0040.00416.58
7.4.230.0030.00316.77
7.4.220.0050.00216.74
7.4.210.0070.01116.74
7.4.200.0070.00016.48
7.4.130.0100.00716.73
7.4.120.0140.00716.53
7.4.110.0130.00316.47
7.4.100.0120.00616.52
7.4.90.0070.01016.67
7.4.80.0100.01019.39
7.4.70.0070.01016.81
7.4.60.0120.00916.70
7.4.50.0030.00616.85
7.4.40.0140.00316.75
7.4.00.0030.01215.13
7.3.330.0030.00516.17
7.3.320.0000.00513.18
7.3.310.0000.00816.36
7.3.300.0000.00716.34
7.3.290.0020.00516.21
7.3.280.0070.01016.36
7.3.260.0100.00916.56
7.3.240.0080.00916.57
7.3.230.0070.01016.44
7.3.210.0060.01216.77
7.3.200.0130.00316.41
7.3.190.0100.00716.35
7.3.180.0160.00016.62
7.3.170.0150.00616.40
7.3.160.0060.01016.73
7.3.120.0100.00314.68
7.3.110.0000.01315.13
7.3.100.0060.00814.61
7.3.90.0080.00614.94
7.3.80.0060.00815.02
7.3.70.0080.01014.83
7.3.60.0020.01414.93
7.3.50.0050.01114.73
7.3.40.0030.01214.73
7.3.30.0050.00814.96
7.3.20.0080.00815.82
7.3.10.0050.01115.82
7.3.00.0030.01215.84
7.2.330.0130.00716.58
7.2.320.0030.01216.80
7.2.310.0070.01016.76
7.2.300.0070.01016.76
7.2.290.0040.01116.60
7.2.240.0030.00614.82
7.2.230.0080.01115.16
7.2.220.0080.00815.05
7.2.210.0070.00715.05
7.2.200.0050.00815.06
7.2.190.0070.00714.98
7.2.180.0050.01014.95
7.2.170.0060.01014.84
7.2.160.0110.00514.96
7.2.150.0020.01315.85
7.2.140.0090.00716.07
7.2.130.0040.01016.03
7.2.120.0080.00715.93
7.2.110.0080.00515.89
7.2.100.0110.00515.95
7.2.90.0030.01315.92
7.2.80.0070.00715.93
7.2.70.0060.01216.11
7.2.60.0090.00616.14
7.2.50.0060.00816.12
7.2.40.0040.00816.21
7.2.30.0100.00715.99
7.2.20.0060.01015.93
7.2.10.0040.01115.94
7.2.00.0090.00816.10
7.1.330.0060.00315.98
7.1.320.0060.01114.99
7.1.310.0060.00815.23
7.1.300.0070.00915.06
7.1.290.0090.00614.96
7.1.280.0050.01015.07
7.1.270.0060.00815.13
7.1.260.0050.00815.07
7.1.250.0090.00414.91

preferences:
63.3 ms | 400 KiB | 5 Q