3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = $_GET["u"]; if(parse_url($url, PHP_URL_HOST) === "example.com" ) { echo "<script>window.location.href = '" . htmlspecialchars($url, ENT_QUOTES) . "';</script>"; } else { echo "<script>window.location.href = 'https://example.com';</script>"; }

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.4.10.0090.00017.87
8.3.140.0100.00616.63
8.3.130.0130.00718.61
8.3.120.0040.00418.85
8.3.110.0090.00016.63
8.3.100.0060.00324.06
8.3.90.0000.00826.77
8.3.80.0060.00616.50
8.3.70.0120.00616.75
8.3.60.0110.00923.38
8.3.50.0150.00016.59
8.3.40.0130.00618.65
8.3.30.0070.01418.70
8.3.20.0050.00224.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.260.0030.00616.67
8.2.250.0090.00616.45
8.2.240.0040.01117.43
8.2.230.0000.00920.94
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0060.00316.61
8.2.190.0110.00716.63
8.2.180.0090.00625.92
8.2.170.0100.01019.13
8.2.160.0100.00322.96
8.2.150.0110.00325.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0080.00019.59
8.2.110.0030.00622.25
8.2.100.0000.01117.97
8.2.90.0060.00317.75
8.2.80.0040.00418.91
8.2.70.0080.00018.03
8.2.60.0040.00418.09
8.2.50.0050.00318.10
8.2.40.0000.00821.15
8.2.30.0040.00419.42
8.2.20.0040.00418.17
8.2.10.0040.00419.31
8.2.00.0060.00319.18
8.1.300.0150.00019.98
8.1.290.0090.00030.84
8.1.280.0070.00725.92
8.1.270.0100.00023.99
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00722.08
8.1.230.0090.00319.22
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0040.00717.23
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0060.00318.71
8.1.160.0000.00718.93
8.1.150.0040.00418.93
8.1.140.0040.00418.80
8.1.130.0040.00419.20
8.1.120.0050.00317.39
8.1.110.0080.00017.48
8.1.100.0040.00417.48
8.1.90.0050.00217.36
8.1.80.0070.00517.38
8.1.70.0120.00017.36
8.1.60.0110.00217.47
8.1.50.0120.00217.47
8.1.40.0060.00617.47
8.1.30.0080.00417.65
8.1.20.0070.00517.57
8.1.10.0100.00317.52
8.1.00.0090.00417.47
8.0.300.0040.00418.77
8.0.290.0050.00316.88
8.0.280.0070.00018.49
8.0.270.0030.00316.89
8.0.260.0000.00716.89
8.0.250.0070.00017.06
8.0.240.0030.00317.02
8.0.230.0060.00317.01
8.0.220.0070.00416.87
8.0.210.0020.00716.82
8.0.200.0050.00316.89
8.0.190.0020.00816.89
8.0.180.0060.00516.98
8.0.170.0050.00616.91
8.0.160.0070.00416.91
8.0.150.0070.00416.90
8.0.140.0070.00416.86
8.0.130.0030.00815.15
8.0.120.0070.00416.97
8.0.110.0080.00316.85
8.0.100.0040.00816.90
8.0.90.0090.00216.82
8.0.80.0090.00716.91
8.0.70.0090.00316.79
8.0.60.0090.00216.96
8.0.50.0080.00416.95
8.0.30.0090.00916.89
8.0.20.0090.00916.99
8.0.10.0130.00517.07
8.0.00.0070.00817.01
7.4.330.0000.00515.55
7.4.320.0060.00016.61
7.4.300.0100.00216.57
7.4.290.0090.00416.51
7.4.280.0050.00616.57
7.4.270.0080.00416.60
7.4.260.0070.00314.94
7.4.250.0070.00616.58
7.4.240.0090.00316.45
7.4.230.0040.00716.36
7.4.220.0060.00416.53
7.4.210.0090.00516.50
7.4.200.0060.00616.49
7.4.190.0090.00516.45
7.4.180.0090.00616.38
7.4.160.0110.00616.55
7.4.150.0120.00516.42
7.4.140.0080.00716.53
7.4.130.0100.00716.55
7.4.120.0090.00916.49
7.4.110.0100.00716.47
7.4.100.0110.00416.54
7.4.90.0090.00716.50
7.4.80.0070.00916.36
7.4.70.0100.00516.54
7.4.60.0060.01116.56
7.4.50.0100.00716.31
7.4.40.0060.01016.29
7.4.30.0080.00816.37
7.4.20.0100.00516.45
7.4.10.0070.00716.30
7.4.00.0020.01016.29
7.3.330.0040.00716.27
7.3.320.0080.00114.73
7.3.310.0170.00521.07
7.3.300.0080.00316.21
7.3.290.0070.01116.31
7.3.280.0070.01016.30
7.3.270.0090.00816.29
7.3.260.0110.00616.38
7.3.250.0050.01216.33
7.3.240.0090.00716.28
7.3.230.0080.00616.22
7.3.220.0100.00716.25
7.3.210.0080.00716.26
7.3.200.0110.00316.22
7.3.190.0050.01016.31
7.3.180.0120.00316.34
7.3.170.0070.00916.28
7.3.160.0040.01316.27
7.3.150.0120.00416.28
7.3.140.0100.00516.22
7.3.130.0070.00816.36
7.3.120.0100.00516.31
7.3.110.0080.00716.21
7.3.100.0090.00516.18
7.3.90.0050.00916.53
7.3.80.0050.01216.16
7.3.70.0100.00616.24
7.3.60.0070.00716.47
7.3.50.0130.00116.39
7.3.40.0040.01016.45
7.3.30.0060.00816.37
7.3.20.0240.00317.22
7.3.10.0110.00417.16
7.3.00.0100.00517.27

preferences:
44.37 ms | 403 KiB | 5 Q