3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query_string = [ 'one' => 1, 'two' => '', 'three' => null, // gets omitted 'four' => ' ', // gets encoded 'five' => "&test=test" // gets encoded ]; echo http_build_query($query_string); echo "\n---\n"; echo http_build_query($query_string, '', '&amp;'); echo "\n\n\n\n\n";

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.0180.00016.63
8.3.50.0080.00616.58
8.3.40.0120.00618.77
8.3.30.0040.01118.54
8.3.20.0040.00420.76
8.3.10.0030.00623.53
8.3.00.0050.00221.69
8.2.180.0190.00318.16
8.2.170.0070.01322.96
8.2.160.0100.01022.20
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0050.00520.46
8.2.100.0070.00717.78
8.2.90.0050.00319.26
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0060.00318.04
8.2.50.0040.00418.07
8.2.40.0030.00618.12
8.2.30.0000.00817.98
8.2.20.0040.00418.00
8.2.10.0070.00019.05
8.2.00.0000.00719.08
8.1.280.0140.00725.92
8.1.270.0040.00420.64
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0100.00020.96
8.1.230.0110.00017.70
8.1.220.0000.00717.77
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00617.10
8.1.180.0000.00818.10
8.1.170.0050.00318.29
8.1.160.0040.00818.74
8.1.150.0040.00319.04
8.1.140.0050.00220.69
8.1.130.0070.00020.26
8.1.120.0050.00217.36
8.1.110.0000.00917.30
8.1.100.0090.00017.40
8.1.90.0000.00717.35
8.1.80.0020.00517.31
8.1.70.0000.00717.28
8.1.60.0080.00017.51
8.1.50.0080.00017.48
8.1.40.0040.00417.45
8.1.30.0120.00017.60
8.1.20.0000.00817.41
8.1.10.0040.00417.47
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.50
8.0.270.0070.00017.92
8.0.260.0060.00019.94
8.0.250.0070.00016.86
8.0.240.0000.00816.91
8.0.230.0040.00416.93
8.0.220.0070.00016.72
8.0.210.0030.00316.75
8.0.200.0030.00316.89
8.0.190.0070.00016.87
8.0.180.0030.00516.91
8.0.170.0080.00316.84
8.0.160.0000.00716.88
8.0.150.0050.00316.65
8.0.140.0080.00016.76
8.0.130.0000.00613.21
8.0.120.0000.00816.80
8.0.110.0000.00716.81
8.0.100.0040.00416.60
8.0.90.0030.00316.79
8.0.80.0070.00816.79
8.0.70.0050.00216.72
8.0.60.0030.00516.88
8.0.50.0070.00016.69
8.0.30.0150.00617.18
8.0.20.0130.00717.02
8.0.10.0070.00017.01
8.0.00.0120.00616.86
7.4.330.0000.00416.78
7.4.320.0000.00616.56
7.4.300.0030.00316.55
7.4.290.0000.00716.54
7.4.280.0060.00316.52
7.4.270.0000.00616.53
7.4.260.0060.00013.23
7.4.250.0070.00016.38
7.4.240.0010.00616.46
7.4.230.0030.00316.62
7.4.220.0030.00316.41
7.4.210.0060.01216.52
7.4.200.0000.00716.56
7.4.130.0150.00316.39
7.4.120.0160.00616.48
7.4.110.0100.00616.36
7.4.100.0100.00716.63
7.4.90.0100.00716.47
7.4.80.0070.01119.39
7.4.70.0060.00916.50
7.4.60.0130.00316.30
7.4.50.0030.01316.31
7.4.40.0100.00716.48
7.4.10.0120.00616.46
7.4.00.0130.00816.24
7.3.330.0000.00716.17
7.3.320.0000.00613.06
7.3.310.0000.00616.06
7.3.300.0000.00716.12
7.3.290.0100.00416.11
7.3.260.0040.01616.36
7.3.230.0110.00716.14
7.3.210.0120.01216.18
7.3.200.0100.00716.07
7.3.190.0110.01116.18
7.3.180.0130.00316.21
7.3.170.0160.00016.30
7.3.160.0110.00416.12
7.3.130.0150.00816.13
7.3.120.0150.00916.01
7.3.110.0090.00916.20
7.3.100.0100.00816.34
7.3.90.0140.00616.13
7.3.80.0140.00316.07
7.3.70.0140.00516.38
7.3.60.0110.01116.31
7.3.50.0000.01516.10
7.3.40.0120.00616.06
7.3.30.0100.00616.32
7.3.20.0120.00616.28
7.3.10.0080.00816.36
7.3.00.0170.00316.22
7.2.330.0140.00616.36
7.2.320.0070.01416.53
7.2.310.0090.00616.55
7.2.300.0060.01216.43
7.2.290.0030.01416.22
7.2.260.0140.00916.47
7.2.250.0090.01016.21
7.2.240.0100.00816.36
7.2.230.0080.01216.34
7.2.220.0150.00316.55
7.2.210.0110.00816.57
7.2.200.0000.01816.37
7.2.190.0070.01516.18
7.2.180.0120.00816.36
7.2.170.0090.00916.36
7.2.160.0100.00716.52
7.2.150.0070.01016.54
7.2.140.0090.01216.30
7.2.130.0030.01616.49
7.2.120.0150.00316.36
7.2.110.0080.01116.43
7.2.100.0090.00916.29
7.2.90.0000.01916.57
7.2.80.0030.01816.52
7.2.70.0080.01116.60
7.2.60.0140.00716.37
7.2.50.0090.00916.54
7.2.40.0170.00516.38
7.2.30.0140.01116.41
7.2.20.0140.00816.38
7.2.10.0110.01416.39
7.2.00.0150.00916.46

preferences:
61.56 ms | 401 KiB | 5 Q