3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function __toString() { return "bar"; } } $params = array(); $params['a'] = 'b'; $params['foo'] = new foo(); $query = http_build_query($params); var_dump($params, $query);

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.1.110.0040.00417.41
8.1.100.0040.00417.48
8.1.90.0000.00717.48
8.1.80.0080.00017.45
8.1.70.0000.00717.41
8.1.60.0040.00417.66
8.1.50.0040.00417.37
8.1.40.0040.00417.53
8.1.30.0060.00317.54
8.1.20.0000.00817.49
8.1.10.0040.00417.36
8.1.00.0080.00017.46
8.0.240.0040.00416.98
8.0.230.0050.00316.99
8.0.220.0050.00316.93
8.0.210.0040.00416.80
8.0.200.0060.00317.00
8.0.190.0040.00416.92
8.0.180.0070.00016.93
8.0.170.0000.00816.91
8.0.160.0080.00016.89
8.0.150.0070.00016.70
8.0.140.0030.00316.86
8.0.130.0000.00513.40
8.0.120.0000.00716.88
8.0.110.0020.00516.76
8.0.100.0070.00016.67
8.0.90.0000.00716.70
8.0.80.0090.01316.94
8.0.70.0000.00716.80
8.0.60.0050.00216.91
8.0.50.0040.00416.88
8.0.30.0130.01116.98
8.0.20.0070.01217.40
8.0.10.0000.00816.82
8.0.00.0130.00516.83
7.4.300.0040.00416.49
7.4.290.0070.00016.34
7.4.280.0040.00416.49
7.4.270.0040.00416.44
7.4.260.0030.00616.50
7.4.250.0000.00716.41
7.4.240.0030.00516.38
7.4.230.0000.00616.29
7.4.220.0140.00316.56
7.4.210.0160.00516.65
7.4.200.0000.00716.60
7.4.160.0120.00916.46
7.4.150.0070.01817.40
7.4.140.0140.00617.86
7.4.130.0120.00716.55
7.4.120.0110.00616.29
7.4.110.0000.01716.53
7.4.100.0100.01116.41
7.4.90.0110.00616.39
7.4.80.0060.01019.39
7.4.70.0060.01216.46
7.4.60.0030.01316.47
7.4.50.0040.00416.17
7.4.40.0130.00316.32
7.4.30.0040.01316.43
7.4.10.0080.01114.80
7.4.00.0090.00714.96
7.3.330.0060.00013.27
7.3.320.0060.00013.25
7.3.310.0030.00316.14
7.3.300.0070.00016.29
7.3.290.0070.01016.26
7.3.280.0080.01016.19
7.3.270.0100.01017.40
7.3.260.0100.00616.43
7.3.250.0120.00816.42
7.3.240.0110.00716.32
7.3.230.0210.00316.40
7.3.210.0060.01116.68
7.3.200.0090.01419.39
7.3.190.0050.01116.27
7.3.180.0090.00616.59
7.3.170.0000.01816.67
7.3.160.0030.01416.16
7.3.130.0110.00714.77
7.3.120.0070.01314.90
7.3.110.0070.01014.69
7.3.100.0030.00914.77
7.3.90.0040.00414.75
7.3.80.0100.00314.82
7.3.70.0030.00714.59
7.3.60.0000.01614.44
7.3.50.0150.00014.64
7.3.40.0030.01014.68
7.3.30.0060.00614.65
7.3.20.0070.00716.68
7.3.10.0130.00016.76
7.3.00.0070.00716.54
7.2.330.0070.01016.65
7.2.320.0130.01016.73
7.2.310.0080.00816.32
7.2.300.0060.01216.73
7.2.290.0130.00416.71
7.2.260.0000.01815.07
7.2.250.0060.01214.89
7.2.240.0060.00915.12
7.2.230.0060.00615.00
7.2.220.0070.00715.02
7.2.210.0100.00314.53
7.2.200.0060.00315.12
7.2.190.0160.00014.83
7.2.180.0100.00314.97
7.2.170.0070.00714.83
7.2.160.0030.00914.86
7.2.150.0070.00716.96
7.2.140.0100.00716.79
7.2.130.0070.00716.84
7.2.120.0000.00916.64
7.2.110.0140.00516.55
7.2.100.0040.01416.57
7.2.90.0040.01116.82
7.2.80.0060.00916.77
7.2.70.0060.00916.59
7.2.60.0070.00816.82
7.2.50.0120.00016.82
7.2.40.0070.00716.89
7.2.30.0100.00316.68
7.2.20.0000.00916.69
7.2.10.0080.00416.74
7.2.00.0070.00918.06
7.1.330.0000.01515.85
7.1.320.0060.00615.84
7.1.310.0060.00615.91
7.1.300.0140.00315.88
7.1.290.0100.00715.82
7.1.280.0080.00415.74
7.1.270.0080.00315.47
7.1.260.0000.01215.78
7.1.250.0030.00615.70
7.1.240.0030.00615.48
7.1.230.0070.01115.90
7.1.220.0040.01415.40
7.1.210.0040.00815.51
7.1.200.0070.00515.47
7.1.190.0040.01115.60
7.1.180.0040.00715.68
7.1.170.0060.00915.71
7.1.160.0000.00815.63
7.1.150.0000.01015.50
7.1.140.0000.00815.87
7.1.130.0060.00615.80
7.1.120.0000.01715.87
7.1.110.0040.01115.84
7.1.100.0080.00517.09
7.1.90.0070.00715.77
7.1.80.0090.00615.66
7.1.70.0040.00716.35
7.1.60.0060.00917.60
7.1.50.0080.01216.19
7.1.40.0070.00715.87
7.1.30.0030.00915.63
7.1.20.0060.00615.83
7.1.10.0070.00315.55
7.1.00.0010.04419.20
7.0.330.0100.00415.39
7.0.320.0070.01015.34
7.0.310.0000.00915.15
7.0.300.0000.01315.54
7.0.290.0090.00315.21
7.0.280.0040.01215.40
7.0.270.0000.01315.34
7.0.260.0030.01215.34
7.0.250.0040.00815.60
7.0.240.0000.01415.53
7.0.230.0040.01115.16
7.0.220.0060.01215.58
7.0.210.0030.00615.49
7.0.200.0030.00716.04
7.0.190.0070.00715.55
7.0.180.0060.00615.42
7.0.170.0090.00615.43
7.0.160.0050.00515.45
7.0.150.0030.01215.21
7.0.140.0130.00315.57
7.0.130.0030.00615.23
7.0.120.0050.00515.15
7.0.110.0000.00815.24
7.0.100.0070.02317.66
7.0.90.0050.04717.61
7.0.80.0070.02717.68
7.0.70.0080.04517.71
7.0.60.0070.03517.75
7.0.50.0090.04317.90
7.0.40.0100.03816.88
7.0.30.0030.05016.66
7.0.20.0050.04016.68
7.0.10.0070.04416.74
7.0.00.0110.02216.76
5.6.400.0040.00714.54
5.6.390.0090.00614.14
5.6.380.0030.00614.42
5.6.370.0100.00714.46
5.6.360.0080.00614.45
5.6.350.0060.00914.59
5.6.340.0030.01014.66
5.6.330.0060.01014.24
5.6.320.0030.00914.60
5.6.310.0030.00613.93
5.6.300.0000.01814.38
5.6.290.0090.00014.61
5.6.280.0090.03117.61
5.6.270.0030.01014.39
5.6.260.0060.00914.41
5.6.250.0090.03717.52
5.6.240.0100.02617.50
5.6.230.0050.04517.53
5.6.220.0090.04217.54
5.6.210.0030.04917.36
5.6.200.0060.04617.58
5.6.190.0060.02917.65
5.6.180.0060.04117.57
5.6.170.0050.03817.60
5.6.160.0120.03717.57
5.6.150.0040.04917.73
5.6.140.0030.04417.54
5.6.130.0070.04317.66
5.6.120.0100.04217.73
5.6.110.0020.03417.63
5.6.100.0030.03217.74
5.6.90.0040.02717.72
5.6.80.0060.04617.51
5.6.70.0050.04217.27
5.6.60.0070.04517.50
5.6.50.0080.02217.54
5.6.40.0050.02917.35
5.6.30.0070.03717.35
5.6.20.0060.04317.23
5.6.10.0080.02517.46
5.6.00.0020.04717.33
5.5.380.0100.04017.16
5.5.370.0100.04217.35
5.5.360.0050.04017.38
5.5.350.0080.02817.28
5.5.340.0080.04517.57
5.5.330.0050.04217.51
5.5.320.0050.03517.62
5.5.310.0050.04317.41
5.5.300.0080.04517.40
5.5.290.0100.04317.52
5.5.280.0060.02817.59
5.5.270.0100.04217.59
5.5.260.0050.04517.63
5.5.250.0070.02517.34
5.5.240.0100.04017.17
5.5.230.0040.04017.31
5.5.220.0050.03517.17
5.5.210.0080.03517.25
5.5.200.0070.04017.21
5.5.190.0060.04117.27
5.5.180.0090.04317.24
5.5.170.0000.00814.07
5.5.160.0030.04417.06
5.5.150.0050.03217.09
5.5.140.0060.03817.06
5.5.130.0020.02817.36
5.5.120.0050.02917.38
5.5.110.0020.04817.32
5.5.100.0030.03017.20
5.5.90.0050.03517.09
5.5.80.0050.03716.94
5.5.70.0120.04017.04
5.5.60.0050.04717.20
5.5.50.0060.03817.07
5.5.40.0070.03517.09
5.5.30.0120.03517.25
5.5.20.0100.03917.21
5.5.10.0020.04717.09
5.5.00.0080.04116.99
5.4.450.0000.08719.36
5.4.440.0070.07019.35
5.4.430.0000.05319.37
5.4.420.0100.05719.16
5.4.410.0130.03719.25
5.4.400.0100.07019.09
5.4.390.0130.07019.04
5.4.380.0100.07319.15
5.4.370.0070.07719.03
5.4.360.0100.06718.88
5.4.350.0130.05719.03
5.4.340.0070.04319.08
5.4.320.0070.07719.02
5.4.310.0030.07718.88
5.4.300.0070.08019.14
5.4.290.0070.04018.87
5.4.280.0000.05019.04
5.4.270.0100.03719.03
5.4.260.0100.04018.88
5.4.250.0070.06019.06
5.4.240.0030.05019.13
5.4.230.0030.04718.87
5.4.220.0070.07719.18
5.4.210.0030.08019.12
5.4.200.0030.08019.04
5.4.190.0030.06719.03
5.4.180.0170.07018.86
5.4.170.0100.07719.08
5.4.160.0030.06719.08
5.4.150.0100.07319.18
5.4.140.0070.04016.37
5.4.130.0000.07016.19
5.4.120.0030.07316.43
5.4.110.0130.07016.39
5.4.100.0130.06316.39
5.4.90.0100.08016.34
5.4.80.0070.04016.34
5.4.70.0030.07316.32
5.4.60.0070.06716.45
5.4.50.0070.03016.46
5.4.40.0030.06716.49
5.4.30.0100.06716.27
5.4.20.0030.03016.29
5.4.10.0030.07316.36
5.4.00.0030.03315.82
5.3.290.0030.07714.69
5.3.280.0000.05014.65
5.3.270.0030.05714.69
5.3.260.0000.04714.71
5.3.250.0070.04014.69
5.3.240.0030.04314.61
5.3.230.0070.04314.54
5.3.220.0100.07014.54
5.3.210.0070.07314.48
5.3.200.0000.07714.66
5.3.190.0070.04014.65
5.3.180.0170.06014.62
5.3.170.0130.07014.61
5.3.160.0030.07714.52
5.3.150.0100.03314.62
5.3.140.0030.03314.49
5.3.130.0030.03314.66
5.3.120.0000.03714.54
5.3.110.0070.06714.64
5.3.100.0000.03714.05
5.3.90.0070.07314.02
5.3.80.0070.07313.95
5.3.70.0070.04013.91
5.3.60.0130.06013.90
5.3.50.0070.07014.06
5.3.40.0070.06014.00
5.3.30.0070.06313.93
5.3.20.0070.05713.80
5.3.10.0100.05713.68
5.3.00.0070.05313.67
5.2.170.0030.06312.36
5.2.160.0070.06012.36
5.2.150.0070.06012.36
5.2.140.0030.03712.36
5.2.130.0030.03312.36
5.2.120.0070.05012.36
5.2.110.0030.06312.36
5.2.100.0070.05012.36
5.2.90.0000.05012.36
5.2.80.0030.06012.36
5.2.70.0100.02712.36
5.2.60.0030.05012.36
5.2.50.0030.05712.36
5.2.40.0070.05712.36
5.2.30.0070.06012.36
5.2.20.0000.06312.36
5.2.10.0070.05312.36
5.2.00.0100.05712.36
5.1.60.0000.05712.36
5.1.50.0070.02312.36
5.1.40.0030.03712.36
5.1.30.0070.04712.36
5.1.20.0130.04712.36
5.1.10.0130.04312.36
5.1.00.0030.04712.36
5.0.50.0030.04312.36
5.0.40.0070.04012.36
5.0.30.0000.06012.36
5.0.20.0030.04312.36
5.0.10.0030.04012.36
5.0.00.0030.06012.36
4.4.90.0100.02712.36
4.4.80.0030.03712.36
4.4.70.0000.03712.36
4.4.60.0000.03712.36
4.4.50.0030.03012.36
4.4.40.0100.04012.36
4.4.30.0000.03712.36
4.4.20.0030.03012.36
4.4.10.0100.02712.36
4.4.00.0000.04312.36
4.3.110.0000.03712.36
4.3.100.0000.02712.36
4.3.90.0000.02012.36
4.3.80.0030.04012.36
4.3.70.0000.02312.36
4.3.60.0000.02712.36
4.3.50.0070.01712.36
4.3.40.0000.04712.36
4.3.30.0030.03012.36
4.3.20.0000.02712.36
4.3.10.0030.03312.36
4.3.00.0000.03012.36

preferences:
79.43 ms | 406 KiB | 5 Q