3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = [ 'a' => 1, 'b' => 2, 'c' => 3, ]; $_SERVER = [ 'HTTP_HOST' => 'http://www.example.com', 'SCRIPT_NAME' => '/test.php', ]; function c_url($key) { unset($_GET[$key]); $queryString = http_build_query($_GET); return $_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'].'?'.$queryString; } echo c_url('b') . '&b=5';

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.0110.00718.67
8.3.30.0070.00719.25
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.170.0040.01122.96
8.2.160.0100.00322.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0000.00726.35
8.2.110.0100.00020.93
8.2.100.0070.00417.84
8.2.90.0080.00019.29
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0050.00318.05
8.2.50.0000.00918.07
8.2.40.0030.00521.11
8.2.30.0050.00318.00
8.2.20.0070.00018.17
8.2.10.0080.00019.27
8.2.00.0040.00419.38
8.1.270.0060.00320.79
8.1.260.0090.00028.09
8.1.250.0050.00328.09
8.1.240.0000.00921.37
8.1.230.0080.00417.58
8.1.220.0000.00917.79
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0030.00618.59
8.1.160.0040.00418.89
8.1.150.0070.00018.90
8.1.140.0000.00718.89
8.1.130.0030.00320.19
8.1.120.0000.00817.36
8.1.110.0000.00717.38
8.1.100.0030.00417.38
8.1.90.0050.00217.29
8.1.80.0020.00517.48
8.1.70.0000.00717.39
8.1.60.0030.00617.63
8.1.50.0040.00417.36
8.1.40.0050.00317.57
8.1.30.0000.00817.65
8.1.20.0030.00517.65
8.1.10.0000.00817.57
8.1.00.0050.00217.48
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.54
8.0.270.0040.00418.06
8.0.260.0070.00018.41
8.0.250.0050.00216.98
8.0.240.0070.00016.94
8.0.230.0080.00016.92
8.0.220.0000.00616.79
8.0.210.0000.00716.85
8.0.200.0000.00816.95
8.0.190.0040.00416.95
8.0.180.0030.00516.92
8.0.170.0000.00916.91
8.0.160.0040.00416.88
8.0.150.0030.00316.86
8.0.140.0070.00016.75
8.0.130.0060.00013.28
8.0.120.0040.00416.77
8.0.110.0080.00016.77
8.0.100.0070.00016.94
8.0.90.0000.00916.89
8.0.80.0090.00616.86
8.0.70.0020.00516.88
8.0.60.0050.00317.02
8.0.50.0080.00016.88
8.0.30.0060.00917.05
8.0.20.0070.01417.03
8.0.10.0070.00016.89
8.0.00.0040.01516.60
7.4.330.0030.00315.55
7.4.320.0000.00616.52
7.4.300.0030.00616.49
7.4.290.0000.00716.63
7.4.280.0080.00016.51
7.4.270.0000.00716.66
7.4.260.0000.00513.39
7.4.250.0040.00416.46
7.4.240.0020.00516.59
7.4.230.0030.00316.61
7.4.220.0030.00316.54
7.4.210.0080.00616.62
7.4.200.0070.00016.54
7.4.130.0120.00616.45
7.4.120.0070.01016.68
7.4.110.0140.00316.65
7.4.100.0110.00616.43
7.4.90.0090.00916.34
7.4.80.0030.01319.39
7.4.70.0060.01216.52
7.4.60.0090.00616.46
7.4.50.0130.00616.13
7.4.40.0060.01216.20
7.4.30.0110.00816.14
7.4.20.0160.00616.10
7.4.10.0110.01516.54
7.4.00.0150.00916.58
7.3.330.0040.00416.15
7.3.320.0030.00313.20
7.3.310.0080.00016.27
7.3.300.0000.00716.37
7.3.290.0080.00716.38
7.3.260.0140.00416.42
7.3.230.0000.01816.41
7.3.210.0070.01016.57
7.3.200.0040.01216.31
7.3.190.0030.01616.67
7.3.180.0030.01316.50
7.3.170.0080.01116.39
7.3.160.0110.00716.52
7.3.150.0080.00816.63
7.3.140.0130.01016.52
7.3.130.0100.01316.44
7.3.120.0100.01316.38
7.3.110.0120.01216.32
7.3.100.0110.00716.60
7.3.90.0090.00916.32
7.3.80.0150.00916.58
7.3.70.0110.00816.47
7.3.60.0030.01516.30
7.3.50.0130.00616.30
7.3.40.0130.00916.32
7.3.30.0030.01516.50
7.3.20.0090.00818.25
7.3.10.0110.00718.37
7.3.00.0000.01718.30
7.2.330.0080.00816.72
7.2.320.0040.01316.31
7.2.310.0090.00616.66
7.2.300.0120.00616.85
7.2.290.0090.00916.30
7.2.280.0070.01016.85
7.2.270.0130.01016.77
7.2.260.0160.00816.79
7.2.250.0130.01016.43
7.2.240.0130.01016.89
7.2.230.0130.00916.62
7.2.220.0090.00916.33
7.2.210.0140.00716.68
7.2.200.0160.00316.50
7.2.190.0060.01216.59
7.2.180.0090.01516.68
7.2.170.0090.00916.45
7.2.160.0070.01016.52
7.2.150.0090.00918.60
7.2.140.0060.01218.53
7.2.130.0070.01418.49
7.2.120.0080.01218.38
7.2.110.0170.00318.39
7.2.100.0110.00718.36
7.2.90.0100.00918.29
7.2.80.0030.01618.49
7.2.70.0070.01418.28
7.2.60.0160.00618.38
7.2.50.0130.01018.60
7.2.40.0130.00918.58
7.2.30.0060.01318.57
7.2.20.0160.00318.57
7.2.10.0170.00318.41
7.2.00.0140.01018.29

preferences:
58.83 ms | 400 KiB | 5 Q