3v4l.org

run code in 300+ PHP versions simultaneously
<?php$arr = array('id' => 1, 'name' => 'Fred'); $result = array_map( function ($value, $key) { return $value; }, $arr, array_keys($arr) ); var_dump($result);

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.0120.00616.58
8.3.60.0110.00718.43
8.3.50.0100.00822.91
8.3.40.0080.00618.63
8.3.30.0100.00318.91
8.3.20.0070.00020.16
8.3.10.0000.00823.61
8.3.00.0080.00019.26
8.2.180.0110.01116.32
8.2.170.0000.01422.96
8.2.160.0110.00320.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00721.10
8.2.110.0030.00722.25
8.2.100.0040.00717.58
8.2.90.0040.00419.27
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0090.00317.80
8.2.50.0000.00818.07
8.2.40.0080.00018.16
8.2.30.0000.00717.79
8.2.20.0000.00717.41
8.2.10.0040.00417.82
8.2.00.0050.00217.55
8.1.280.0140.00025.92
8.1.270.0000.00923.91
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0040.00423.86
8.1.230.0070.00419.07
8.1.220.0050.00217.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0030.00516.98
8.1.180.0050.00318.10
8.1.170.0030.00618.59
8.1.160.0020.00521.85
8.1.150.0040.00418.70
8.1.140.0040.00417.30
8.1.130.0000.00717.81
8.1.120.0000.00817.27
8.1.110.0000.00917.31
8.1.100.0020.00517.25
8.1.90.0050.00317.22
8.1.80.0070.00017.30
8.1.70.0000.00717.27
8.1.60.0030.00517.49
8.1.50.0040.00417.36
8.1.40.0000.00917.30
8.1.30.0000.00817.49
8.1.20.0040.00417.40
8.1.10.0000.00717.46
8.1.00.0000.00717.41
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.32
8.0.270.0000.00717.24
8.0.260.0000.00617.09
8.0.250.0040.00516.71
8.0.240.0080.00016.66
8.0.230.0000.00816.70
8.0.220.0000.00716.65
8.0.210.0030.00316.77
8.0.200.0030.00316.68
8.0.190.0000.00816.77
8.0.180.0000.00816.65
8.0.170.0000.00716.78
8.0.160.0040.00416.63
8.0.150.0020.00516.60
8.0.140.0030.00316.73
8.0.130.0000.00613.31
8.0.120.0000.00716.73
8.0.110.0050.00216.66
8.0.100.0040.00416.80
8.0.90.0040.00416.70
8.0.80.0000.01516.70
8.0.70.0000.00716.79
8.0.60.0050.00216.72
8.0.50.0040.00416.56
8.0.30.0110.01216.79
8.0.20.0090.01417.40
8.0.10.0000.00716.91
8.0.00.0090.00916.76
7.4.330.0050.00015.08
7.4.320.0030.00316.46
7.4.300.0000.00716.50
7.4.290.0040.00416.45
7.4.280.0000.00716.46
7.4.270.0000.00716.32
7.4.260.0070.00316.51
7.4.250.0000.00716.43
7.4.240.0050.00216.47
7.4.230.0030.00416.20
7.4.220.0130.01616.43
7.4.210.0090.01116.48
7.4.200.0030.00616.06
7.4.160.0080.00816.34
7.4.150.0040.01417.40
7.4.140.0080.01117.86
7.4.130.0080.01116.37
7.4.120.0100.00716.40
7.4.110.0150.00716.43
7.4.100.0140.00416.36
7.4.90.0170.00416.33
7.4.80.0040.01319.39
7.4.70.0130.00316.46
7.4.60.0140.00916.20
7.4.50.0000.00916.05
7.4.40.0000.01616.52
7.4.30.0070.01016.34
7.3.330.0070.00013.23
7.3.320.0000.00512.96
7.3.310.0070.00016.05
7.3.300.0030.00315.98
7.3.290.0070.00716.18
7.3.280.0070.00816.11
7.3.270.0040.01317.40
7.3.260.0130.00316.37
7.3.250.0110.00916.19
7.3.240.0040.01416.14
7.3.230.0090.01216.46
7.3.210.0070.01016.02
7.3.200.0190.00319.39
7.3.190.0100.00616.18
7.3.180.0030.01316.08
7.3.170.0050.01216.41
7.3.160.0090.00616.29
7.2.330.0120.00616.36
7.2.320.0110.00816.22
7.2.310.0080.00916.58
7.2.300.0040.01416.42
7.2.290.0000.01516.14
5.4.320.0430.06719.22
5.4.310.0470.07019.22
5.4.300.0330.03719.09
5.4.290.0370.03319.13
5.4.280.0400.06019.22
5.4.270.0500.06719.08
5.4.260.0470.05719.16
5.4.250.0430.07019.22
5.4.240.0500.05319.30
5.4.230.0330.06319.16
5.4.220.0500.06318.94
5.4.210.0570.05318.85
5.4.200.0370.06318.98
5.4.190.0300.05018.84
5.4.180.0230.05019.15
5.4.170.0270.03719.15
5.4.160.0270.03719.06
5.4.150.0330.03319.08
5.4.140.0330.03016.35
5.4.130.0270.03316.29
5.4.120.0300.03316.30
5.4.110.0270.03316.46
5.4.100.0270.03716.58
5.4.90.0230.04016.56
5.4.80.0270.03316.49
5.4.70.0300.03316.17
5.4.60.0300.03316.24
5.4.50.0270.03316.51
5.4.40.0330.03016.42
5.4.30.0270.03716.35
5.4.20.0300.03016.54
5.4.10.0270.04316.53
5.4.00.0270.03716.12

preferences:
37.35 ms | 401 KiB | 5 Q