3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [0=>[id=>105, bla=>"sd"], 1=>[id=>300, bla=>"mvk"]]; $fixed = []; foreach ($arr as $a) { $fixed[$a["id"]] = $a; } unset($arr); var_dump($fixed);

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.0150.00618.32
8.3.50.0040.01117.89
8.3.40.0140.00018.66
8.3.30.0110.00318.67
8.3.20.0120.00320.30
8.3.10.0060.00320.54
8.3.00.0040.00421.77
8.2.180.0130.00716.63
8.2.170.0110.00722.96
8.2.160.0070.01122.12
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00421.05
8.2.120.0050.00226.35
8.2.110.0060.00320.34
8.2.100.0030.00918.03
8.2.90.0050.00318.98
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0070.00018.04
8.2.50.0030.00618.10
8.2.40.0000.00720.53
8.2.30.0040.00419.30
8.2.20.0090.00017.77
8.2.10.0040.00417.97
8.2.00.0000.00818.13
8.1.280.0150.00025.92
8.1.270.0040.00422.01
8.1.260.0000.00928.09
8.1.250.0040.00428.09
8.1.240.0070.00422.65
8.1.230.0060.00619.61
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0020.00917.13
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00718.47
8.1.160.0040.00420.74
8.1.150.0040.00420.48
8.1.140.0080.00019.50
8.1.130.0000.00717.54
8.1.120.0000.00717.36
8.1.110.0030.00317.36
8.1.100.0000.00717.35
8.1.90.0000.00717.39
8.1.80.0030.00517.38
8.1.70.0030.00317.34
8.1.60.0000.00817.50
8.1.50.0060.00317.35
8.1.40.0050.00517.39
8.1.30.0050.00317.50
8.1.20.0000.00817.37
8.1.10.0030.00617.41
8.1.00.0060.00317.38
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.43
8.0.270.0000.00717.25
8.0.260.0030.00317.15
8.0.250.0030.00316.98
8.0.240.0050.00317.05
8.0.230.0000.00716.94
8.0.220.0000.00716.96
8.0.210.0000.00716.94
8.0.200.0030.00316.98
8.0.190.0030.00516.88
8.0.180.0040.00416.86
8.0.170.0000.00716.99
8.0.160.0000.00716.99
8.0.150.0070.00016.78
8.0.140.0030.00316.89
8.0.130.0050.00013.45
8.0.120.0030.00516.83
8.0.110.0000.00716.99
8.0.100.0000.00716.79
8.0.90.0040.00416.83
8.0.80.0110.00416.92
8.0.70.0000.00716.88
8.0.60.0070.00016.91
8.0.50.0040.00416.75
8.0.30.0140.00516.91
8.0.20.0100.00917.40
8.0.10.0040.00416.88
8.0.00.0080.01016.65
7.4.330.0050.00016.79
7.4.320.0000.00616.50
7.4.300.0000.00616.48
7.4.290.0040.00416.50
7.4.280.0080.00016.57
7.4.270.0030.00316.40
7.4.260.0000.00716.48
7.4.250.0000.00716.56
7.4.240.0070.00016.60
7.4.230.0070.00016.67
7.4.220.0100.01716.63
7.4.210.0070.00716.55
7.4.200.0070.00016.38
7.4.160.0070.01416.50
7.4.150.0070.01017.40
7.4.140.0140.00617.86
7.4.130.0080.01116.43
7.4.120.0110.00916.51
7.4.110.0100.00716.73
7.4.100.0070.01516.34
7.4.90.0080.00816.66
7.4.80.0120.00619.39
7.4.70.0030.01216.54
7.4.60.0120.01116.65
7.4.50.0060.01116.48
7.4.40.0080.00816.25
7.4.30.0030.01316.31
7.4.00.0060.01014.77
7.3.330.0030.00313.32
7.3.320.0000.00513.27
7.3.310.0070.00016.29
7.3.300.0070.00016.34
7.3.290.0030.01016.35
7.3.280.0110.00616.37
7.3.270.0110.01517.40
7.3.260.0150.00616.53
7.3.250.0090.00816.47
7.3.240.0130.00416.49
7.3.230.0120.00616.54
7.3.210.0130.00716.40
7.3.200.0130.00316.38
7.3.190.0150.00616.55
7.3.180.0060.01016.48
7.3.170.0090.01516.47
7.3.160.0090.00916.35
7.2.330.0110.00616.70
7.2.320.0110.00616.56
7.2.310.0150.00916.74
7.2.300.0130.00316.66
7.2.290.0120.00616.46
7.2.60.0040.01116.63
7.2.00.0070.00319.52
7.1.200.0090.00315.81
7.1.100.0100.00718.09
7.1.70.0020.00516.92
7.1.60.0160.00919.24
7.1.50.0030.01716.73
7.1.00.0000.08022.42
7.0.200.0900.00014.79
7.0.60.0330.07319.88
7.0.50.0030.08317.81
7.0.40.0130.08720.06
7.0.30.0130.07020.21
7.0.20.0330.05320.09
7.0.10.0030.04320.16
7.0.00.0100.07720.00
5.6.280.0030.07720.78
5.6.210.0070.05720.56
5.6.200.0030.05718.19
5.6.190.0070.09020.48
5.6.180.0300.05720.44
5.6.170.0200.04020.44
5.6.160.0070.04020.50
5.6.150.0100.07718.12
5.6.140.0130.07718.14
5.6.130.0070.05018.16
5.6.120.0170.07721.14
5.6.110.0100.08720.98
5.6.100.0000.04721.13
5.6.90.0030.09320.98
5.6.80.0200.05320.53
5.5.350.0300.07320.34
5.5.340.0030.04717.88
5.5.330.0070.04020.21
5.5.320.0330.07320.18
5.5.310.0130.05020.23
5.5.300.0070.06018.01
5.5.290.0000.09017.95
5.5.280.0100.08020.89
5.5.270.0100.08020.95
5.5.260.0030.08020.88
5.5.250.0030.04020.57
5.5.240.0070.03320.26

preferences:
52.11 ms | 400 KiB | 5 Q