3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domain = 'www.foo.com'; if (substr($domain, 0, 7) == "http://") { $domain = substr_replace($domain, "", 0, 7); } $url = "http://" . $domain; $params = explode('.', $url); var_dump($params);

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.40.0100.00718.85
8.3.30.0030.01018.92
8.3.20.0040.01120.09
8.3.10.0000.00923.61
8.3.00.0040.00420.84
8.2.170.0000.01522.96
8.2.160.0000.01420.31
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00420.73
8.2.110.0060.00322.24
8.2.100.0000.01217.91
8.2.90.0060.00319.05
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0000.00818.03
8.2.50.0040.00418.07
8.2.40.0090.00019.88
8.2.30.0000.01118.26
8.2.20.0040.00417.78
8.2.10.0040.00418.11
8.2.00.0050.00217.72
8.1.270.0130.00722.16
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00323.84
8.1.230.0070.00419.11
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0090.00616.98
8.1.190.0000.00817.13
8.1.180.0000.00818.10
8.1.170.0000.00818.65
8.1.160.0070.00022.00
8.1.150.0030.00418.58
8.1.140.0000.00717.42
8.1.130.0030.00317.72
8.1.120.0000.00817.42
8.1.110.0030.00617.36
8.1.100.0040.00317.41
8.1.90.0000.00717.33
8.1.80.0040.00417.41
8.1.70.0050.00317.45
8.1.60.0000.01017.60
8.1.50.0040.00417.42
8.1.40.0020.00517.49
8.1.30.0080.00317.61
8.1.20.0050.00317.70
8.1.10.0000.00817.39
8.1.00.0040.00717.44
8.0.300.0040.00418.77
8.0.290.0000.00717.15
8.0.280.0030.00318.44
8.0.270.0050.00317.16
8.0.260.0080.00017.16
8.0.250.0030.00316.98
8.0.240.0000.00716.82
8.0.230.0040.00416.83
8.0.220.0000.00616.90
8.0.210.0040.00416.85
8.0.200.0060.00017.00
8.0.190.0100.00017.00
8.0.180.0040.00416.79
8.0.170.0000.00716.94
8.0.160.0000.00716.84
8.0.150.0000.00716.85
8.0.140.0070.00016.87
8.0.130.0000.00613.41
8.0.120.0050.00316.83
8.0.110.0080.00016.92
8.0.100.0040.00416.98
8.0.90.0000.00816.88
8.0.80.0030.01616.92
8.0.70.0040.00416.88
8.0.60.0030.00316.97
8.0.50.0000.00716.89
8.0.30.0130.00717.16
8.0.20.0100.00717.40
8.0.10.0050.00216.95
8.0.00.0050.01216.80
7.4.330.0000.00515.00
7.4.320.0060.00016.57
7.4.300.0000.00616.51
7.4.290.0080.00316.48
7.4.280.0040.00416.56
7.4.270.0000.00716.50
7.4.260.0070.00016.50
7.4.250.0050.00216.59
7.4.240.0040.00316.55
7.4.230.0050.00216.54
7.4.220.0070.01116.45
7.4.210.0060.01316.52
7.4.200.0040.00416.38
7.4.160.0060.00916.38
7.4.150.0060.01317.40
7.4.140.0140.00317.86
7.4.130.0100.00916.54
7.4.120.0100.01016.44
7.4.110.0030.01316.34
7.4.100.0110.00616.49
7.4.90.0090.01216.65
7.4.80.0130.00619.39
7.4.70.0030.01216.49
7.4.60.0030.01416.50
7.4.50.0040.00416.58
7.4.40.0080.01516.54
7.4.30.0060.00916.41
7.4.00.0060.00614.56
7.3.330.0040.00412.98
7.3.320.0000.00613.12
7.3.310.0000.00716.31
7.3.300.0030.00316.25
7.3.290.0030.00916.23
7.3.280.0090.00816.30
7.3.270.0100.00717.40
7.3.260.0140.00416.29
7.3.250.0110.00716.27
7.3.240.0160.00316.38
7.3.230.0040.01316.39
7.3.210.0100.00716.35
7.3.200.0030.01419.39
7.3.190.0110.00916.32
7.3.180.0060.01016.29
7.3.170.0120.00316.38
7.3.160.0090.00616.21
7.3.120.0060.00914.83
7.3.10.0070.00716.53
7.3.00.0070.00716.55
7.2.330.0100.00716.45
7.2.320.0030.01416.48
7.2.310.0090.00916.68
7.2.300.0130.03116.73
7.2.290.0140.00816.68
7.2.130.0040.00716.96
7.2.120.0100.00716.93
7.2.110.0070.00716.87
7.2.100.0070.00316.55
7.2.90.0070.01016.84
7.2.80.0090.00916.63
7.2.70.0090.00916.53
7.2.60.0030.01216.73
7.2.50.0060.00616.81
7.2.40.0070.00316.87
7.2.30.0060.00616.79
7.2.20.0030.01016.63
7.2.10.0040.01416.72
7.2.00.0040.01218.10
7.1.250.0060.00315.45
7.1.200.0000.01215.86
7.1.100.0080.00317.98
7.1.70.0040.00416.95
7.1.60.0140.01119.70
7.1.50.0200.00334.82
7.1.00.0070.07322.28
7.0.200.0030.00915.05
7.0.140.0070.07022.09
7.0.60.0100.08319.93
7.0.50.0100.08317.66
7.0.40.0070.04320.19
7.0.30.0500.03720.17
7.0.20.0170.04720.11
7.0.10.0130.08020.30
7.0.00.0130.03720.16
5.6.280.0100.06720.89
5.6.210.0000.04720.47
5.6.200.0130.07018.18
5.6.190.0100.04320.56
5.6.180.0270.04020.60
5.6.170.0170.06320.41
5.6.160.0030.04720.33
5.6.150.0030.04018.22
5.6.140.0100.08018.21
5.6.130.0130.05018.16
5.6.120.0030.05020.98
5.6.110.0170.08021.11
5.6.100.0070.06320.99
5.6.90.0130.08021.00
5.6.80.0070.07020.38
5.6.70.3300.03320.37
5.5.350.0170.06720.45
5.5.340.0100.07717.91
5.5.330.0000.08020.38
5.5.320.0330.07020.20
5.5.310.0430.07020.29
5.5.300.0170.04017.88
5.5.290.0000.06717.92
5.5.280.0070.08320.80
5.5.270.0030.04320.93
5.5.260.0130.07720.76
5.5.250.0100.08020.79
5.5.240.0030.07320.02
5.4.450.0130.08019.59
5.4.440.1000.06319.44
5.4.430.0800.05319.62
5.4.420.1100.06319.48
5.4.410.1170.05719.21
5.4.400.0100.05719.17
5.4.390.0870.07319.33
5.4.380.0200.05018.69
5.4.370.0170.05318.61
5.4.360.0030.06718.65
5.4.350.0130.05318.74
5.4.340.0170.05018.56
5.4.320.0040.03812.45
5.4.310.0060.04212.45
5.4.300.0080.03812.45
5.4.290.0090.04012.45
5.4.280.0120.04112.35
5.4.270.0070.04512.35
5.4.260.0100.04712.34
5.4.250.0050.04712.34
5.4.240.0080.04812.35
5.4.230.0090.05112.34
5.4.220.0120.04812.34
5.4.210.0080.04912.34
5.4.200.0130.04412.34
5.4.190.0080.04912.33
5.4.180.0080.05712.34
5.4.170.0090.04512.35
5.4.160.0080.05612.34
5.4.150.0100.04912.34
5.4.140.0080.05112.02
5.4.130.0050.04912.01
5.4.120.0080.04811.97
5.4.110.0090.04711.96
5.4.100.0120.04411.96
5.4.90.0070.05411.96
5.4.80.0070.05311.96
5.4.70.0080.04911.96
5.4.60.0100.04711.96
5.4.50.0090.05111.96
5.4.40.0120.04311.95
5.4.30.0110.04311.95
5.4.20.0050.05511.95
5.4.10.0060.04911.95
5.4.00.0080.04811.43
5.3.290.0060.03912.80
5.3.280.0090.05112.71
5.3.270.0060.05912.73
5.3.260.0070.05812.72
5.3.250.0100.05212.72
5.3.240.0150.05412.72
5.3.230.0090.05312.70
5.3.220.0120.04912.68
5.3.210.0120.06012.68
5.3.200.0070.05012.68
5.3.190.0100.06312.67
5.3.180.0110.04912.68
5.3.170.0110.04812.67
5.3.160.0130.04912.68
5.3.150.0090.05412.67
5.3.140.0110.05112.66
5.3.130.0120.05212.66
5.3.120.0090.05512.66
5.3.110.0090.05312.66
5.3.100.0090.04812.12
5.3.90.0090.04912.09
5.3.80.0110.04612.07
5.3.70.0090.04712.07
5.3.60.0070.04812.06
5.3.50.0120.04312.00
5.3.40.0140.04212.00
5.3.30.0080.04411.95
5.3.20.0110.04311.72
5.3.10.0120.04611.69
5.3.00.0110.04611.68
5.2.170.0090.0429.18
5.2.160.0100.0319.18
5.2.150.0090.0359.18
5.2.140.0070.0419.17
5.2.130.0060.0339.13
5.2.120.0060.0289.13
5.2.110.0060.0299.14
5.2.100.0050.0309.14
5.2.90.0100.0279.14
5.2.80.0080.0359.13
5.2.70.0070.0309.13
5.2.60.0060.0299.09
5.2.50.0040.0319.05
5.2.40.0050.0309.03
5.2.30.0050.0309.01
5.2.20.0020.0329.00
5.2.10.0050.0318.92
5.2.00.0060.0458.78
5.1.60.0040.0388.06
5.1.50.0050.0378.06
5.1.40.0090.0378.04
5.1.30.0090.0438.39
5.1.20.0070.0438.41
5.1.10.0070.0378.13
5.1.00.0060.0378.14
5.0.50.0040.0286.62
5.0.40.0060.0256.48
5.0.30.0060.0396.29
5.0.20.0140.0336.26
5.0.10.0030.0296.23
5.0.00.0030.0406.23
4.4.90.0030.0224.78
4.4.80.0030.0224.75
4.4.70.0030.0224.75
4.4.60.0050.0204.76
4.4.50.0030.0234.77
4.4.40.0070.0314.71
4.4.30.0070.0194.76
4.4.20.0050.0234.85
4.4.10.0070.0184.85
4.4.00.0040.0314.76
4.3.110.0050.0194.67
4.3.100.0050.0194.67
4.3.90.0020.0214.63
4.3.80.0060.0264.59
4.3.70.0030.0214.63
4.3.60.0030.0194.63
4.3.50.0050.0184.63
4.3.40.0070.0294.54
4.3.30.0020.0223.29
4.3.20.0050.0193.26
4.3.10.0060.0213.23
4.3.00.0000.02028.28

preferences:
31 ms | 400 KiB | 5 Q