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.1rc30.0090.00016.90
8.1rc20.0000.00717.04
8.1rc10.0060.00316.80
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.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.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:
32.99 ms | 455 KiB | 5 Q