3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array[] = array ( 'age' => 'Lower limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => 2, 'highlight' => false ); $array[] = array ( 'age' => 'Upper limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' =>3, 'highlight' => false ); $array[] = array ( 'age' => 'Limits:', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => null, 'highlight' => 1 ); $array[] = array ( 'age' => 'Freeze limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => 1, 'highlight' => false ); $array2 = array ( 'ageing_data' => $array, ); foreach ($array2 as $row) { print_r(array_slice($row, 1)); } //print_r(array_slice($array2,1)); //print_r(array_values(array_slice($array, 1))); //print_r(implode('', array_map(function ($entry) { // return $entry['red']; //}, array_slice($a,1)))); //print_r(implode('',array_values(array_slice($a, 1))));

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.0110.00716.50
8.3.50.0070.01018.18
8.3.40.0180.00418.72
8.3.30.0100.00319.09
8.3.20.0040.01120.16
8.3.10.0020.00522.02
8.3.00.0080.00019.26
8.2.180.0070.01416.63
8.2.170.0110.00422.96
8.2.160.0030.01320.52
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0000.00722.13
8.2.110.0060.00321.98
8.2.100.0110.00017.78
8.2.90.0040.00419.26
8.2.80.0000.00817.97
8.2.70.0040.00417.37
8.2.60.0000.00917.80
8.2.50.0040.00418.07
8.2.40.0040.00419.88
8.2.30.0040.00420.05
8.2.20.0040.00417.74
8.2.10.0000.00819.84
8.2.00.0070.00417.82
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.89
8.1.230.0070.00319.03
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0050.00517.36
8.1.190.0060.00317.23
8.1.180.0050.00518.10
8.1.170.0030.00618.56
8.1.160.0040.00421.93
8.1.150.0040.00418.55
8.1.140.0050.00217.51
8.1.130.0030.00317.76
8.1.120.0030.00617.48
8.1.110.0030.00517.53
8.1.100.0000.00717.44
8.1.90.0000.00817.38
8.1.80.0030.00517.33
8.1.70.0030.00317.39
8.1.60.0000.00817.63
8.1.50.0060.00317.42
8.1.40.0040.00417.43
8.1.30.0090.00017.58
8.1.20.0000.00817.55
8.1.10.0040.00417.44
8.1.00.0040.00417.45
8.0.300.0070.00020.71
8.0.290.0000.00717.05
8.0.280.0030.00318.39
8.0.270.0030.00317.16
8.0.260.0030.00317.17
8.0.250.0000.00717.00
8.0.240.0000.00716.97
8.0.230.0000.00716.94
8.0.220.0000.00716.89
8.0.210.0070.00016.81
8.0.200.0030.00316.93
8.0.190.0060.00316.98
8.0.180.0050.00316.82
8.0.170.0000.00816.98
8.0.160.0040.00417.00
8.0.150.0000.00816.87
8.0.140.0030.00516.82
8.0.130.0060.00013.38
8.0.120.0000.00716.75
8.0.110.0030.00316.88
8.0.100.0070.00016.76
8.0.90.0030.00316.95
8.0.80.0090.00616.94
8.0.70.0030.00416.77
8.0.60.0050.00216.77
8.0.50.0030.00516.80
8.0.30.0110.00717.04
8.0.20.0060.01117.40
8.0.10.0080.00016.97
8.0.00.0100.00816.56
7.4.330.0000.00515.00
7.4.320.0000.00616.60
7.4.300.0030.00316.65
7.4.290.0030.00316.61
7.4.280.0100.00016.52
7.4.270.0030.00316.51
7.4.260.0000.00716.50
7.4.250.0000.00816.50
7.4.240.0020.00616.56
7.4.230.0000.00716.59
7.4.220.0070.01116.41
7.4.210.0080.00616.65
7.4.200.0030.00316.51
7.4.190.0030.00316.70
7.4.160.0090.01216.64
7.4.150.0070.01117.40
7.4.140.0130.00417.86
7.4.130.0090.01016.35
7.4.120.0050.01516.50
7.4.110.0170.00016.58
7.4.100.0150.00316.48
7.4.90.0170.00016.40
7.4.80.0100.01319.39
7.4.70.0070.01016.31
7.4.60.0030.01316.52
7.4.50.0060.00316.34
7.4.40.0090.00616.52
7.4.30.0100.01016.58
7.4.00.0070.00714.80
7.3.330.0060.00013.18
7.3.320.0030.00313.03
7.3.310.0030.00316.27
7.3.300.0070.00016.23
7.3.290.0100.01016.30
7.3.280.0100.00916.39
7.3.270.0130.00317.40
7.3.260.0090.01416.28
7.3.250.0110.01316.35
7.3.240.0100.00716.41
7.3.230.0100.00716.45
7.3.210.0060.01516.66
7.3.200.0070.01019.39
7.3.190.0090.01216.22
7.3.180.0080.00816.21
7.3.170.0100.00716.33
7.3.160.0030.01216.32
7.3.120.0070.01014.79
7.2.330.0100.00716.73
7.2.320.0040.01216.57
7.2.310.0110.00616.52
7.2.300.0060.01116.68
7.2.290.0080.01116.70
7.2.00.0000.01419.45
7.1.100.0040.00818.23
7.1.70.0110.00017.26
7.1.60.0170.00719.46
7.1.50.0060.01316.89
7.1.00.0070.07322.36
7.0.200.0270.00014.84
7.0.140.0070.06722.09
7.0.60.0030.04020.01
7.0.50.0070.04017.89
7.0.40.0070.05720.02
7.0.30.0330.07020.04
7.0.20.0200.04020.20
7.0.10.0130.08020.26
7.0.00.0070.08320.20
5.6.280.0030.07321.04
5.6.210.0100.06320.57
5.6.200.0100.08318.14
5.6.190.0030.07320.49
5.6.180.0400.05320.52
5.6.170.0370.07720.47
5.6.160.0100.08720.54
5.6.150.0000.04018.16
5.6.140.0100.08018.21
5.6.130.0100.08318.14
5.6.120.0070.04320.99
5.6.110.0000.04320.93
5.6.100.0030.09020.99
5.6.90.0170.07021.07
5.6.80.0130.06020.38
5.5.350.0030.08320.44
5.5.340.0130.05018.08
5.5.330.0100.05720.31
5.5.320.0000.05720.30
5.5.310.0300.07720.36
5.5.300.0100.08018.07
5.5.290.0030.08717.98
5.5.280.0070.08320.77
5.5.270.0070.04720.95
5.5.260.0130.07020.87
5.5.250.0070.03720.57
5.5.240.0070.07720.36
5.4.450.0130.05319.59
5.4.440.0770.05719.34
5.4.430.0570.05019.16
5.4.420.0700.00019.36
5.4.410.0100.05718.72
5.4.400.0100.06018.77
5.4.390.1870.05018.56
5.4.380.0230.05718.78
5.4.370.0070.04018.71
5.4.360.0130.04018.66
5.4.350.0070.04012.01
5.4.340.0090.03512.00
5.4.320.0060.05212.49
5.4.310.0050.03812.48
5.4.300.0100.03512.48
5.4.290.0080.05012.46
5.4.280.0090.05012.37
5.4.270.0090.05412.36
5.4.260.0090.05112.36
5.4.250.0100.04912.37
5.4.240.0170.08712.36
5.4.230.0110.05112.36
5.4.220.0040.04112.36
5.4.210.0060.03912.36
5.4.200.0070.05212.36
5.4.190.0170.08412.36
5.4.180.0080.04512.35
5.4.170.0060.03812.36
5.4.160.0060.03712.36
5.4.150.0060.03712.36
5.4.140.0120.03412.04
5.4.130.0070.04612.03
5.4.120.0090.03511.98
5.4.110.0110.07111.98
5.4.100.0090.03511.98
5.4.90.0130.04711.98
5.4.80.0230.06511.98
5.4.70.0090.05711.98
5.4.60.0130.04911.98
5.4.50.0100.04911.98
5.4.40.0140.05811.97
5.4.30.0100.05411.96
5.4.20.0140.04511.97
5.4.10.0180.05311.97
5.4.00.0070.05111.46
5.3.290.0070.04712.80
5.3.280.0100.04312.71
5.3.270.0140.04812.72
5.3.260.0120.04312.72
5.3.250.0100.03912.72
5.3.240.0100.04612.71
5.3.230.0090.04612.71
5.3.220.0070.03812.68
5.3.210.0090.03712.68
5.3.200.0120.04212.68
5.3.190.0110.04012.68
5.3.180.0110.03612.67
5.3.170.0100.04112.67
5.3.160.0140.03212.68
5.3.150.0090.03912.67
5.3.140.0110.03512.66
5.3.130.0100.03812.66
5.3.120.0070.05812.66
5.3.110.0080.05812.65
5.3.100.0090.03912.12
5.3.90.0060.05612.09
5.3.80.0090.05212.08
5.3.70.0130.03512.09
5.3.60.0060.03712.07
5.3.50.0070.03712.02
5.3.40.0080.04512.02
5.3.30.0090.03711.97
5.3.20.0110.04811.75
5.3.10.0150.05911.72
5.3.00.0130.05311.71
5.2.170.0120.0459.21
5.2.160.0110.0399.21
5.2.150.0170.0579.21
5.2.140.0150.0619.21
5.2.130.0120.0479.17
5.2.120.0120.0839.17
5.2.110.0160.0539.17
5.2.100.0150.0459.17
5.2.90.0090.0479.17
5.2.80.0050.0429.16
5.2.70.0120.0389.17
5.2.60.0060.0399.13
5.2.50.0120.0419.09
5.2.40.0090.0469.06
5.2.30.0110.0389.04
5.2.20.0080.0309.03
5.2.10.0080.0308.94
5.2.00.0050.0328.80
5.1.60.0060.0268.09
5.1.50.0140.0268.08
5.1.40.0090.0388.06
5.1.30.0100.0428.41
5.1.20.0130.0528.44
5.1.10.0070.0268.16
5.1.00.0120.0538.15
5.0.50.0070.0396.64
5.0.40.0060.0226.50
5.0.30.0050.0316.32
5.0.20.0040.0216.29
5.0.10.0040.0256.27
5.0.00.0050.0426.26
4.4.90.0080.0344.78
4.4.80.0040.0244.75
4.4.70.0140.0284.75
4.4.60.0040.0174.76
4.4.50.0060.0154.77
4.4.40.0060.0264.71
4.4.30.0060.0254.76
4.4.20.0070.0244.85
4.4.10.0010.0184.85
4.4.00.0020.0264.76
4.3.110.0010.0194.67
4.3.100.0030.0174.67
4.3.90.0060.0214.63
4.3.80.0030.0264.58
4.3.70.0090.0204.63
4.3.60.0080.0314.63
4.3.50.0080.0264.63
4.3.40.0040.0634.54
4.3.30.0050.0223.31
4.3.20.0050.0213.29
4.3.10.0020.0233.25
4.3.00.0070.0236.92

preferences:
43.55 ms | 400 KiB | 5 Q