3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { return 'http://localhost'; } $hostname = a(); if ( !$port = parse_url( $hostname, PHP_URL_PORT ) ) { var_dump( "oops" ); }

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.00618.68
8.3.50.0110.01121.09
8.3.40.0120.00318.76
8.3.30.0150.00619.18
8.3.20.0040.00420.21
8.3.10.0070.00022.10
8.3.00.0050.00320.62
8.2.180.0150.00016.63
8.2.170.0040.01122.96
8.2.160.0070.01019.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.01426.16
8.2.120.0000.00819.54
8.2.110.0060.00320.52
8.2.100.0110.00017.72
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0090.00017.50
8.2.60.0070.00017.80
8.2.50.0030.00618.07
8.2.40.0040.00419.82
8.2.30.0040.00417.96
8.2.20.0040.00417.70
8.2.10.0080.00017.67
8.2.00.0040.00417.54
8.1.280.0070.01025.92
8.1.270.0000.00820.26
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00822.09
8.1.230.0080.00322.12
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0080.00317.35
8.1.190.0040.00417.54
8.1.180.0030.00518.63
8.1.170.0000.00818.45
8.1.160.0000.00822.10
8.1.150.0000.00718.63
8.1.140.0000.00817.34
8.1.130.0000.00817.81
8.1.120.0000.00717.47
8.1.110.0030.00317.44
8.1.100.0000.00817.38
8.1.90.0000.00917.41
8.1.80.0040.00417.43
8.1.70.0030.00317.41
8.1.60.0050.00317.46
8.1.50.0000.00717.52
8.1.40.0040.00417.51
8.1.30.0040.00417.51
8.1.20.0040.00417.54
8.1.10.0000.00717.43
8.1.00.0040.00417.23
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0020.00518.50
8.0.270.0000.00717.12
8.0.260.0070.00016.81
8.0.250.0000.00816.82
8.0.240.0040.00416.82
8.0.230.0000.00716.83
8.0.220.0040.00416.91
8.0.210.0040.00416.77
8.0.200.0090.00016.94
8.0.190.0000.00716.91
8.0.180.0000.00716.87
8.0.170.0040.00416.84
8.0.160.0050.00216.90
8.0.150.0050.00316.91
8.0.140.0040.00416.84
8.0.130.0050.00013.27
8.0.120.0040.00416.88
8.0.110.0000.00716.98
8.0.100.0040.00416.82
8.0.90.0040.00316.75
8.0.80.0040.01416.86
8.0.70.0030.00416.94
8.0.60.0070.00016.95
8.0.50.0070.00016.84
8.0.30.0090.00917.12
8.0.20.0100.01017.40
8.0.10.0040.00416.87
8.0.00.0050.01316.84
7.4.330.0020.00215.06
7.4.320.0030.00316.58
7.4.300.0030.00316.53
7.4.290.0050.00516.50
7.4.280.0000.00716.63
7.4.270.0000.00716.48
7.4.260.0070.00016.61
7.4.250.0040.00416.38
7.4.240.0040.00316.45
7.4.230.0030.00316.45
7.4.220.0060.01116.59
7.4.210.0070.00916.54
7.4.200.0000.00716.38
7.4.190.0030.00316.48
7.4.160.0050.01016.66
7.4.150.0160.00317.40
7.4.140.0120.01017.86
7.4.130.0130.00616.42
7.4.120.0090.00916.58
7.4.110.0120.00916.48
7.4.100.0150.00716.57
7.4.90.0130.00316.62
7.4.80.0090.01519.39
7.4.70.0110.00716.48
7.4.60.0060.01316.51
7.4.50.0040.00416.25
7.4.40.0030.01522.77
7.4.30.0080.00816.45
7.4.00.0080.00614.66
7.3.330.0030.00213.10
7.3.320.0000.00613.23
7.3.310.0040.00416.23
7.3.300.0030.00316.09
7.3.290.0070.00716.23
7.3.280.0060.00916.22
7.3.270.0100.00717.40
7.3.260.0090.00916.25
7.3.250.0130.01016.30
7.3.240.0060.01116.42
7.3.230.0130.00616.44
7.3.210.0030.01316.36
7.3.200.0090.01219.39
7.3.190.0090.00916.50
7.3.180.0100.00916.17
7.3.170.0030.01316.27
7.3.160.0080.00816.30
7.3.120.0040.01114.68
7.2.330.0030.01416.75
7.2.320.0030.01616.48
7.2.310.0100.01316.54
7.2.300.0100.00616.73
7.2.290.0090.00616.70
7.2.80.0000.01416.39
7.2.60.0100.00316.63
7.2.00.0070.00719.34
7.1.200.0060.00615.81
7.1.100.0090.01317.66
7.1.70.0000.00916.85
7.1.60.0100.01019.82
7.1.50.0070.01516.70
7.1.00.0000.08022.45
7.0.200.0030.00616.82
7.0.140.0100.06722.01
7.0.60.0070.05319.93
7.0.50.0030.04317.97
7.0.40.0030.04320.09
7.0.30.0300.04720.17
7.0.20.0300.07720.07
7.0.10.0430.05020.33
7.0.00.0170.05320.16
5.6.280.0030.07721.09
5.6.210.0070.03720.67
5.6.200.0030.05318.22
5.6.190.0030.08320.52
5.6.180.3700.04020.46
5.6.170.0370.05720.39
5.6.160.0030.09020.46
5.6.150.0030.05018.23
5.6.140.0130.07318.23
5.6.130.0100.06318.15
5.6.120.0030.04720.98
5.6.110.0030.06721.00
5.6.100.0100.04721.00
5.6.90.0130.07321.10
5.6.80.0070.06320.41
5.6.70.0270.06020.48
5.5.350.0170.04320.43
5.5.340.0130.07318.05
5.5.330.0130.05020.37
5.5.320.0270.06020.35
5.5.310.0200.08320.51
5.5.300.0030.07017.97
5.5.290.0030.06318.07
5.5.280.0130.06720.96
5.5.270.0030.05020.83
5.5.260.0100.08320.64
5.5.250.0130.08020.54
5.5.240.0100.03020.12
5.4.450.0330.04719.20
5.4.440.0200.05019.24
5.4.430.0270.07019.31
5.4.420.0370.06719.47
5.4.410.0370.04319.42
5.4.400.0270.06718.88
5.4.390.0270.07719.09
5.4.380.0230.04719.20
5.4.370.0270.05718.88
5.4.360.0300.07319.28
5.4.350.0330.06718.87
5.4.340.0330.06019.19
5.4.320.0230.04719.06
5.4.310.0270.07318.87
5.4.300.0330.06319.16
5.4.290.0270.07319.24
5.4.280.0230.05718.84
5.4.270.0200.03718.97
5.4.260.0270.03018.98
5.4.250.0200.05319.14
5.4.240.0270.04319.13
5.4.230.0170.03719.21
5.4.220.0130.04719.23
5.4.210.0130.04019.19
5.4.200.0270.03319.14
5.4.190.0200.03718.97
5.4.180.0130.04019.05
5.4.170.0170.04018.96
5.4.160.0270.03019.04
5.4.150.0200.03719.22
5.4.140.0070.04716.29
5.4.130.0130.04316.35
5.4.120.0270.03016.45
5.4.110.0230.03016.45
5.4.100.0230.03016.55
5.4.90.0200.03316.19
5.4.80.0170.03316.55
5.4.70.0130.03716.54
5.4.60.0170.03716.43
5.4.50.0230.03016.38
5.4.40.0170.03716.43
5.4.30.0130.04016.30
5.4.20.0200.07016.53
5.4.10.0300.07016.55
5.4.00.0300.06315.80
5.3.290.0300.04314.56
5.3.280.0130.04014.75
5.3.270.0170.03714.61
5.3.260.0130.04314.59
5.3.250.0200.03314.57
5.3.240.0270.03314.68
5.3.230.0230.05314.71
5.3.220.0270.03314.55
5.3.210.0200.07014.56
5.3.200.0170.04014.48
5.3.190.0170.04014.47
5.3.180.0170.03714.47
5.3.170.0200.03314.63
5.3.160.0170.04014.48
5.3.150.0100.04314.78
5.3.140.0130.04714.53
5.3.130.0200.03314.70
5.3.120.0270.04014.56
5.3.110.0270.07314.52
5.3.100.0270.07014.19
5.3.90.0400.05713.99
5.3.80.0430.05314.09
5.3.70.0330.05714.07
5.3.60.0270.05313.90
5.3.50.0230.06013.86
5.3.40.0370.06713.87
5.3.30.0370.06014.06
5.3.20.0330.05313.66
5.3.10.0300.04313.75
5.3.00.0300.07013.72
5.2.170.0270.06312.23
5.2.160.0270.04312.23
5.2.150.0300.04012.23
5.2.140.0200.05012.23
5.2.130.0430.03712.23
5.2.120.0270.05312.23
5.2.110.0170.03712.23
5.2.100.0230.05012.23
5.2.90.0230.05312.23
5.2.80.0170.04712.23
5.2.70.0200.04012.23
5.2.60.0230.04712.23
5.2.50.0230.06312.23
5.2.40.0170.05712.23
5.2.30.0200.05712.23
5.2.20.0270.05312.23
5.2.10.0230.05312.23
5.2.00.0330.04012.23
5.1.60.0130.03712.23
5.1.50.0230.05012.23
5.1.40.0230.03712.23
5.1.30.0230.05012.23
5.1.20.0230.05312.23
5.1.10.0270.04312.23
5.1.00.0230.04012.09
5.0.50.0170.02712.09
5.0.40.0070.02012.09
5.0.30.0100.03012.09
5.0.20.0130.04012.09
5.0.10.0170.04012.09
5.0.00.0130.05312.09
4.4.90.0100.03312.23
4.4.80.0100.02712.23
4.4.70.0100.03012.23
4.4.60.0100.02712.23
4.4.50.0100.02712.23
4.4.40.0100.04012.23
4.4.30.0100.03312.23
4.4.20.0070.03712.23
4.4.10.0130.02712.09
4.4.00.0100.05012.09
4.3.110.0070.01712.09
4.3.100.0200.02312.09
4.3.90.0200.02312.09
4.3.80.0100.04012.09
4.3.70.0100.02012.09
4.3.60.0130.02712.09
4.3.50.0070.03012.09
4.3.40.0100.05012.09
4.3.30.0070.02712.09
4.3.20.0030.03312.09
4.3.10.0070.03012.09
4.3.00.0100.02712.09

preferences:
39.97 ms | 401 KiB | 5 Q