3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<Location "/wtf" "yo" hello> Allow from all </Location>'; preg_match('/^<[\S\s]+?>/', $str, $matches); $res = trim($matches[0], "<>"); var_dump($res );

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.01018.43
8.3.50.0130.01021.34
8.3.40.0040.01118.80
8.3.30.0090.00619.09
8.3.20.0050.00320.30
8.3.10.0080.00023.66
8.3.00.0060.00319.50
8.2.180.0110.00716.75
8.2.170.0040.01422.96
8.2.160.0110.00420.37
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00322.17
8.2.110.0060.00322.25
8.2.100.0070.00417.88
8.2.90.0080.00019.22
8.2.80.0050.00317.97
8.2.70.0000.01117.88
8.2.60.0060.00617.93
8.2.50.0050.00318.07
8.2.40.0000.00818.34
8.2.30.0000.00718.08
8.2.20.0040.00417.92
8.2.10.0040.00418.08
8.2.00.0000.00817.88
8.1.280.0090.00625.92
8.1.270.0080.00022.11
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0000.01119.15
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0080.00417.36
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0060.00320.40
8.1.160.0000.00721.93
8.1.150.0070.00018.80
8.1.140.0040.00417.52
8.1.130.0000.00717.83
8.1.120.0080.00017.60
8.1.110.0040.00417.41
8.1.100.0000.01017.43
8.1.90.0040.00417.53
8.1.80.0000.00717.53
8.1.70.0040.00417.48
8.1.60.0040.00417.57
8.1.50.0000.00717.50
8.1.40.0000.00717.59
8.1.30.0060.00317.72
8.1.20.0000.00717.57
8.1.10.0040.00417.69
8.1.00.0090.00017.58
8.0.300.0050.00218.77
8.0.290.0000.00816.75
8.0.280.0070.00018.31
8.0.270.0070.00017.20
8.0.260.0000.00617.12
8.0.250.0030.00316.94
8.0.240.0000.00716.89
8.0.230.0000.00716.89
8.0.220.0030.00416.96
8.0.210.0030.00316.97
8.0.200.0030.00317.01
8.0.190.0040.00417.05
8.0.180.0060.00317.00
8.0.170.0000.00816.99
8.0.160.0000.00817.03
8.0.150.0040.00416.77
8.0.140.0050.00216.96
8.0.130.0030.00313.35
8.0.120.0040.00416.93
8.0.110.0030.00516.98
8.0.100.0040.00417.02
8.0.90.0020.00516.86
8.0.80.0120.00916.87
8.0.70.0030.00317.01
8.0.60.0000.00717.03
8.0.50.0030.00517.00
8.0.30.0150.00717.05
8.0.20.0150.01317.40
8.0.10.0000.00716.95
8.0.00.0110.01016.93
7.4.330.0020.00215.04
7.4.320.0040.00416.63
7.4.300.0060.00016.77
7.4.290.0040.00416.54
7.4.280.0030.00716.70
7.4.270.0070.00016.73
7.4.260.0000.00513.43
7.4.250.0000.00816.57
7.4.240.0020.00516.67
7.4.230.0070.00016.83
7.4.220.0130.01316.78
7.4.210.0120.00616.82
7.4.200.0030.00316.75
7.4.160.0060.00916.41
7.4.150.0030.01517.40
7.4.140.0070.01017.86
7.4.130.0070.01116.52
7.4.120.0110.00616.63
7.4.110.0060.01116.79
7.4.100.0120.00616.75
7.4.90.0100.01016.47
7.4.80.0070.01019.39
7.4.70.0060.01616.72
7.4.60.0100.00716.56
7.4.50.0000.00916.58
7.4.40.0070.01016.47
7.4.30.0060.01316.64
7.4.00.0060.01014.75
7.3.330.0030.00313.24
7.3.320.0000.00513.09
7.3.310.0000.00816.28
7.3.300.0050.00216.25
7.3.290.0050.01016.32
7.3.280.0140.00316.34
7.3.270.0060.01217.40
7.3.260.0030.01316.66
7.3.250.0090.00816.65
7.3.240.0170.00316.41
7.3.230.0070.01016.39
7.3.210.0100.00716.25
7.3.200.0090.01219.39
7.3.190.0170.00716.35
7.3.180.0140.00016.28
7.3.170.0170.00716.40
7.3.160.0140.00316.45
7.2.330.0110.00716.61
7.2.320.0040.01416.44
7.2.310.0100.00716.88
7.2.300.0060.00916.57
7.2.290.0140.00316.45
7.2.60.0230.01316.58
7.2.00.0120.00619.70
7.1.200.0080.00416.01
7.1.100.0000.01118.56
7.1.70.0000.01117.15
7.1.60.0070.01719.32
7.1.50.0100.02434.99
7.1.00.0030.07722.45
7.0.200.0170.00414.79
7.0.140.0030.07322.18
7.0.60.0070.07320.04
7.0.50.0070.04717.83
7.0.40.0070.08720.25
7.0.30.0200.03720.18
7.0.20.0300.04720.19
7.0.10.0030.09020.03
7.0.00.0000.09020.01
5.6.280.0130.06321.03
5.6.210.0030.04320.68
5.6.200.0000.06018.19
5.6.190.0070.06320.66
5.6.180.0270.04320.58
5.6.170.0270.05020.47
5.6.160.0170.07320.55
5.6.150.0000.08718.21
5.6.140.0100.07718.22
5.6.130.0070.04018.21
5.6.120.0000.06021.09
5.6.110.0170.06021.07
5.6.100.0130.05321.03
5.6.90.0330.06021.11
5.6.80.0030.07320.34
5.6.70.4770.04020.36
5.5.350.0300.07720.43
5.5.340.0070.07017.95
5.5.330.0200.03720.07
5.5.320.0300.08320.25
5.5.310.0230.03720.30
5.5.300.0070.08718.00
5.5.290.0070.05717.90
5.5.280.0070.05720.96
5.5.270.0030.09020.67
5.5.260.0070.06020.86
5.5.250.0100.07720.57
5.5.240.0230.03020.11
5.4.450.0130.08019.46
5.4.440.0200.03719.43
5.4.430.0100.04719.20
5.4.420.0230.07719.24
5.4.410.0230.04319.29
5.4.400.0170.05719.16
5.4.390.0230.07019.24
5.4.380.0270.06019.07
5.4.370.0230.04019.09
5.4.360.0230.07319.23
5.4.350.0270.06019.23
5.4.340.0230.03319.24
5.4.320.0230.06019.24
5.4.310.0230.07318.80
5.4.300.0230.07018.77
5.4.290.0230.03319.24
5.4.280.0230.07019.23
5.4.270.0200.07019.21
5.4.260.0270.06718.77
5.4.250.0230.04018.79
5.4.240.0230.05719.14
5.4.230.0130.04718.76
5.4.220.0300.05019.12
5.4.210.0230.03018.78
5.4.200.0200.07319.24
5.4.190.0300.05018.90
5.4.180.0200.06718.76
5.4.170.0230.07719.07
5.4.160.0200.05018.86
5.4.150.0130.05019.02
5.4.140.0230.04016.28
5.4.130.0170.03316.44
5.4.120.0130.05716.15
5.4.110.0200.03316.18
5.4.100.0230.03016.18
5.4.90.0230.06016.34
5.4.80.0230.03716.37
5.4.70.0270.02716.36
5.4.60.0270.03716.40
5.4.50.0000.04016.23
5.4.40.0030.03716.35
5.4.30.0070.03316.46
5.4.20.2230.04316.18
5.4.10.2130.04716.40
5.4.00.1930.04015.78
5.3.290.1700.04014.75
5.3.280.1800.04014.60
5.3.270.2270.04314.43
5.3.260.1800.04014.62
5.3.250.1900.03714.46
5.3.240.1700.04014.45
5.3.230.2170.04314.57
5.3.220.2130.04714.66
5.3.210.2200.04714.51
5.3.200.1900.04714.57
5.3.190.1830.04014.51
5.3.180.1830.03314.43
5.3.170.2170.05014.39
5.3.160.1470.04314.50
5.3.150.0030.03714.41
5.3.140.0070.03314.39
5.3.130.0900.04014.38
5.3.120.1800.03714.64
5.3.110.2100.04714.45
5.3.100.2000.03013.98
5.3.90.1770.04013.99
5.3.80.1870.04014.07
5.3.70.1930.04013.84
5.3.60.1900.02713.95
5.3.50.2030.04013.93
5.3.40.2030.03713.99
5.3.30.1100.03713.81
5.3.20.0000.04013.74
5.3.10.0000.03713.45
5.3.00.1070.03313.41
5.2.170.1500.02311.19
5.2.160.1730.03011.00
5.2.150.1700.03711.01
5.2.140.1630.03711.08
5.2.130.1500.02310.94
5.2.120.1570.03711.04
5.2.110.1700.03710.96
5.2.100.1730.03311.12
5.2.90.1730.04011.04
5.2.80.1500.03011.11
5.2.70.1530.03711.00
5.2.60.0830.05011.09
5.2.50.0000.03710.95
5.2.40.0030.06010.88
5.2.30.0070.06010.80
5.2.20.0030.06010.82
5.2.10.1130.03011.02
5.2.00.1230.03010.57
5.1.60.0470.04310.07
5.1.50.0030.0279.96
5.1.40.0030.05310.06
5.1.30.0070.05310.28
5.1.20.0030.05310.42
5.1.10.0070.02710.04
5.1.00.1200.0279.93
5.0.50.0770.0278.70
5.0.40.0830.0278.41
5.0.30.0700.0408.38
5.0.20.0570.0208.18
5.0.10.0530.0238.31
5.0.00.0800.0438.18
4.4.90.0730.0238.18
4.4.80.0700.0208.18
4.4.70.0700.0238.18
4.4.60.0730.0278.18
4.4.50.0730.0138.18
4.4.40.0600.0238.18
4.4.30.0800.0238.18
4.4.20.0730.0278.18
4.4.10.0730.0238.18
4.4.00.0570.0278.18
4.3.110.0730.0238.18
4.3.100.0800.0208.18
4.3.90.0630.0208.18
4.3.80.0570.0278.18
4.3.70.0570.0178.18
4.3.60.0700.0208.18
4.3.50.0800.0208.18
4.3.40.0830.0308.18
4.3.30.0330.0178.18
4.3.20.0370.0178.18
4.3.10.0400.0178.18
4.3.00.0370.0278.18

preferences:
45.85 ms | 401 KiB | 5 Q