3v4l.org

run code in 300+ PHP versions simultaneously
<?php $imageURL = "http://images.moneysavingexpert.com/images/warmth-alerts-illustrations.png"; $parts = parse_url($imageURL); $path = $parts['path']; $lastSlash = strrpos($path,"/"); $imageName = substr($path, $lastSlash); echo "<pre>"; print_r($parts); pritn_r($imageName);

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.0120.00916.50
8.3.50.0070.01121.84
8.3.40.0140.00318.84
8.3.30.0100.00319.04
8.3.20.0040.00420.25
8.3.10.0080.00021.73
8.3.00.0040.00420.95
8.2.180.0070.01116.88
8.2.170.0100.01022.96
8.2.160.0130.00322.25
8.2.150.0090.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.89
8.2.110.0090.00019.37
8.2.100.0120.00018.03
8.2.90.0030.00618.22
8.2.80.0040.00418.16
8.2.70.0040.00417.76
8.2.60.0030.00618.05
8.2.50.0030.00918.10
8.2.40.0060.00320.30
8.2.30.0000.00718.05
8.2.20.0050.00217.61
8.2.10.0040.00417.93
8.2.00.0070.00017.72
8.1.280.0120.00625.92
8.1.270.0060.00320.78
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0090.00022.61
8.1.230.0050.00520.91
8.1.220.0070.00317.76
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0070.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00818.54
8.1.160.0040.00422.18
8.1.150.0030.00718.82
8.1.140.0040.00419.22
8.1.130.0000.00717.82
8.1.120.0040.00417.29
8.1.110.0030.00617.29
8.1.100.0000.00717.26
8.1.90.0070.00017.33
8.1.80.0040.00417.30
8.1.70.0030.00317.38
8.1.60.0080.00017.47
8.1.50.0050.00317.53
8.1.40.0040.00417.39
8.1.30.0080.00017.66
8.1.20.0000.00817.65
8.1.10.0080.00017.41
8.1.00.0060.00317.44
8.0.300.0000.00719.97
8.0.290.0040.00416.75
8.0.280.0040.00418.45
8.0.270.0050.00317.26
8.0.260.0060.00317.27
8.0.250.0070.00016.98
8.0.240.0000.00816.93
8.0.230.0000.00716.97
8.0.220.0000.00716.89
8.0.210.0000.00716.86
8.0.200.0030.00316.81
8.0.190.0030.00616.85
8.0.180.0000.00716.85
8.0.170.0050.00316.93
8.0.160.0030.00516.89
8.0.150.0030.00316.90
8.0.140.0080.00016.89
8.0.130.0000.00613.25
8.0.120.0080.00016.89
8.0.110.0000.00716.78
8.0.100.0000.00716.67
8.0.90.0000.00716.92
8.0.80.0060.00916.85
8.0.70.0000.00716.67
8.0.60.0040.00416.96
8.0.50.0040.00416.91
8.0.30.0130.01117.04
8.0.20.0140.00717.40
8.0.10.0000.00716.84
8.0.00.0120.00516.95
7.4.330.0030.00315.03
7.4.320.0000.00616.49
7.4.300.0030.00316.42
7.4.290.0040.00416.61
7.4.280.0050.00316.39
7.4.270.0040.00416.40
7.4.260.0030.00616.41
7.4.250.0040.00416.48
7.4.240.0000.00716.48
7.4.230.0030.00316.71
7.4.220.0030.01516.51
7.4.210.0000.01416.56
7.4.200.0080.00016.30
7.4.160.0150.00016.62
7.4.150.0100.00717.40
7.4.140.0120.00517.86
7.4.130.0110.00616.52
7.4.120.0090.00916.59
7.4.110.0120.00616.43
7.4.100.0090.01216.50
7.4.90.0100.00816.57
7.4.80.0070.01716.63
7.4.70.0090.01316.52
7.4.60.0140.00316.45
7.4.50.0030.00616.44
7.4.40.0030.01416.32
7.4.30.0080.01516.50
7.4.00.0060.00915.05
7.3.330.0030.00313.22
7.3.320.0030.01013.20
7.3.310.0000.00616.26
7.3.300.0030.00316.35
7.3.290.0060.01016.28
7.3.280.0150.00616.26
7.3.270.0120.01217.40
7.3.260.0060.01216.33
7.3.250.0090.00816.35
7.3.240.0110.00516.38
7.3.230.0070.01016.54
7.3.210.0120.00416.45
7.3.200.0170.00619.39
7.3.190.0070.01416.38
7.3.180.0030.01216.56
7.3.170.0190.00316.30
7.3.160.0120.00316.35
7.2.330.0110.00616.71
7.2.320.0080.00816.26
7.2.310.0070.01016.60
7.2.300.0070.01316.85
7.2.290.0090.01316.57
7.2.60.0120.00416.81
7.2.00.0030.00919.30
7.1.200.0060.00315.80
7.1.100.0000.00918.03
7.1.70.0040.00417.16
7.1.60.0040.00719.46
7.1.50.0070.01416.98
7.1.00.0070.07322.48
7.0.200.0030.00716.73
7.0.140.0000.03721.97
7.0.60.0070.08019.94
7.0.50.0030.08317.86
7.0.40.0100.03720.23
7.0.30.0270.06320.04
7.0.20.0300.07320.18
7.0.10.0070.07020.16
7.0.00.0100.08020.29
5.6.280.0000.07320.79
5.6.210.0070.08020.56
5.6.200.0070.07718.12
5.6.190.0000.05020.64
5.6.180.0500.07320.41
5.6.170.0300.07020.48
5.6.160.0130.08320.48
5.6.150.0000.09018.11
5.6.140.0130.07318.11
5.6.130.0100.08018.15
5.6.120.0030.08720.89
5.6.110.0000.04320.99
5.6.100.0100.06321.06
5.6.90.0000.08020.96
5.6.80.0100.07320.52
5.5.350.0300.08020.39
5.5.340.0070.07718.02
5.5.330.0070.06720.25
5.5.320.0030.04720.30
5.5.310.0270.07720.17
5.5.300.0000.04717.98
5.5.290.0100.08317.91
5.5.280.0030.04020.72
5.5.270.0030.08720.95
5.5.260.0000.04720.61
5.5.250.0170.04320.54
5.5.240.0030.07020.21
5.4.450.0570.05319.54
5.4.440.0300.04319.28
5.4.430.0170.05019.24
5.4.420.0370.06019.47
5.4.410.0070.07019.34
5.4.400.0170.05319.09
5.4.390.0970.06318.63
5.4.380.0300.07318.53
5.4.370.0100.07718.60
5.4.360.0270.04318.71
5.4.350.1030.07018.50
5.4.340.1300.04718.77
5.4.320.0900.06018.77
5.4.310.0870.06718.49
5.4.300.0700.06718.67
5.4.290.0930.06318.65
5.4.280.1100.07718.59
5.4.270.1070.04318.73
5.4.260.0830.05018.73
5.4.250.1130.07718.69
5.4.240.1030.07018.69
5.4.230.0930.07018.76
5.4.220.1170.07318.57
5.4.210.1100.07718.61
5.4.200.0900.07016.75
5.4.190.1100.06718.47
5.4.180.1170.07018.44
5.4.170.1070.06318.74
5.4.160.0800.06718.70
5.4.150.1170.06318.75
5.4.140.1000.06016.17
5.4.130.0970.04716.22
5.4.120.0830.05016.14
5.4.110.1030.05716.30
5.4.100.1200.04716.18
5.4.90.0730.06716.05
5.4.80.0800.06316.20
5.4.70.1030.06016.27
5.4.60.1000.06716.23
5.4.50.1170.04716.13
5.4.40.1170.06716.27
5.4.30.1000.04016.22
5.4.20.0870.05716.09
5.4.10.1000.05316.26
5.4.00.0970.05315.71
5.3.290.0930.07014.55
5.3.280.1000.05314.59
5.3.270.0700.06314.68
5.3.260.0830.05314.50
5.3.250.0730.06014.55
5.3.240.0800.06014.54
5.3.230.1100.06314.64
5.3.220.0900.06014.49
5.3.210.1200.05014.58
5.3.200.0770.05714.56
5.3.190.0830.06314.50
5.3.180.0900.06014.59
5.3.170.0900.06014.55
5.3.160.0970.06314.55
5.3.150.0970.08714.47
5.3.140.1130.06314.65
5.3.130.1070.06714.64
5.3.120.1200.06314.66
5.3.110.0730.06314.64
5.3.100.0770.06014.03
5.3.90.0700.06014.05
5.3.80.0770.06714.02
5.3.70.0600.06314.00
5.3.60.1100.06313.96
5.3.50.0900.06714.04
5.3.40.0900.06013.92
5.3.30.0900.05313.94
5.3.20.0800.05013.72
5.3.10.1000.05013.62
5.3.00.1130.05713.58
5.2.170.0770.04311.13
5.2.160.0970.04011.17
5.2.150.0600.04711.18
5.2.140.0770.05311.06
5.2.130.0670.04011.03
5.2.120.0630.04311.05
5.2.110.0700.05011.13
5.2.100.1030.05011.11
5.2.90.0600.05311.06
5.2.80.0730.06011.11
5.2.70.0730.04711.02
5.2.60.0800.04311.20
5.2.50.0530.04310.98
5.2.40.0500.05011.03
5.2.30.0500.05710.93
5.2.20.1830.05310.94
5.2.10.0570.04010.91
5.2.00.0300.06310.75
5.1.60.0730.03710.13
5.1.50.0530.0409.96
5.1.40.0730.03710.11
5.1.30.0770.03710.48
5.1.20.0530.03710.32
5.1.10.0530.03010.20
5.1.00.0470.04710.08
5.0.50.0300.0278.57
5.0.40.0400.0238.39
5.0.30.0230.0478.29
5.0.20.0230.0408.23
5.0.10.0270.0308.22
5.0.00.0170.0438.21
4.4.90.0400.0235.93
4.4.80.0400.0305.81
4.4.70.0330.0275.88
4.4.60.0300.0275.90
4.4.50.0070.0405.95
4.4.40.0230.0535.87
4.4.30.0470.0305.90
4.4.20.0470.0275.98
4.4.10.0300.0205.93
4.4.00.0170.0435.90
4.3.110.0230.0275.88
4.3.100.0270.0305.82
4.3.90.0370.0375.84
4.3.80.0400.0375.79
4.3.70.0200.0305.82
4.3.60.0400.0305.78
4.3.50.0200.0375.79
4.3.40.0300.0405.85
4.3.30.0170.0334.94
4.3.20.0170.0274.94
4.3.10.0170.0234.94
4.3.00.0200.03714.57

preferences:
54.29 ms | 401 KiB | 5 Q