3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $x = []; $x['1'] = "numeric string"; $x["hello"] = "normal string"; $x['01'] = "fun 1"; $x['5.5'] = "fun 2"; $x[' 1'] = "HA HA"; echo var_export($x, true) . "\n"; foreach ($x as $k => $v) { printf("%s => %s\n", $v, gettype($k)); }

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.70.0090.00616.58
8.3.60.0140.00018.30
8.3.50.0170.00016.59
8.3.40.0090.00618.79
8.3.30.0070.00718.70
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.190.0140.00716.58
8.2.180.0150.00725.92
8.2.170.0080.00818.73
8.2.160.0100.00322.96
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.35
8.2.110.0040.00421.86
8.2.100.0120.00017.97
8.2.90.0040.00417.88
8.2.80.0060.00318.86
8.2.70.0080.00017.93
8.2.60.0000.00817.50
8.2.50.0080.00018.05
8.2.40.0040.00718.15
8.2.30.0040.00718.04
8.2.20.0040.00418.02
8.2.10.0000.00719.27
8.2.00.0040.00419.22
8.1.280.0130.00925.92
8.1.270.0050.00323.99
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0080.00323.79
8.1.230.0040.00719.10
8.1.220.0090.00017.77
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0040.00417.36
8.1.180.0080.00018.10
8.1.170.0040.00418.60
8.1.160.0000.00818.89
8.1.150.0040.00418.80
8.1.140.0030.00518.89
8.1.130.0050.00319.15
8.1.120.0080.00017.42
8.1.110.0040.00417.49
8.1.100.0030.00517.36
8.1.90.0080.00017.52
8.1.80.0000.00817.47
8.1.70.0070.00017.39
8.1.60.0040.00417.51
8.1.50.0040.00417.57
8.1.40.0050.00317.58
8.1.30.0080.00017.64
8.1.20.0030.00617.68
8.1.10.0000.00717.48
8.1.00.0070.00017.40
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0030.00318.46
8.0.270.0030.00318.02
8.0.260.0000.00716.73
8.0.250.0000.00616.99
8.0.240.0000.00716.82
8.0.230.0070.00016.93
8.0.220.0040.00416.81
8.0.210.0000.00816.91
8.0.200.0030.00316.96
8.0.190.0000.00716.95
8.0.180.0070.00016.83
8.0.170.0000.00816.91
8.0.160.0000.00716.83
8.0.150.0000.00816.86
8.0.140.0080.00016.84
8.0.130.0060.00013.33
8.0.120.0020.00516.76
8.0.110.0050.00216.75
8.0.100.0050.00216.77
8.0.90.0040.00416.70
8.0.80.0080.01016.83
8.0.70.0000.00716.78
8.0.60.0050.00316.78
8.0.50.0070.00016.86
8.0.30.0110.00617.23
8.0.20.0110.01017.17
8.0.10.0040.00417.05
8.0.00.0140.00417.02
7.4.330.0020.00215.55
7.4.320.0060.00316.43
7.4.300.0030.00316.59
7.4.290.0000.00716.52
7.4.280.0050.00316.50
7.4.270.0090.00016.52
7.4.260.0020.00313.20
7.4.250.0030.00316.46
7.4.240.0070.00016.57
7.4.230.0040.00416.63
7.4.220.0020.00516.56
7.4.210.0060.00816.57
7.4.200.0030.00316.44
7.4.130.0070.01016.49
7.4.120.0110.01216.55
7.4.110.0100.00716.51
7.4.100.0170.00016.49
7.4.90.0030.01616.75
7.4.80.0150.00316.58
7.4.70.0120.00616.47
7.4.60.0090.01216.22
7.4.50.0080.01116.48
7.4.40.0040.01616.62
7.4.30.0040.01416.36
7.4.20.0070.01016.38
7.4.10.0080.01216.51
7.4.00.0130.00916.45
7.3.330.0080.00016.19
7.3.320.0000.00613.15
7.3.310.0030.00316.38
7.3.300.0070.00016.25
7.3.290.0080.00716.36
7.3.280.0070.01116.29
7.3.260.0090.01216.29
7.3.240.0060.01216.63
7.3.230.0090.00916.54
7.3.210.0150.00316.29
7.3.200.0030.01416.56
7.3.190.0070.01116.26
7.3.180.0140.00316.29
7.3.170.0070.01016.38
7.3.160.0090.00916.33
7.3.150.0130.00316.44
7.3.140.0110.00716.27
7.3.130.0060.01216.55
7.3.120.0120.00916.54
7.3.110.0060.01016.47
7.3.100.0060.01016.39
7.3.90.0070.01016.49
7.3.80.0030.01316.44
7.3.70.0120.01216.42
7.3.60.0120.00916.44
7.3.50.0150.00616.30
7.3.40.0190.00316.34
7.3.30.0070.01016.43
7.3.20.0030.01516.60
7.3.10.0090.00916.38
7.3.00.0170.00316.23
7.2.330.0100.00716.64
7.2.320.0140.00316.75
7.2.310.0110.00816.69
7.2.300.0140.00316.55
7.2.290.0090.01316.46
7.2.280.0040.01416.67
7.2.270.0150.00616.73
7.2.260.0030.01616.61
7.2.250.0100.00916.59
7.2.240.0030.01416.39
7.2.230.0130.00316.34
7.2.220.0060.01016.38
7.2.210.0130.00316.45
7.2.200.0070.01016.50
7.2.190.0060.01816.61
7.2.180.0030.02016.55
7.2.170.0070.01716.67
7.2.160.0070.01016.41
7.2.150.0090.00916.54
7.2.140.0100.01016.60
7.2.130.0140.00316.60
7.2.120.0110.00616.68
7.2.110.0160.01016.57
7.2.100.0120.00616.50
7.2.90.0150.00316.65
7.2.80.0060.01216.70
7.2.70.0180.00016.62
7.2.60.0030.01516.55
7.2.50.0150.00316.53
7.2.40.0070.01116.49
7.2.30.0090.00916.51
7.2.20.0170.00016.37
7.2.10.0090.00916.50
7.2.00.0130.00616.52

preferences:
66.83 ms | 401 KiB | 5 Q