3v4l.org

run code in 300+ PHP versions simultaneously
<?php // get host name from URL preg_match('@^(?:http://)?([^/]+)@i', "http://example.co.uk", $matches); $host = $matches[1]; // get last two segments of host name preg_match('/([^.]+)\.[^.]+$/', $host, $matches); echo "domain name is: {$matches[1]}\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)
8.3.60.0070.01418.33
8.3.50.0090.00821.21
8.3.40.0090.00919.09
8.3.30.0060.00920.17
8.3.20.0040.00418.85
8.3.10.0000.00821.21
8.3.00.0050.00322.39
8.2.180.0120.00616.63
8.2.170.0070.00722.96
8.2.160.0040.01120.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00020.88
8.2.110.0030.00620.93
8.2.100.0110.00418.03
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0000.00917.88
8.2.60.0000.00918.03
8.2.50.0080.00318.07
8.2.40.0050.00318.34
8.2.30.0000.00918.06
8.2.20.0000.00717.87
8.2.10.0000.00717.80
8.2.00.0060.00317.96
8.1.280.0040.01525.92
8.1.270.0000.00923.99
8.1.260.0050.00326.35
8.1.250.0070.00728.09
8.1.240.0060.00322.10
8.1.230.0060.00619.12
8.1.220.0040.00417.78
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0000.00817.38
8.1.180.0080.00018.10
8.1.170.0070.00018.89
8.1.160.0070.00018.92
8.1.150.0040.00418.65
8.1.140.0000.00817.48
8.1.130.0070.00017.73
8.1.120.0060.00317.57
8.1.110.0000.00817.44
8.1.100.0000.00717.57
8.1.90.0000.00717.50
8.1.80.0020.00517.48
8.1.70.0000.00717.55
8.1.60.0040.00417.57
8.1.50.0040.00517.56
8.1.40.0040.00417.63
8.1.30.0000.00717.71
8.1.20.0080.00017.76
8.1.10.0000.00717.71
8.1.00.0040.00417.64
8.0.300.0030.00618.77
8.0.290.0000.00816.88
8.0.280.0030.00318.53
8.0.270.0000.00717.28
8.0.260.0070.00016.97
8.0.250.0050.00317.12
8.0.240.0030.00516.98
8.0.230.0000.00717.04
8.0.220.0000.00716.95
8.0.210.0000.00717.02
8.0.200.0030.00317.09
8.0.190.0030.00517.02
8.0.180.0040.00417.07
8.0.170.0030.00417.08
8.0.160.0030.00317.01
8.0.150.0000.00716.97
8.0.140.0000.00716.98
8.0.130.0000.00613.56
8.0.120.0040.00416.99
8.0.110.0000.00717.01
8.0.100.0040.00417.03
8.0.90.0050.00217.05
8.0.80.0090.00617.07
8.0.70.0000.00817.08
8.0.60.0040.00416.85
8.0.50.0030.00516.95
8.0.30.0070.01217.33
8.0.20.0110.00817.40
8.0.10.0000.00716.88
8.0.00.0100.00817.06
7.4.330.0000.00516.79
7.4.320.0060.00016.75
7.4.300.0040.00416.57
7.4.290.0000.00716.66
7.4.280.0030.00316.75
7.4.270.0040.00416.80
7.4.260.0030.00313.45
7.4.250.0040.00416.63
7.4.240.0030.00316.79
7.4.230.0000.00716.84
7.4.220.0130.00716.71
7.4.210.0090.00716.80
7.4.200.0030.00316.78
7.4.190.0000.00716.76
7.4.160.0080.00816.48
7.4.150.0080.00917.40
7.4.140.0090.00917.86
7.4.130.0080.00816.72
7.4.120.0080.00816.65
7.4.110.0090.01216.72
7.4.100.0090.00916.63
7.4.90.0060.01316.60
7.4.80.0090.00919.39
7.4.70.0170.00516.57
7.4.60.0090.00916.73
7.4.50.0000.00716.65
7.4.40.0030.01322.77
7.4.30.0110.00516.35
7.4.00.0060.00615.28
7.3.330.0030.00313.25
7.3.320.0050.00013.03
7.3.310.0000.00616.36
7.3.300.0000.00716.36
7.3.290.0030.01016.36
7.3.280.0040.01116.42
7.3.270.0100.00717.40
7.3.260.0080.01018.24
7.3.250.0100.00716.57
7.3.240.0090.00616.52
7.3.230.0060.01216.39
7.3.210.0040.01316.37
7.3.200.0060.01219.39
7.3.190.0100.01316.45
7.3.180.0060.00916.73
7.3.170.0000.01516.52
7.3.160.0080.01516.66
7.3.120.0030.01015.02
7.2.330.0140.01016.48
7.2.320.0100.01316.71
7.2.310.0060.01616.74
7.2.300.0060.01016.80
7.2.290.0100.00616.82
7.2.60.0220.00617.11
7.2.50.0030.01016.85
7.1.200.0100.00315.92
7.1.100.0070.01018.21
7.1.70.0020.00517.41
7.1.60.0100.00319.17
7.1.50.0000.02116.80
7.1.00.0070.03022.50
7.0.200.0000.00716.87
7.0.140.0000.07322.12
7.0.100.0230.08019.98
7.0.90.0070.08019.93
7.0.80.0000.08319.89
7.0.70.0030.04719.85
7.0.60.0030.05019.97
7.0.50.0100.08720.37
7.0.40.0070.06320.09
7.0.30.0030.07320.04
7.0.20.0130.07320.04
7.0.10.0130.07320.01
7.0.00.0100.04320.01
5.6.280.0030.07321.10
5.6.250.0130.04020.49
5.6.240.0030.08020.53
5.6.230.0170.07020.45
5.6.220.0100.07320.59
5.6.210.0000.09020.61
5.6.200.0130.07721.01
5.6.190.0000.08020.98
5.6.180.0100.04320.97
5.6.170.0170.04320.95
5.6.160.0130.08021.05
5.6.150.0030.08721.14
5.6.140.0230.06720.93
5.6.130.0200.05321.12
5.6.120.0300.05321.06
5.6.110.0070.07021.04
5.6.100.0070.08320.93
5.6.90.0100.06721.05
5.6.80.0130.07320.42
5.6.70.0130.03320.40
5.6.60.0130.05320.31
5.6.50.0030.05020.40
5.6.40.0070.08020.40
5.6.30.0070.03720.36
5.6.20.0130.07720.39
5.6.10.0030.04720.28
5.6.00.0070.03720.39
5.5.380.0100.05020.42
5.5.370.0070.05320.38
5.5.360.0070.06320.43
5.5.350.0030.05320.39
5.5.340.0030.08020.87
5.5.330.0030.04320.87
5.5.320.0100.04720.63
5.5.310.0070.08020.85
5.5.300.0130.07720.81
5.5.290.0100.07720.89
5.5.280.0130.07720.74
5.5.270.0100.08020.78
5.5.260.0030.07720.80
5.5.250.0070.07720.59
5.5.240.0070.05320.27
5.5.230.0130.07020.01
5.5.220.0070.06720.16
5.5.210.0170.07320.22
5.5.200.0100.03720.17
5.5.190.0070.07320.07
5.5.180.0130.07320.17
5.5.160.0070.05720.26
5.5.150.0170.07320.21
5.5.140.0070.07720.19
5.5.130.0170.05020.23
5.5.120.0030.07320.09
5.5.110.0200.05720.24
5.5.100.0130.04720.04
5.5.90.0130.06320.14
5.5.80.0100.07719.92
5.5.70.0070.06320.03
5.5.60.0070.08020.02
5.5.50.0230.06320.04
5.5.40.0070.04020.02
5.5.30.0070.04719.93
5.5.20.0070.07720.03
5.5.10.0100.06720.10
5.5.00.0070.06320.02
5.4.450.0030.07019.36
5.4.440.0030.08719.30
5.4.430.0030.08019.22
5.4.420.0130.06319.44
5.4.410.0000.06319.25
5.4.400.0030.07319.24
5.4.390.0100.03318.78
5.4.380.0130.07019.09
5.4.370.0130.06019.14
5.4.360.0070.04319.12
5.4.350.0100.05718.79
5.4.340.0100.05318.98
5.4.320.0000.04018.92
5.4.310.0100.07019.03
5.4.300.0070.06719.09
5.4.290.0070.04319.03
5.4.280.0100.04319.05
5.4.270.0100.07019.25
5.4.260.0170.07319.05
5.4.250.0130.07718.78
5.4.240.0130.04318.83
5.4.230.0100.04018.78
5.4.220.0100.07319.22
5.4.210.0100.07319.22
5.4.200.0070.03718.95
5.4.190.0030.08319.06
5.4.180.0100.06319.09
5.4.170.0200.06018.89
5.4.160.0030.06719.12
5.4.150.0100.07018.76
5.4.140.0130.04016.27
5.4.130.0030.04716.13
5.4.120.0070.05316.18
5.4.110.0100.08716.45
5.4.100.0100.07316.43
5.4.90.0170.06316.42
5.4.80.0070.04316.36
5.4.70.0130.05316.31
5.4.60.0070.07716.28
5.4.50.0100.05716.39
5.4.40.0130.06316.47
5.4.30.0070.07016.32
5.4.20.0070.05316.20
5.4.10.0100.06716.28
5.4.00.0170.06315.64
5.3.290.0000.05014.66
5.3.280.0030.07014.57
5.3.270.0070.04314.59
5.3.260.0030.04014.54
5.3.250.0070.04014.55
5.3.240.0070.07314.45
5.3.230.0100.06014.41
5.3.220.0030.05314.55
5.3.210.0000.04314.50
5.3.200.0130.07014.55
5.3.190.0130.07014.51
5.3.180.0030.04314.42
5.3.170.0030.04714.39
5.3.160.0100.04014.52
5.3.150.0030.07314.54
5.3.140.0070.07714.55
5.3.130.0070.07314.53
5.3.120.0070.04314.41
5.3.110.0100.06314.49
5.3.100.0070.07014.02
5.3.90.0070.04713.92
5.3.80.0000.04713.95
5.3.70.0070.04013.92
5.3.60.0100.03713.86
5.3.50.0070.05713.85
5.3.40.0030.04313.95
5.3.30.0100.06313.84
5.3.20.0100.03013.64
5.3.10.0030.04713.56
5.3.00.0130.03013.39
5.2.170.0000.04010.98
5.2.160.0100.03011.14
5.2.150.0100.02711.21
5.2.140.0000.03311.13
5.2.130.0070.06311.04
5.2.120.0030.06711.16
5.2.110.0100.05311.15
5.2.100.0000.05311.13
5.2.90.0000.03311.06
5.2.80.0070.02710.88
5.2.70.0100.04011.08
5.2.60.0130.05010.91
5.2.50.0000.05311.06
5.2.40.0070.04311.01
5.2.30.0100.05011.03
5.2.20.0070.05010.81
5.2.10.0000.06310.86
5.2.00.0100.04710.57
5.1.60.0000.0409.99
5.1.50.0100.04710.02
5.1.40.0070.0409.96
5.1.30.0130.02310.26
5.1.20.0070.05310.41
5.1.10.0000.0479.90
5.1.00.0030.0439.91
5.0.50.0000.0479.57
5.0.40.0100.0339.57
5.0.30.0070.0479.57
5.0.20.0030.0239.57
5.0.10.0070.0409.57
5.0.00.0100.0679.57
4.4.90.0000.0239.57
4.4.80.0030.0239.57
4.4.70.0000.0239.57
4.4.60.0000.0339.57
4.4.50.0070.0239.57
4.4.40.0000.0379.57
4.4.30.0100.0239.57
4.4.20.0030.0379.57
4.4.10.0000.0379.57
4.4.00.0030.0539.57
4.3.110.0070.0239.57
4.3.100.0070.0209.57
4.3.90.0030.0309.57
4.3.80.0030.0479.57
4.3.70.0000.0209.57
4.3.60.0000.0239.57
4.3.50.0030.0379.57
4.3.40.0030.0479.57
4.3.30.0000.0379.57
4.3.20.0000.0379.57
4.3.10.0070.0209.57
4.3.00.0000.0309.57

preferences:
41.56 ms | 401 KiB | 5 Q