3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'title' => array('value1'), 'description' => array('value2'), ); $array = array_map(function ($element) { return $element[0]; }, $array); var_dump($array);

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.130.0080.00018.39
8.3.120.0120.00418.99
8.3.110.0120.00420.94
8.3.100.0130.00324.06
8.3.90.0070.00426.77
8.3.80.0030.00616.40
8.3.70.0040.01116.58
8.3.60.0120.00916.50
8.3.50.0130.00821.18
8.3.40.0120.00318.85
8.3.30.0030.01018.91
8.3.20.0050.00320.20
8.3.10.0030.00521.93
8.3.00.0000.00917.50
8.2.250.0080.00016.92
8.2.240.0060.00319.03
8.2.230.0000.00822.58
8.2.220.0060.01337.54
8.2.210.0040.00426.77
8.2.200.0040.00716.88
8.2.190.0110.00416.58
8.2.180.0120.00925.92
8.2.170.0030.01322.96
8.2.160.0080.00620.41
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00021.04
8.2.110.0040.00422.25
8.2.100.0180.00017.78
8.2.90.0040.00419.06
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0030.00617.93
8.2.50.0000.00818.07
8.2.40.0000.00820.07
8.2.30.0000.00818.08
8.2.20.0030.00517.76
8.2.10.0000.00718.12
8.2.00.0050.00218.41
8.1.300.0060.01318.20
8.1.290.0090.00018.88
8.1.280.0060.01525.92
8.1.270.0080.00023.90
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0050.00523.96
8.1.230.0090.00319.09
8.1.220.0050.00317.74
8.1.210.0050.00518.77
8.1.200.0030.00617.35
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0080.00018.42
8.1.160.0060.00322.03
8.1.150.0040.00418.75
8.1.140.0070.00017.47
8.1.130.0000.00817.83
8.1.120.0040.00417.36
8.1.110.0000.00717.46
8.1.100.0000.00817.27
8.1.90.0070.00017.35
8.1.80.0000.00817.50
8.1.70.0030.00317.50
8.1.60.0000.00817.61
8.1.50.0080.00017.54
8.1.40.0030.00617.56
8.1.30.0000.00917.72
8.1.20.0040.00417.62
8.1.10.0000.00817.47
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0000.00817.04
8.0.280.0040.00218.25
8.0.270.0000.00617.11
8.0.260.0000.00617.19
8.0.250.0060.00016.83
8.0.240.0000.00816.84
8.0.230.0000.00716.89
8.0.220.0000.00816.86
8.0.210.0000.00716.85
8.0.200.0000.00616.86
8.0.190.0080.00016.90
8.0.180.0030.00516.95
8.0.170.0040.00416.84
8.0.160.0090.00016.95
8.0.150.0050.00316.72
8.0.140.0030.00316.79
8.0.130.0000.00613.28
8.0.120.0070.00016.84
8.0.110.0070.00016.75
8.0.100.0000.00716.79
8.0.90.0000.00716.75
8.0.80.0060.00916.79
8.0.70.0000.00816.72
8.0.60.0030.00616.88
8.0.50.0000.00716.88
8.0.30.0110.00816.90
8.0.20.0160.02017.40
8.0.10.0100.00017.00
8.0.00.0130.00616.73
7.4.330.0030.00315.09
7.4.320.0040.00416.43
7.4.300.0000.00716.59
7.4.290.0040.00416.57
7.4.280.0040.00416.50
7.4.270.0040.00416.49
7.4.260.0030.00616.57
7.4.250.0040.00416.57
7.4.240.0040.00316.46
7.4.230.0070.00016.59
7.4.220.0120.00616.64
7.4.210.0030.01316.50
7.4.200.0070.00016.25
7.4.160.0100.00616.43
7.4.150.0400.01917.40
7.4.140.0080.01117.86
7.4.130.0070.01016.50
7.4.120.0060.01116.52
7.4.110.0120.01216.48
7.4.100.0100.00716.32
7.4.90.0100.01316.57
7.4.80.0070.01419.39
7.4.70.0110.00816.39
7.4.60.0150.00016.32
7.4.50.0000.00816.42
7.4.40.0120.00616.44
7.4.30.0120.00916.48
7.4.00.0020.01514.90
7.3.330.0000.00513.12
7.3.320.0000.00513.35
7.3.310.0040.00416.33
7.3.300.0070.00016.16
7.3.290.0060.01116.25
7.3.280.0120.00316.22
7.3.270.0040.01717.40
7.3.260.0070.01116.46
7.3.250.0130.01016.44
7.3.240.0100.01416.37
7.3.230.0080.00816.39
7.3.210.0080.00816.52
7.3.200.0140.00619.39
7.3.190.0060.00916.35
7.3.180.0080.00816.30
7.3.170.0090.01616.37
7.3.160.0040.01216.37
7.3.120.0090.00914.64
7.3.110.0000.01514.76
7.3.100.0030.00614.73
7.3.90.0060.01214.84
7.3.80.0070.00714.85
7.3.70.0120.00614.75
7.3.60.0040.01114.75
7.3.50.0070.00714.79
7.3.40.0120.00314.77
7.3.30.0040.00814.80
7.3.20.0060.00616.70
7.3.10.0000.01316.61
7.3.00.0030.01416.71
7.2.330.0150.00316.36
7.2.320.0080.01016.45
7.2.310.0150.00816.39
7.2.300.0100.00716.63
7.2.290.0060.01416.71
7.2.250.0100.00614.96
7.2.240.0040.01615.01
7.2.230.0040.01114.98
7.2.220.0030.01615.06
7.2.210.0030.01614.80
7.2.200.0050.01015.08
7.2.190.0040.01114.86
7.2.180.0060.01015.04
7.2.170.0070.00714.97
7.2.60.0000.01316.49
7.2.00.0080.00819.04
7.1.330.0080.00615.86
7.1.320.0030.00715.65
7.1.310.0110.00715.54
7.1.300.0030.01015.94
7.1.290.0000.01315.77
7.1.280.0030.00915.81
7.1.270.0070.00615.83
7.1.260.0080.00415.61
7.1.200.0090.00315.71
7.1.100.0040.01118.19
7.1.70.0040.00417.20
7.1.60.0040.01919.50
7.1.50.0070.01016.97
7.1.00.0070.07022.40
7.0.200.0000.00716.63
7.0.60.0100.08021.81
7.0.50.0030.08017.92
7.0.40.0030.09019.96
7.0.30.0270.07320.15
7.0.20.0330.06320.05
7.0.10.0200.04320.07
7.0.00.0070.08020.33
5.6.280.0000.07720.91
5.6.210.0170.07020.65
5.6.200.0000.05018.13
5.6.190.0070.04020.46
5.6.180.0070.04720.61
5.6.170.0200.05020.58
5.6.160.0070.08720.55
5.6.150.0070.06718.23
5.6.140.0070.07718.11
5.6.130.0070.04318.19
5.6.120.0070.08321.14
5.6.110.0100.07020.99
5.6.100.0070.07321.02
5.6.90.0100.05721.08
5.6.80.0130.07320.54
5.5.350.0130.07020.34
5.5.340.0000.04318.07
5.5.330.0100.07320.38
5.5.320.0100.04720.29
5.5.310.0230.03720.17
5.5.300.0100.08018.05
5.5.290.0070.06717.96
5.5.280.0030.05320.80
5.5.270.0070.08720.66
5.5.260.0130.07320.97
5.5.250.0030.04020.61
5.5.240.0200.08020.13
5.4.450.0230.04319.57
5.4.440.0430.04319.41
5.4.430.0570.05019.46
5.4.420.0170.05019.51
5.4.410.0270.07018.96
5.4.400.0200.04718.88
5.4.390.0170.05318.57
5.4.380.0100.06718.79
5.4.370.0170.06318.79
5.4.360.0200.06318.89
5.4.350.0270.06318.49
5.4.340.0100.06018.57
5.4.320.0300.06018.75
5.4.310.0200.06318.84
5.4.300.0200.05318.72
5.4.290.0100.07318.71
5.4.280.0130.07318.59
5.4.270.0270.06318.74
5.4.260.0200.06318.44
5.4.250.0100.05718.59
5.4.240.0200.04718.80
5.4.230.0130.06318.76
5.4.220.0100.07718.70
5.4.210.0130.07718.75
5.4.200.0170.06316.54
5.4.190.0170.04718.47
5.4.180.0170.05718.73
5.4.170.0200.05018.55
5.4.160.0270.06318.53
5.4.150.0230.06718.54
5.4.140.0130.06716.19
5.4.130.0170.06316.21
5.4.120.0100.07316.30
5.4.110.0130.06716.30
5.4.100.0100.06016.29
5.4.90.0170.06316.25
5.4.80.0100.05316.25
5.4.70.0130.05016.21
5.4.60.0100.06016.25
5.4.50.0100.06716.20
5.4.40.0030.06316.16
5.4.30.0130.05016.40
5.4.20.0200.06016.26
5.4.10.0170.06016.16
5.4.00.0130.06315.60
5.3.290.0200.05314.85
5.3.280.0070.07714.79
5.3.270.0170.07014.80
5.3.260.0130.07714.72
5.3.250.0130.07314.64
5.3.240.0030.07314.58
5.3.230.0200.05714.59
5.3.220.0100.05314.70
5.3.210.0130.05714.57
5.3.200.0000.08014.78
5.3.190.0230.05014.56
5.3.180.0100.06014.58
5.3.170.0170.06314.68
5.3.160.0130.05714.60
5.3.150.0230.04314.66
5.3.140.0000.06314.61
5.3.130.0100.05714.55
5.3.120.0200.05014.75
5.3.110.0000.07014.59
5.3.100.0100.07014.14
5.3.90.0100.07314.14
5.3.80.0170.04714.24
5.3.70.0070.06014.04
5.3.60.0170.06314.05
5.3.50.0200.04713.95
5.3.40.0170.05014.02
5.3.30.0100.05713.91
5.3.20.0100.05313.86
5.3.10.0130.06313.66
5.3.00.0130.06013.67
5.2.170.0070.04711.20
5.2.160.0070.06011.19
5.2.150.0100.04711.20
5.2.140.0130.05011.05
5.2.130.0130.04711.06
5.2.120.0070.05711.25
5.2.110.0230.04011.25
5.2.100.0100.05311.05
5.2.90.0100.05011.11
5.2.80.0100.04711.07
5.2.70.0000.05311.07
5.2.60.0170.04310.96
5.2.50.0130.05011.09
5.2.40.0030.05710.95
5.2.30.0070.06010.93
5.2.20.0170.04711.11
5.2.10.0070.05310.83
5.2.00.0130.03710.83
5.1.60.0070.0379.96
5.1.50.0200.0309.99
5.1.40.0100.0409.98
5.1.30.0030.05010.35
5.1.20.0130.04010.51
5.1.10.0170.04010.18
5.1.00.0130.04010.10
5.0.50.0100.0338.58
5.0.40.0030.0378.52
5.0.30.0100.0508.36
5.0.20.0070.0338.38
5.0.10.0070.0308.15
5.0.00.0000.0578.15
4.4.90.0070.0275.86
4.4.80.0000.0335.89
4.4.70.0070.0235.88
4.4.60.0130.0175.88
4.4.50.0030.0235.88
4.4.40.0070.0435.88
4.4.30.0030.0305.81
4.4.20.0000.0275.92
4.4.10.0030.0275.91
4.4.00.0130.0305.94
4.3.110.0100.0175.90
4.3.100.0070.0205.82
4.3.90.0030.0305.87
4.3.80.0070.0405.78
4.3.70.0070.0235.79
4.3.60.0070.0175.80
4.3.50.0070.0205.80
4.3.40.0030.0475.76
4.3.30.0130.0204.68
4.3.20.0030.0304.66
4.3.10.0000.0334.48
4.3.00.0030.01015.75

preferences:
27.06 ms | 403 KiB | 5 Q