3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $x = []; $x['1'] = "numeric string"; $x["hello"] = "normal string"; 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.0000.01516.58
8.3.60.0070.00718.43
8.3.50.0140.00016.36
8.3.40.0100.00718.83
8.3.30.0040.01118.65
8.3.20.0050.00324.18
8.3.10.0050.00324.66
8.3.00.0000.00826.16
8.2.190.0070.01016.63
8.2.180.0130.00725.92
8.2.170.0140.00018.91
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00426.35
8.2.110.0040.00422.20
8.2.100.0040.00817.72
8.2.90.0040.00417.75
8.2.80.0050.00318.91
8.2.70.0040.00417.50
8.2.60.0070.00317.63
8.2.50.0050.00318.05
8.2.40.0040.00418.34
8.2.30.0000.01018.22
8.2.20.0040.00418.18
8.2.10.0030.00519.34
8.2.00.0040.00419.32
8.1.280.0070.01425.92
8.1.270.0050.00323.99
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0070.00323.84
8.1.230.0070.00420.84
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0080.00317.35
8.1.190.0100.00017.13
8.1.180.0030.00718.10
8.1.170.0040.00418.56
8.1.160.0000.00718.79
8.1.150.0000.00718.92
8.1.140.0040.00418.78
8.1.130.0040.00420.12
8.1.120.0050.00317.34
8.1.110.0060.00317.43
8.1.100.0000.00817.51
8.1.90.0070.00017.29
8.1.80.0000.01117.35
8.1.70.0040.00417.45
8.1.60.0000.00817.54
8.1.50.0030.00617.54
8.1.40.0040.00417.46
8.1.30.0070.00317.65
8.1.20.0030.00517.66
8.1.10.0040.00417.56
8.1.00.0040.00417.47
8.0.300.0070.00018.92
8.0.290.0050.00316.75
8.0.280.0030.00318.45
8.0.270.0030.00317.95
8.0.260.0030.00318.43
8.0.250.0030.00316.98
8.0.240.0000.00816.95
8.0.230.0030.00316.82
8.0.220.0080.00016.79
8.0.210.0070.00016.90
8.0.200.0070.00016.93
8.0.190.0080.00016.94
8.0.180.0000.00716.80
8.0.170.0000.00916.88
8.0.160.0070.00016.95
8.0.150.0000.00716.89
8.0.140.0070.00016.81
8.0.130.0030.00313.30
8.0.120.0000.00716.83
8.0.110.0070.00016.79
8.0.100.0030.00316.73
8.0.90.0030.00316.69
8.0.80.0070.00916.87
8.0.70.0000.00716.77
8.0.60.0030.00516.94
8.0.50.0040.00416.67
8.0.30.0070.01016.99
8.0.20.0120.00917.10
8.0.10.0040.00416.87
8.0.00.0220.00016.55
7.4.330.0050.00015.55
7.4.320.0030.00616.54
7.4.300.0000.00616.45
7.4.290.0040.00416.58
7.4.280.0000.00716.50
7.4.270.0000.00816.55
7.4.260.0050.00013.25
7.4.250.0000.00716.46
7.4.240.0000.00816.46
7.4.230.0030.00316.66
7.4.220.0050.00216.26
7.4.210.0030.01416.55
7.4.200.0000.00716.52
7.4.130.0100.00716.50
7.4.120.0040.01316.51
7.4.110.0110.00616.53
7.4.100.0150.00316.30
7.4.90.0110.00716.41
7.4.80.0110.00516.53
7.4.70.0070.01016.27
7.4.60.0150.00616.50
7.4.50.0140.00316.40
7.4.40.0070.01416.36
7.4.30.0080.00816.52
7.4.20.0100.00716.51
7.4.10.0150.00416.49
7.4.00.0110.00716.40
7.3.330.0030.00316.32
7.3.320.0000.00613.06
7.3.310.0050.00316.41
7.3.300.0000.00716.37
7.3.290.0100.00816.34
7.3.280.0070.00716.30
7.3.260.0150.00916.32
7.3.240.0120.00516.59
7.3.230.0130.00716.42
7.3.210.0160.00516.40
7.3.200.0030.01316.50
7.3.190.0070.01316.31
7.3.180.0060.01016.22
7.3.170.0030.01316.60
7.3.160.0100.00716.48
7.3.150.0150.00416.34
7.3.140.0070.01016.27
7.3.130.0060.01216.49
7.3.120.0070.01016.37
7.3.110.0130.00316.36
7.3.100.0080.00916.60
7.3.90.0030.01316.37
7.3.80.0080.00816.21
7.3.70.0120.00416.51
7.3.60.0090.00616.31
7.3.50.0130.00316.39
7.3.40.0130.00716.28
7.3.30.0060.01016.41
7.3.20.0140.00416.46
7.3.10.0110.00616.29
7.3.00.0060.01216.30
7.2.330.0120.00616.43
7.2.320.0110.00616.56
7.2.310.0040.01316.28
7.2.300.0120.01016.37
7.2.290.0080.00816.40
7.2.280.0030.01416.68
7.2.270.0120.00616.67
7.2.260.0030.01416.77
7.2.250.0070.01016.64
7.2.240.0120.00616.42
7.2.230.0060.01116.38
7.2.220.0130.00316.70
7.2.210.0030.01316.74
7.2.200.0090.00916.46
7.2.190.0100.00616.54
7.2.180.0000.01716.63
7.2.170.0070.01016.49
7.2.160.0060.01216.36
7.2.150.0080.01116.50
7.2.140.0140.00716.50
7.2.130.0090.00916.36
7.2.120.0070.01016.57
7.2.110.0060.01516.78
7.2.100.0090.00916.51
7.2.90.0110.00516.49
7.2.80.0170.00716.47
7.2.70.0030.01416.50
7.2.60.0030.01316.49
7.2.50.0080.00816.57
7.2.40.0080.00816.52
7.2.30.0120.00916.62
7.2.20.0040.01516.37
7.2.10.0140.01016.55
7.2.00.0070.01016.59

preferences:
46.8 ms | 401 KiB | 5 Q