3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo http_build_query( ["foo"=>["a","b","c"]], null, '&') . "\n"; $array = array('a', 'n'); echo http_build_query($array, 'foo');

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.0100.01018.31
8.3.50.0170.00016.33
8.3.40.0110.00618.46
8.3.30.0150.00018.72
8.3.20.0070.00024.18
8.3.10.0000.00724.66
8.3.00.0080.00026.16
8.2.180.0040.01125.92
8.2.170.0120.00318.96
8.2.160.0100.00322.96
8.2.150.0050.00325.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00826.35
8.2.110.0030.00622.32
8.2.100.0040.00817.59
8.2.90.0000.00817.63
8.2.80.0040.00418.95
8.2.70.0000.00817.63
8.2.60.0080.00017.50
8.2.50.0080.00317.63
8.2.40.0040.00418.22
8.2.30.0050.00217.93
8.2.20.0020.00517.98
8.2.10.0000.00719.06
8.2.00.0000.00719.10
8.1.280.0030.01425.92
8.1.270.0090.00020.77
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0060.00323.88
8.1.230.0130.00019.21
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0080.00017.35
8.1.190.0050.00317.34
8.1.180.0000.00818.10
8.1.170.0060.00318.64
8.1.160.0000.01018.75
8.1.150.0040.00418.88
8.1.140.0040.00418.87
8.1.130.0000.00717.43
8.1.120.0040.00417.44
8.1.110.0000.00917.46
8.1.100.0030.00617.33
8.1.90.0040.00417.44
8.1.80.0040.00717.43
8.1.70.0070.00017.35
8.1.60.0060.00317.58
8.1.50.0080.00017.49
8.1.40.0080.00017.50
8.1.30.0040.00417.53
8.1.20.0000.00817.62
8.1.10.0050.00317.49
8.1.00.0000.01217.39
8.0.300.0070.00018.77
8.0.290.0020.00516.63
8.0.280.0000.00718.41
8.0.270.0040.00418.00
8.0.260.0030.00316.71
8.0.250.0080.00016.94
8.0.240.0030.00316.87
8.0.230.0000.00616.96
8.0.220.0030.00316.91
8.0.210.0000.00816.87
8.0.200.0060.00016.93
8.0.190.0080.00016.80
8.0.180.0000.00716.96
8.0.170.0030.00516.90
8.0.160.0040.00416.91
8.0.150.0000.00816.81
8.0.140.0040.00416.85
8.0.130.0050.00013.30
8.0.120.0000.00716.75
8.0.110.0040.00416.94
8.0.100.0030.00416.93
8.0.90.0020.00516.91
8.0.80.0010.01316.80
8.0.70.0000.00816.77
8.0.60.0000.00716.76
8.0.50.0000.00716.69
8.0.30.0130.01017.08
8.0.20.0150.00316.98
8.0.10.0000.00816.73
8.0.00.0100.00716.68
7.4.330.0000.00615.55
7.4.320.0000.00616.45
7.4.300.0070.00016.48
7.4.290.0030.00516.48
7.4.280.0060.00316.41
7.4.270.0000.00716.42
7.4.260.0000.00513.20
7.4.250.0000.00716.38
7.4.240.0000.00716.32
7.4.230.0020.00516.33
7.4.220.0050.00216.43
7.4.210.0120.00416.56
7.4.200.0050.00216.47
7.4.130.0030.01316.27
7.4.120.0160.00316.30
7.4.110.0090.00916.18
7.4.100.0000.01616.33
7.4.90.0070.01016.22
7.4.80.0140.00316.28
7.4.70.0140.00316.26
7.4.60.0130.00616.30
7.4.50.0000.01816.32
7.4.40.0070.01116.37
7.4.30.0130.01016.10
7.4.20.0140.00316.04
7.4.10.0120.00616.09
7.4.00.0080.00816.38
7.3.330.0020.00516.06
7.3.320.0040.00413.04
7.3.310.0070.00016.22
7.3.300.0070.00016.19
7.3.290.0060.00816.21
7.3.260.0080.01216.34
7.3.250.0030.01316.32
7.3.240.0110.00716.42
7.3.230.0030.01416.17
7.3.220.0110.00516.29
7.3.210.0060.01315.96
7.3.200.0170.00016.22
7.3.190.0070.01016.19
7.3.180.0140.00416.55
7.3.170.0150.00316.00
7.3.160.0130.01016.11
7.3.150.0130.00916.18
7.3.140.0120.00616.23
7.3.130.0100.00716.23
7.3.120.0030.01416.07
7.3.110.0120.00616.37
7.3.100.0100.01016.01
7.3.90.0130.01016.34
7.3.80.0090.01116.16
7.3.70.0090.00916.25
7.3.60.0070.01016.25
7.3.50.0150.00316.16
7.3.40.0100.00716.17
7.3.30.0110.00616.24
7.3.20.0100.00716.25
7.3.10.0030.01516.31
7.3.00.0090.00916.19

preferences:
73.92 ms | 400 KiB | 5 Q