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($row['highlight']); print_r(implode('',array_slice($row, 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.88
8.3.50.0110.00822.05
8.3.40.0150.00018.88
8.3.30.0080.00618.96
8.3.20.0040.00420.16
8.3.10.0040.00423.44
8.3.00.0080.00019.25
8.2.180.0140.00318.41
8.2.170.0120.00622.96
8.2.160.0100.01020.44
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00222.25
8.2.110.0130.00722.16
8.2.100.0040.00717.91
8.2.90.0050.00319.02
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0000.00819.77
8.2.50.0040.00418.07
8.2.40.0040.00420.01
8.2.30.0000.00818.00
8.2.20.0000.00817.73
8.2.10.0040.00418.18
8.2.00.0070.00317.75
8.1.280.0120.00925.92
8.1.270.0000.00823.92
8.1.260.0050.00326.35
8.1.250.0020.00528.09
8.1.240.0000.00823.99
8.1.230.0080.00418.96
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0060.00317.13
8.1.180.0050.00318.10
8.1.170.0000.00818.64
8.1.160.0040.00422.07
8.1.150.0040.00418.55
8.1.140.0000.00717.47
8.1.130.0000.00717.75
8.1.120.0000.00717.35
8.1.110.0040.00417.47
8.1.100.0040.00417.48
8.1.90.0050.00217.46
8.1.80.0070.00017.45
8.1.70.0070.00017.48
8.1.60.0030.00517.47
8.1.50.0000.00817.54
8.1.40.0040.00417.40
8.1.30.0040.00417.58
8.1.20.0070.00017.69
8.1.10.0040.00417.51
8.1.00.0050.00317.47
8.0.300.0040.00420.73
8.0.290.0000.00717.18
8.0.280.0030.00318.41
8.0.270.0030.00317.11
8.0.260.0060.00017.26
8.0.250.0030.00316.95
8.0.240.0030.00317.02
8.0.230.0030.00517.04
8.0.220.0000.00816.94
8.0.210.0070.00016.99
8.0.200.0000.00716.91
8.0.190.0030.00617.01
8.0.180.0000.00716.88
8.0.170.0000.00716.89
8.0.160.0000.00716.95
8.0.150.0040.00416.89
8.0.140.0020.00516.86
8.0.130.0000.00713.34
8.0.120.0030.00616.95
8.0.110.0040.00416.96
8.0.100.0040.00417.00
8.0.90.0000.00716.84
8.0.80.0090.01216.95
8.0.70.0000.00716.82
8.0.60.0040.00416.84
8.0.50.0000.00716.82
8.0.30.0080.01117.23
8.0.20.0130.00917.40
8.0.10.0050.00316.90
8.0.00.0100.00816.81
7.4.330.0050.00015.00
7.4.320.0060.00016.65
7.4.300.0000.00616.61
7.4.290.0030.00316.51
7.4.280.0040.00416.41
7.4.270.0040.00416.37
7.4.260.0000.00716.61
7.4.250.0080.00016.53
7.4.240.0040.00416.58
7.4.230.0000.00716.50
7.4.220.0030.02216.71
7.4.210.0060.01116.66
7.4.200.0000.00716.39
7.4.190.0000.00716.60
7.4.160.0040.01216.45
7.4.150.0130.00317.40
7.4.140.0050.01217.86
7.4.130.0150.00216.50
7.4.120.0110.00716.56
7.4.110.0070.01016.41
7.4.100.0060.01316.53
7.4.90.0080.00816.43
7.4.80.0100.01319.39
7.4.70.0060.01216.49
7.4.60.0090.00716.54
7.4.50.0030.00616.58
7.4.40.0030.02016.63
7.4.30.0170.00016.38
7.4.00.0080.00614.95
7.3.330.0060.00013.37
7.3.320.0000.00513.33
7.3.310.0030.00316.43
7.3.300.0000.00616.39
7.3.290.0120.00316.35
7.3.280.0110.00616.37
7.3.270.0120.00917.40
7.3.260.0060.01616.36
7.3.250.0120.00516.45
7.3.240.0090.00616.57
7.3.230.0100.00716.52
7.3.210.0110.00616.52
7.3.200.0160.00719.39
7.3.190.0100.01316.57
7.3.180.0060.00916.45
7.3.170.0040.01216.40
7.3.160.0060.00816.35
7.3.120.0040.00814.95
7.2.330.0140.00316.43
7.2.320.0120.00616.65
7.2.310.0030.01316.68
7.2.300.0090.00616.71
7.2.290.0060.01216.70
7.2.00.0100.00619.50
7.1.200.0110.00315.91
7.1.100.0040.00817.97
7.1.70.0060.00317.20
7.1.60.0120.01219.46
7.1.50.0030.01317.02
7.1.00.0130.06722.32
7.0.200.1050.01014.66
7.0.140.0070.07022.21
7.0.60.0030.08319.87
7.0.50.0070.06017.81
7.0.40.0100.07320.09
7.0.30.0330.07720.21
7.0.20.0270.07720.13
7.0.10.0170.07720.21
7.0.00.0170.08020.32
5.6.280.0100.06321.09
5.6.210.0100.05320.72
5.6.200.0030.08318.12
5.6.190.0100.03720.27
5.6.180.0570.06020.41
5.6.170.0270.05320.41
5.6.160.0100.04320.51
5.6.150.0070.03718.18
5.6.140.0070.06318.17
5.6.130.0000.05018.10
5.6.120.0070.04320.93
5.6.110.0100.08021.01
5.6.100.0000.05320.98
5.6.90.0070.08020.98
5.6.80.0030.04320.35
5.5.350.0130.08020.32
5.5.340.0070.08717.91
5.5.330.0070.09020.15
5.5.320.0400.07720.34
5.5.310.0370.07720.31
5.5.300.0070.08017.88
5.5.290.0100.08317.93
5.5.280.0030.04320.87
5.5.270.0070.05320.74
5.5.260.0030.08020.67
5.5.250.0030.08020.62
5.5.240.0230.07720.14
5.4.450.0800.05719.49
5.4.440.0770.06019.40
5.4.430.0670.05319.27
5.4.420.0970.05019.12
5.4.410.0600.05719.34
5.4.400.0770.05319.22
5.4.390.0870.05719.10
5.4.380.0230.07018.70
5.4.370.0230.05318.59
5.4.360.0200.05718.54
5.4.350.0230.06318.72
5.4.340.0400.04318.63
5.4.320.0050.04012.46
5.4.310.0060.03912.45
5.4.300.0060.03812.46
5.4.290.0150.05312.43
5.4.280.0130.04512.33
5.4.270.0070.04012.34
5.4.260.0090.04112.33
5.4.250.0090.05412.33
5.4.240.0090.05012.33
5.4.230.0140.05812.32
5.4.220.0070.07512.33
5.4.210.0070.04412.33
5.4.200.0070.04312.33
5.4.190.0060.04512.32
5.4.180.0100.04112.32
5.4.170.0110.04012.34
5.4.160.0070.05212.33
5.4.150.0300.08412.32
5.4.140.0130.10112.01
5.4.130.0200.05412.00
5.4.120.0120.04811.96
5.4.110.0060.07411.95
5.4.100.0070.05311.95
5.4.90.0140.05711.95
5.4.80.0090.04811.95
5.4.70.0080.04311.95
5.4.60.0080.05211.95
5.4.50.0100.04411.95
5.4.40.0150.04111.94
5.4.30.0050.04111.94
5.4.20.0090.05111.94
5.4.10.0110.03711.93
5.4.00.0060.04811.43
5.3.290.0080.04112.80
5.3.280.0150.05312.71
5.3.270.0070.04112.72
5.3.260.0090.04212.72
5.3.250.0140.07512.72
5.3.240.0110.06312.72
5.3.230.0090.05812.71
5.3.220.0070.05912.68
5.3.210.0090.07112.68
5.3.200.0080.04612.68
5.3.190.0070.05312.68
5.3.180.0090.05612.67
5.3.170.0090.05212.67
5.3.160.0150.08812.68
5.3.150.0100.09112.67
5.3.140.0120.05012.66
5.3.130.0070.06212.66
5.3.120.0040.06512.66
5.3.110.0090.05712.66
5.3.100.0100.05112.12
5.3.90.0070.05612.08
5.3.80.0220.07812.08
5.3.70.0100.06012.07
5.3.60.0100.05612.06
5.3.50.0120.04712.00
5.3.40.0050.04512.00
5.3.30.0150.05611.95
5.3.20.0130.06711.73
5.3.10.0090.05411.69
5.3.00.0080.05011.68
5.2.170.0110.0829.19
5.2.160.0120.0589.19
5.2.150.0100.0909.18
5.2.140.0150.0759.18
5.2.130.0080.0429.14
5.2.120.0080.0389.14
5.2.110.0120.0359.15
5.2.100.0160.0559.15
5.2.90.0040.0379.14
5.2.80.0250.0729.14
5.2.70.0080.0419.14
5.2.60.0120.0749.09
5.2.50.0150.0559.06
5.2.40.0070.0549.04
5.2.30.0070.0499.02
5.2.20.0120.0559.00
5.2.10.0060.0408.92
5.2.00.0130.0578.79
5.1.60.0100.0538.07
5.1.50.0150.0908.07
5.1.40.0050.0378.05
5.1.30.0060.0338.40
5.1.20.0100.0588.43
5.1.10.0040.0338.15
5.1.00.0040.0328.15
5.0.50.0080.0296.63
5.0.40.0040.0246.49
5.0.30.0060.0586.30
5.0.20.0060.0286.28
5.0.10.0010.0246.25
5.0.00.0060.0376.25
4.4.90.0030.0244.78
4.4.80.0040.0284.75
4.4.70.0040.0244.75
4.4.60.0020.0264.76
4.4.50.0060.0234.77
4.4.40.0060.0364.71
4.4.30.0030.0244.75
4.4.20.0020.0264.85
4.4.10.0110.0394.84
4.4.00.0040.0444.76
4.3.110.0060.0234.67
4.3.100.0070.0344.67
4.3.90.0040.0194.63
4.3.80.0080.0374.58
4.3.70.0070.0254.63
4.3.60.0090.0414.63
4.3.50.0050.0234.62
4.3.40.0080.0364.54
4.3.30.0030.0193.30
4.3.20.0050.0183.27
4.3.10.0060.0173.23
4.3.00.0270.02310.55

preferences:
47 ms | 400 KiB | 5 Q