3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( array('id' => 1, 'name' => 'Bob', 'position' => 'Clerk'), array('id' => 2, 'name' => 'Alan', 'position' => 'Manager'), array('id' => 3, 'name' => 'James', 'position' => 'Director') ); $names = array_map( function($person) { return $person['name']; }, $data ); print_r($names); ?>

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.0100.00318.36
8.3.120.0000.00820.70
8.3.110.0090.00616.62
8.3.100.0060.00324.06
8.3.90.0070.01326.77
8.3.80.0090.00018.18
8.3.70.0140.00316.38
8.3.60.0040.01118.43
8.3.50.0110.00821.87
8.3.40.0000.01418.74
8.3.30.0130.00319.04
8.3.20.0040.00420.19
8.3.10.0000.00822.09
8.3.00.0050.00322.51
8.2.250.0040.01118.41
8.2.240.0150.00417.21
8.2.230.0030.00620.94
8.2.220.0070.00437.54
8.2.210.0150.00326.77
8.2.200.0060.00318.16
8.2.190.0110.00418.12
8.2.180.0120.00316.88
8.2.170.0150.00422.96
8.2.160.0100.00322.12
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0130.00726.16
8.2.120.0080.00021.00
8.2.110.0070.00321.00
8.2.100.0040.00819.57
8.2.90.0040.00419.35
8.2.80.0040.00418.04
8.2.70.0110.00317.56
8.2.60.0100.00517.71
8.2.50.0090.00417.60
8.2.40.0080.00417.74
8.2.30.0080.00417.83
8.2.20.0050.00717.58
8.2.10.0070.00517.56
8.2.00.0100.00217.62
8.1.300.0040.00716.28
8.1.290.0060.01330.84
8.1.280.0100.00325.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0090.00022.14
8.1.230.0120.00019.04
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0090.00417.29
8.1.190.0030.01017.26
8.1.180.0080.00517.71
8.1.170.0070.00517.87
8.1.160.0080.00419.62
8.1.150.0060.00617.89
8.1.140.0100.00317.46
8.1.130.0090.00417.50
8.1.120.0030.00917.38
8.1.110.0090.00417.33
8.1.100.0100.00317.40
8.1.90.0070.00417.26
8.1.80.0050.00817.35
8.1.70.0060.00717.30
8.1.60.0100.00517.43
8.1.50.0120.00217.24
8.1.40.0130.00217.39
8.1.30.0120.00217.60
8.1.20.0120.00317.50
8.1.10.0100.00517.38
8.1.00.0130.00317.37
8.0.300.0050.00218.77
8.0.290.0100.00116.75
8.0.280.0100.00317.45
8.0.270.0070.00516.61
8.0.260.0060.00516.61
8.0.250.0080.00416.84
8.0.240.0050.00716.69
8.0.230.0090.00316.69
8.0.220.0070.00716.72
8.0.210.0060.00816.76
8.0.200.0070.00516.78
8.0.190.0080.00516.78
8.0.180.0100.00316.83
8.0.170.0070.00616.77
8.0.160.0080.00516.79
8.0.150.0100.00516.72
8.0.140.0110.00316.76
8.0.130.0090.00415.61
8.0.120.0070.00616.77
8.0.110.0060.00516.82
8.0.100.0060.00616.75
8.0.90.0060.00516.78
8.0.80.0080.00716.78
8.0.70.0070.00516.78
8.0.60.0070.00416.81
8.0.50.0070.00516.80
8.0.30.0110.00516.90
8.0.20.0070.00717.07
8.0.10.0070.00516.93
8.0.00.0080.00716.87
7.4.330.0020.00715.79
7.4.320.0050.00716.58
7.4.300.0110.00216.50
7.4.290.0070.00616.54
7.4.280.0090.00516.56
7.4.270.0080.00416.57
7.4.260.0090.00416.57
7.4.250.0060.00516.52
7.4.240.0060.00516.50
7.4.230.0090.00116.43
7.4.220.0080.00516.57
7.4.210.0070.00716.57
7.4.200.0070.00316.48
7.4.190.0050.00516.53
7.4.180.0040.00716.47
7.4.160.0070.00516.49
7.4.150.0070.00516.75
7.4.140.0090.00516.99
7.4.130.0070.00616.46
7.4.120.0100.00516.39
7.4.110.0050.00916.42
7.4.100.0090.00416.50
7.4.90.0100.00416.45
7.4.80.0090.00616.88
7.4.70.0070.00716.41
7.4.60.0100.00516.44
7.4.50.0090.00316.39
7.4.40.0070.00717.47
7.4.30.0100.00516.43
7.4.20.0080.00616.39
7.4.10.0050.00916.44
7.4.00.0090.00616.29
7.3.330.0060.00515.37
7.3.320.0110.00115.42
7.3.310.0070.00516.35
7.3.300.0100.00216.37
7.3.290.0090.00616.25
7.3.280.0080.00816.29
7.3.270.0070.00716.57
7.3.260.0070.00716.35
7.3.250.0090.00516.37
7.3.240.0070.00716.32
7.3.230.0090.00616.35
7.3.220.0050.00916.35
7.3.210.0090.00616.30
7.3.200.0080.00716.35
7.3.190.0060.00916.35
7.3.180.0060.00916.34
7.3.170.0090.00516.34
7.3.160.0080.00616.31
7.3.150.0090.00616.34
7.3.140.0090.00716.39
7.3.130.0090.00616.25
7.3.120.0080.00816.06
7.3.110.0070.00716.24
7.3.100.0090.00716.25
7.3.90.0070.00716.34
7.3.80.0060.00816.30
7.3.70.0090.00616.35
7.3.60.0100.00616.38
7.3.50.0070.00816.34
7.3.40.0080.00816.33
7.3.30.0070.00816.36
7.3.20.0140.00817.56
7.3.10.0090.00817.40
7.3.00.0160.00817.47
7.2.340.0060.00816.35
7.2.330.0110.00616.41
7.2.320.0090.00616.47
7.2.310.0100.00616.43
7.2.300.0080.00716.35
7.2.290.0060.00916.42
7.2.280.0110.00616.38
7.2.270.0090.00716.41
7.2.260.0110.00516.45
7.2.250.0100.00516.42
7.2.240.0120.00416.42
7.2.230.0080.01016.42
7.2.220.0070.01016.43
7.2.210.0110.00616.43
7.2.200.0100.00716.41
7.2.190.0110.00516.45
7.2.180.0120.00416.48
7.2.170.0130.00416.41
7.2.160.0080.00816.55
7.2.150.0100.00817.67
7.2.140.0090.00917.68
7.2.130.0100.00717.69
7.2.120.0080.00817.76
7.2.110.0120.00617.65
7.2.100.0110.00617.69
7.2.90.0100.00817.70
7.2.80.0110.00617.67
7.2.70.0120.00517.65
7.2.60.0080.00917.52
7.2.50.0110.00517.59
7.2.40.0090.00817.59
7.2.30.0110.00617.70
7.2.20.0090.00817.65
7.2.10.0130.00617.69
7.2.00.0100.00817.71
7.1.330.0140.00616.68
7.1.320.0130.00816.68
7.1.310.0130.00716.67
7.1.300.0130.00716.63
7.1.290.0110.00916.62
7.1.280.0170.00316.66
7.1.270.0150.00616.65
7.1.260.0150.00616.69
7.1.250.0170.00416.61
7.1.240.0120.00716.65
7.1.230.0140.00616.66
7.1.220.0120.00816.65
7.1.210.0120.00916.72
7.1.200.0140.00716.44
7.1.190.0100.01116.62
7.1.180.0140.00616.64
7.1.170.0160.00516.61
7.1.160.0130.00916.63
7.1.150.0140.00716.60
7.1.140.0120.00816.56
7.1.130.0140.00616.63
7.1.120.0110.00816.66
7.1.110.0140.00616.54
7.1.100.0140.00516.58
7.1.90.0120.00916.57
7.1.80.0170.00416.54
7.1.70.0140.00616.59
7.1.60.0150.00616.73
7.1.50.0120.00716.71
7.1.40.0110.00916.67
7.1.30.0110.00916.64
7.1.20.0130.00716.56
7.1.10.0130.00516.66
7.1.00.0120.00616.66
7.0.330.0140.00516.32
7.0.320.0150.00516.24
7.0.310.0130.00716.26
7.0.300.0180.00616.21
7.0.290.0110.00716.15
7.0.280.0120.00716.31
7.0.270.0120.00816.35
7.0.260.0130.00716.24
7.0.250.0110.00816.30
7.0.240.0140.00516.31
7.0.230.0120.00916.41
7.0.220.0140.00616.25
7.0.210.0170.00616.28
7.0.200.0110.00616.32
7.0.190.0120.00616.36
7.0.180.0110.00616.30
7.0.170.0120.00716.33
7.0.160.0130.00616.24
7.0.150.0110.00716.19
7.0.140.0110.00616.31
7.0.130.0130.00616.37
7.0.120.0130.00516.39
7.0.110.0110.00616.27
7.0.100.0120.00516.30
7.0.90.0120.00616.24
7.0.80.0110.00816.23
7.0.70.0120.00616.26
7.0.60.0170.00816.23
7.0.50.0110.00616.25
7.0.40.0100.00716.21
7.0.30.0130.00616.21
7.0.20.0100.00716.23
7.0.10.0120.00816.21
7.0.00.0110.00716.21
5.6.400.0140.00615.87
5.6.390.0130.00815.94
5.6.380.0140.00615.91
5.6.370.0120.00815.84
5.6.360.0120.00815.88
5.6.350.0130.00815.81
5.6.340.0110.01015.87
5.6.330.0110.00915.96
5.6.320.0130.00815.97
5.6.310.0130.00816.01
5.6.300.0120.01116.61
5.6.290.0100.01416.61
5.6.280.0110.01216.64
5.6.270.0120.01416.59
5.6.260.0130.01116.65
5.6.250.0120.01116.61
5.6.240.0100.01416.65
5.6.230.0110.02016.68
5.6.220.0120.01516.67
5.6.210.0130.01116.65
5.6.200.0120.01216.71
5.6.190.0110.01316.66
5.6.180.0090.01416.63
5.6.170.0150.01116.74
5.6.160.0080.01816.72
5.6.150.0130.01016.62
5.6.140.0110.01516.74
5.6.130.0120.01316.62
5.6.120.0120.01316.75
5.6.110.0090.01516.66
5.6.100.0110.01316.67
5.6.90.0130.01116.66
5.6.80.0120.01216.50
5.6.70.0110.01316.59
5.6.60.0130.01016.51
5.6.50.0080.01716.42
5.6.40.0150.01016.46
5.6.30.0120.01216.51
5.6.20.0100.01116.52
5.6.10.0110.01216.47
5.6.00.0120.01216.50
5.5.380.0120.01116.17
5.5.370.0110.01516.09
5.5.360.0120.01516.04
5.5.350.0110.01616.15
5.5.340.0110.01416.17
5.5.330.0110.01416.12
5.5.320.0120.01216.21
5.5.310.0140.01016.21
5.5.300.0110.01416.21
5.5.290.0110.01416.17
5.5.280.0130.01116.14
5.5.270.0120.01216.15
5.5.260.0110.01316.12
5.5.250.0130.01116.17
5.5.240.0120.01616.08
5.5.230.0110.01316.02
5.5.220.0140.01016.08
5.5.210.0120.01216.07
5.5.200.0120.01316.01
5.5.190.0100.01315.98
5.5.180.0120.01116.01
5.5.170.0130.00815.80
5.5.160.0100.01316.02
5.5.150.0110.01116.08
5.5.140.0080.01515.88
5.5.130.0130.01116.01
5.5.120.0110.01416.03
5.5.110.0120.01615.95
5.5.100.0120.01115.95
5.5.90.0100.01416.06
5.5.80.0100.01216.00
5.5.70.0110.01816.06
5.5.60.0110.01316.12
5.5.50.0100.01216.09
5.5.40.0110.01116.00
5.5.30.0120.01216.06
5.5.20.0080.01315.96
5.5.10.0120.01116.06
5.5.00.0080.01715.93
5.4.450.0090.01114.26
5.4.440.0090.01214.14
5.4.430.0100.00914.16
5.4.420.0100.00914.17
5.4.410.0100.01014.13
5.4.400.0080.01214.11
5.4.390.0080.01114.10
5.4.380.0080.01214.10
5.4.370.0100.01114.17
5.4.360.0100.01214.08
5.4.350.0100.01114.15
5.4.340.0080.01214.07
5.4.330.0100.00713.31
5.4.320.0060.01414.15
5.4.310.0110.00914.13
5.4.300.0070.01314.14
5.4.290.0100.00914.09
5.4.280.0090.01114.11
5.4.270.0070.01214.07
5.4.260.0080.01114.05
5.4.250.0100.00914.15
5.4.240.0070.01414.03
5.4.230.0060.01214.06
5.4.220.0090.01014.07
5.4.210.0060.01414.10
5.4.200.0110.00813.96
5.4.190.0090.01013.99
5.4.180.0090.01014.01
5.4.170.0100.00914.05
5.4.160.0090.00914.04
5.4.150.0090.00914.03
5.4.140.0090.01013.71
5.4.130.0080.00913.75
5.4.120.0080.01013.77
5.4.110.0090.01013.73
5.4.100.0080.01213.80
5.4.90.0100.01013.84
5.4.80.0080.01013.84
5.4.70.0080.00913.77
5.4.60.0090.01013.76
5.4.50.0080.01113.80
5.4.40.0110.00813.70
5.4.30.0070.01313.86
5.4.20.0090.01013.82
5.4.10.0070.01213.81
5.4.00.0100.00913.70
5.3.290.0090.01214.02
5.3.280.0100.01014.00
5.3.270.0100.01014.02
5.3.260.0100.01113.99
5.3.250.0090.00914.08
5.3.240.0100.00813.85
5.3.230.0090.01113.95
5.3.220.0070.01113.82
5.3.210.0090.01013.87
5.3.200.0070.01313.86
5.3.190.0090.01013.93
5.3.180.0090.01013.98
5.3.170.0090.01114.07
5.3.160.0130.00814.00
5.3.150.0110.01014.02
5.3.140.0090.01113.96
5.3.130.0090.01113.96
5.3.120.0090.01113.87
5.3.110.0100.01113.88
5.3.100.0100.00913.90
5.3.90.0070.01313.99
5.3.80.0080.01113.84
5.3.70.0090.01013.84
5.3.60.0080.01213.99
5.3.50.0100.01013.90
5.3.40.0110.01113.97
5.3.30.0080.01713.91
5.3.20.0090.01213.94
5.3.10.0090.01413.80
5.3.00.0090.01313.86

preferences:
31.62 ms | 403 KiB | 5 Q