3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function __toString() { return "bar"; } } $params = array(); $params['a'] = 'b'; $params['foo'] = (string) 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.0000.00717.36
8.1.100.0040.00317.47
8.1.90.0040.00417.48
8.1.80.0000.00717.52
8.1.70.0070.00017.43
8.1.60.0050.00317.51
8.1.50.0050.00317.52
8.1.40.0000.00917.41
8.1.30.0040.00417.62
8.1.20.0080.00017.68
8.1.10.0000.00817.39
8.1.00.0090.00017.46
8.0.240.0030.00516.93
8.0.230.0070.00016.96
8.0.220.0000.00716.88
8.0.210.0050.00316.91
8.0.200.0000.00916.95
8.0.190.0070.00016.95
8.0.180.0040.00416.81
8.0.170.0000.00916.89
8.0.160.0000.00716.84
8.0.150.0030.00316.75
8.0.140.0000.00816.73
8.0.130.0000.00513.31
8.0.120.0050.00216.89
8.0.110.0030.00516.86
8.0.100.0000.00716.88
8.0.90.0000.00716.76
8.0.80.0090.01316.93
8.0.70.0040.00416.71
8.0.60.0040.00417.01
8.0.50.0040.00416.88
8.0.30.0120.00917.01
8.0.20.0090.00917.40
8.0.10.0040.00416.90
8.0.00.0070.01116.83
7.4.300.0000.00616.61
7.4.290.0070.00016.46
7.4.280.0040.00416.58
7.4.270.0080.00016.66
7.4.260.0040.00416.63
7.4.250.0040.00416.39
7.4.240.0060.00116.41
7.4.230.0000.00716.71
7.4.220.0110.00616.51
7.4.210.0060.01116.69
7.4.200.0040.00416.37
7.4.160.0060.00916.49
7.4.150.0130.00417.40
7.4.140.0110.00917.86
7.4.130.0050.01416.51
7.4.120.0080.00916.46
7.4.110.0100.01016.39
7.4.100.0110.01516.52
7.4.90.0110.00616.36
7.4.80.0100.01019.39
7.4.70.0110.00716.43
7.4.60.0110.00616.57
7.4.50.0050.00316.48
7.4.40.0040.01216.40
7.4.30.0130.01016.45
7.4.00.0030.01414.96
7.3.330.0000.00513.33
7.3.320.0030.00313.35
7.3.310.0000.00716.19
7.3.300.0030.00316.24
7.3.290.0070.00816.39
7.3.280.0130.00216.39
7.3.270.0110.00917.40
7.3.260.0090.00916.30
7.3.250.0110.00516.29
7.3.240.0030.01716.32
7.3.230.0060.01216.45
7.3.210.0070.01416.43
7.3.200.0040.01619.39
7.3.190.0100.00616.39
7.3.180.0060.01116.60
7.3.170.0170.00716.27
7.3.160.0160.00016.54
7.3.120.0090.00714.93
7.3.110.0100.00714.88
7.3.100.0020.01114.89
7.3.90.0060.00714.77
7.3.80.0070.01014.94
7.3.70.0130.00514.72
7.3.60.0000.01414.69
7.3.50.0040.01014.72
7.3.40.0020.01014.94
7.3.30.0040.00915.01
7.3.20.0060.01016.68
7.3.10.0080.00716.72
7.3.00.0040.00816.68
7.2.330.0150.00316.50
7.2.320.0110.01516.65
7.2.310.0080.01116.64
7.2.300.0080.00816.66
7.2.290.0150.00316.71
7.2.250.0110.00614.90
7.2.240.0060.01015.16
7.2.230.0050.01115.22
7.2.220.0060.00814.96
7.2.210.0080.00814.85
7.2.200.0030.01314.85
7.2.190.0040.01115.12
7.2.180.0040.00915.10
7.2.170.0050.01014.98
7.2.60.0090.00016.73
7.1.330.0090.00515.86
7.1.320.0070.00315.75
7.1.310.0050.00915.69
7.1.300.0070.00515.70
7.1.290.0080.00815.80
7.1.280.0000.01315.80
7.1.270.0060.00915.70
7.1.260.0030.00915.76
7.1.200.0000.01115.76
7.1.100.0040.00718.30
7.1.70.0060.01017.13
7.1.60.0100.01419.50
7.1.50.0030.02016.74
7.1.00.0000.08022.45
7.0.200.0000.00716.53
7.0.60.0030.06020.03
7.0.50.0130.07017.87
7.0.40.0030.06719.96
7.0.30.0230.08020.23
7.0.20.0200.05320.24
7.0.10.0000.09320.09
7.0.00.0100.04020.06
5.6.280.0000.07721.12
5.6.210.0030.07320.71
5.6.200.0070.08718.20
5.6.190.0000.04320.48
5.6.180.3830.04020.60
5.6.170.0230.04020.71
5.6.160.0070.04720.52
5.6.150.0030.04018.29
5.6.140.0100.03718.16
5.6.130.0000.07718.17
5.6.120.0100.07321.12
5.6.110.0070.07321.04
5.6.100.0030.08720.95
5.6.90.0070.04021.13
5.6.80.0070.04020.36
5.6.70.0070.08020.34
5.5.350.0100.06320.47
5.5.340.0100.08018.03
5.5.330.0070.04020.57
5.5.320.3130.04020.33
5.5.310.0230.07320.34
5.5.300.0200.06717.98
5.5.290.0100.03717.93
5.5.280.0030.06020.73
5.5.270.0030.04020.97
5.5.260.0130.08020.86
5.5.250.0100.06320.61
5.5.240.0330.06720.28
5.4.450.0330.04319.57
5.4.440.0570.04319.64
5.4.430.0330.04019.48
5.4.420.0170.05019.45
5.4.410.0170.05318.92
5.4.400.0170.05018.69
5.4.390.0170.06018.83
5.4.380.0070.06018.48
5.4.370.0130.05018.73
5.4.360.0230.04318.73
5.4.350.0030.06318.56
5.4.340.0130.05718.79
5.4.320.0170.05718.73
5.4.310.0070.06718.70
5.4.300.0100.05718.73
5.4.290.0100.05318.77
5.4.280.0070.06018.70
5.4.270.0130.05318.66
5.4.260.0100.05318.76
5.4.250.0130.06318.82
5.4.240.0070.07318.73
5.4.230.0200.06318.46
5.4.220.0170.05018.72
5.4.210.0230.06018.66
5.4.200.0130.05316.70
5.4.190.0270.04718.48
5.4.180.0130.07718.65
5.4.170.0230.05318.77
5.4.160.0100.05318.80
5.4.150.0030.06018.47
5.4.140.0130.06716.30
5.4.130.0230.03716.32
5.4.120.0130.07316.30
5.4.110.0100.05716.29
5.4.100.0170.05716.23
5.4.90.0100.05316.48
5.4.80.0330.03316.27
5.4.70.0270.04016.27
5.4.60.0070.06716.16
5.4.50.0070.05316.25
5.4.40.0100.05016.29
5.4.30.0200.05016.22
5.4.20.0170.06716.39
5.4.10.0070.05316.11
5.4.00.0100.05015.88
5.3.290.0170.04714.64
5.3.280.0030.06014.58
5.3.270.0070.05714.62
5.3.260.0130.05014.57
5.3.250.0070.05714.81
5.3.240.0070.05314.76
5.3.230.0100.05314.72
5.3.220.0170.06314.60
5.3.210.0130.05314.77
5.3.200.0070.07714.68
5.3.190.0100.07014.77
5.3.180.0170.04314.55
5.3.170.0170.06314.58
5.3.160.0070.06014.75
5.3.150.0100.06014.57
5.3.140.0000.06714.75
5.3.130.0200.04714.76
5.3.120.0030.07314.59
5.3.110.0200.04714.58
5.3.100.0000.07314.13
5.3.90.0070.05714.21
5.3.80.0130.04714.07
5.3.70.0070.05714.14
5.3.60.0100.05314.09
5.3.50.0030.05713.95
5.3.40.0170.05014.06
5.3.30.0200.05714.02
5.3.20.0100.05313.79
5.3.10.0070.06013.66
5.3.00.0130.06013.86
5.2.170.0030.04711.12
5.2.160.0230.03311.20
5.2.150.0200.03311.24
5.2.140.0130.05311.16
5.2.130.0070.04311.20
5.2.120.0000.05311.07
5.2.110.0170.03311.11
5.2.100.0070.04311.14
5.2.90.0130.05311.23
5.2.80.0070.04311.19
5.2.70.0130.03711.14
5.2.60.0000.05011.14
5.2.50.0100.04311.12
5.2.40.0170.03011.20
5.2.30.0070.04311.17
5.2.20.0030.04711.17
5.2.10.0100.03710.90
5.2.00.0100.03710.73
5.1.60.0070.03310.09
5.1.50.0000.04010.05
5.1.40.0030.04310.18
5.1.30.0100.03710.36
5.1.20.0030.04010.45
5.1.10.0100.03310.19
5.1.00.0100.03710.19
5.0.50.0000.0378.74
5.0.40.0030.0278.61
5.0.30.0130.0408.40
5.0.20.0030.0338.26
5.0.10.0130.0238.37
5.0.00.0100.0508.27
4.4.90.0130.0235.92
4.4.80.0000.0375.94
4.4.70.0030.0335.97
4.4.60.0030.0335.91
4.4.50.0030.0235.90
4.4.40.0030.0375.87
4.4.30.0000.0305.88
4.4.20.0100.0175.95
4.4.10.0030.0305.92
4.4.00.0030.0406.03
4.3.110.0030.0275.81
4.3.100.0030.0335.83
4.3.90.0070.0205.82
4.3.80.0000.0435.88
4.3.70.0000.0335.77
4.3.60.0030.0235.78
4.3.50.0030.0275.81
4.3.40.0000.0375.76
4.3.30.0070.0234.59
4.3.20.0000.0274.52
4.3.10.0070.0234.48
4.3.00.0070.01715.75

preferences:
73.43 ms | 406 KiB | 5 Q