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['ageing_data'] 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.38
8.3.50.0090.00822.00
8.3.40.0110.00418.71
8.3.30.0070.00719.07
8.3.20.0070.00720.16
8.3.10.0070.00021.86
8.3.00.0080.00019.38
8.2.180.0040.01116.63
8.2.170.0100.01022.96
8.2.160.0000.01420.38
8.2.150.0060.00324.18
8.2.140.0100.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00422.24
8.2.110.0040.00721.17
8.2.100.0110.00017.91
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0080.00017.48
8.2.60.0080.00019.66
8.2.50.0050.00318.07
8.2.40.0050.00319.91
8.2.30.0000.00819.79
8.2.20.0080.00017.73
8.2.10.0040.00418.13
8.2.00.0040.00817.66
8.1.280.0070.00725.92
8.1.270.0090.00023.63
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0000.01123.91
8.1.230.0100.00022.88
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0000.00917.35
8.1.180.0090.00018.10
8.1.170.0040.00418.46
8.1.160.0070.00022.07
8.1.150.0070.00018.57
8.1.140.0000.00817.33
8.1.130.0030.00317.82
8.1.120.0070.00017.50
8.1.110.0030.00517.45
8.1.100.0000.00717.34
8.1.90.0040.00417.48
8.1.80.0030.00517.42
8.1.70.0030.00317.39
8.1.60.0030.00517.63
8.1.50.0000.00817.40
8.1.40.0000.00817.38
8.1.30.0080.00017.57
8.1.20.0070.00017.62
8.1.10.0040.00417.42
8.1.00.0040.00417.35
8.0.300.0040.00420.56
8.0.290.0080.00017.18
8.0.280.0040.00418.44
8.0.270.0000.00717.31
8.0.260.0030.00317.25
8.0.250.0000.00716.99
8.0.240.0030.00516.95
8.0.230.0000.00716.91
8.0.220.0040.00316.88
8.0.210.0030.00316.87
8.0.200.0040.00416.81
8.0.190.0030.00516.96
8.0.180.0040.00416.80
8.0.170.0030.00616.94
8.0.160.0040.00416.87
8.0.150.0040.00416.89
8.0.140.0030.00516.82
8.0.130.0060.00013.29
8.0.120.0040.00416.79
8.0.110.0070.00016.81
8.0.100.0070.00016.95
8.0.90.0000.00816.75
8.0.80.0090.00616.86
8.0.70.0020.00516.88
8.0.60.0040.00416.94
8.0.50.0000.00716.77
8.0.30.0130.00517.14
8.0.20.0130.00617.40
8.0.10.0070.00017.05
8.0.00.0070.01116.83
7.4.330.0020.00215.20
7.4.320.0060.00016.50
7.4.300.0060.00016.55
7.4.290.0000.00716.64
7.4.280.0050.00316.63
7.4.270.0040.00416.59
7.4.260.0030.00316.45
7.4.250.0040.00416.55
7.4.240.0030.00316.50
7.4.230.0070.00016.41
7.4.220.0070.01016.68
7.4.210.0050.01116.64
7.4.200.0050.00316.70
7.4.190.0040.00416.42
7.4.160.0080.01316.57
7.4.150.0080.00817.40
7.4.140.0060.01117.86
7.4.130.0080.00916.54
7.4.120.0080.01316.47
7.4.110.0110.00616.59
7.4.100.0070.01316.42
7.4.90.0130.00716.44
7.4.80.0080.01119.39
7.4.70.0120.00316.48
7.4.60.0040.01216.63
7.4.50.0060.00316.52
7.4.40.0090.01316.62
7.4.30.0110.00716.38
7.4.00.0070.01014.79
7.3.330.0000.00613.02
7.3.320.0030.00312.99
7.3.310.0030.00316.25
7.3.300.0030.00316.24
7.3.290.0170.00316.37
7.3.280.0060.01216.22
7.3.270.0090.00917.40
7.3.260.0140.00616.19
7.3.250.0100.00916.47
7.3.240.0100.01316.20
7.3.230.0100.00716.39
7.3.210.0100.00616.27
7.3.200.0080.01119.39
7.3.190.0030.01916.27
7.3.180.0120.00316.45
7.3.170.0060.00916.35
7.3.160.0060.01016.19
7.3.120.0070.01114.84
7.2.330.0060.01116.73
7.2.320.0060.01616.79
7.2.310.0030.01316.60
7.2.300.0070.01216.52
7.2.290.0040.01416.68
7.2.00.0100.01019.28
7.1.100.0040.00818.22
7.1.70.0070.00317.02
7.1.60.0070.01719.46
7.1.50.0120.00916.87
7.1.00.0030.07722.33
7.0.200.0320.00314.77
7.0.140.0000.07721.95
7.0.60.0070.07319.91
7.0.50.0000.05717.91
7.0.40.0070.08320.03
7.0.30.0230.05320.09
7.0.20.0230.07720.04
7.0.10.0100.08720.06
7.0.00.0100.07720.30
5.6.280.0000.07720.82
5.6.210.0070.08720.72
5.6.200.0100.04018.08
5.6.190.0070.08320.39
5.6.180.0200.05320.41
5.6.170.0300.07720.48
5.6.160.0000.05720.61
5.6.150.0030.05018.13
5.6.140.0100.06018.21
5.6.130.0030.04318.12
5.6.120.0000.05720.97
5.6.110.0070.07320.96
5.6.100.0170.07321.02
5.6.90.0100.08320.97
5.6.80.0070.08320.50
5.5.350.0230.08020.36
5.5.340.0070.07317.92
5.5.330.0100.07720.21
5.5.320.0370.06020.51
5.5.310.0400.07020.13
5.5.300.0070.06717.95
5.5.290.0130.07017.89
5.5.280.0400.05020.76
5.5.270.0100.03320.86
5.5.260.0030.04320.79
5.5.250.0000.09320.66
5.5.240.0100.04720.25
5.4.450.0730.04019.07
5.4.440.0830.04719.39
5.4.430.0870.03319.41
5.4.420.0700.04019.41
5.4.410.0830.04719.32
5.4.400.0930.03019.10
5.4.390.0830.03018.77
5.4.380.0530.04718.77
5.4.370.0370.05018.68
5.4.360.0430.04718.50
5.4.350.0400.05018.53
5.4.340.0330.06318.78
5.4.320.0060.03612.46
5.4.310.0050.04412.46
5.4.300.0050.03612.46
5.4.290.0170.06712.44
5.4.280.0150.07612.34
5.4.270.0180.07412.34
5.4.260.0260.09112.34
5.4.250.0160.09012.34
5.4.240.0060.05912.34
5.4.230.0120.07312.33
5.4.220.0140.05212.33
5.4.210.0180.07512.32
5.4.200.0120.07412.33
5.4.190.0100.03712.33
5.4.180.0060.04012.33
5.4.170.0070.03912.34
5.4.160.0090.03412.33
5.4.150.0090.03412.33
5.4.140.0110.03812.01
5.4.130.0060.03612.00
5.4.120.0070.03611.96
5.4.110.0060.03611.95
5.4.100.0130.04511.95
5.4.90.0120.07011.95
5.4.80.0090.07011.95
5.4.70.0120.08511.95
5.4.60.0090.05911.95
5.4.50.0100.04311.95
5.4.40.0130.07211.94
5.4.30.0080.05011.93
5.4.20.0150.09611.93
5.4.10.0090.06811.93
5.4.00.0110.05911.43
5.3.290.0060.04012.80
5.3.280.0130.06312.70
5.3.270.0080.06112.73
5.3.260.0130.08812.72
5.3.250.0120.05812.72
5.3.240.0210.09212.72
5.3.230.0090.05612.71
5.3.220.0210.05912.68
5.3.210.0200.06612.68
5.3.200.0120.06312.68
5.3.190.0080.05212.68
5.3.180.0110.05812.67
5.3.170.0080.06512.67
5.3.160.0070.08012.67
5.3.150.0110.05512.66
5.3.140.0160.07712.66
5.3.130.0140.07512.66
5.3.120.0120.05512.66
5.3.110.0090.08912.66
5.3.100.0070.05412.12
5.3.90.0120.05612.08
5.3.80.0150.06412.07
5.3.70.0070.09112.07
5.3.60.0120.06312.06
5.3.50.0060.04812.00
5.3.40.0100.07112.00
5.3.30.0150.09011.95
5.3.20.0130.08111.73
5.3.10.0130.07211.70
5.3.00.0150.07111.68
5.2.170.0110.0559.19
5.2.160.0120.0789.18
5.2.150.0130.0339.18
5.2.140.0090.0599.18
5.2.130.0120.0639.15
5.2.120.0090.0629.14
5.2.110.0110.0519.15
5.2.100.0120.0759.14
5.2.90.0070.0559.15
5.2.80.0120.0649.14
5.2.70.0260.0889.14
5.2.60.0180.0779.09
5.2.50.0160.0839.06
5.2.40.0230.1329.04
5.2.30.0220.1599.02
5.2.20.0150.0779.01
5.2.10.0130.0758.94
5.2.00.0080.0448.80
5.1.60.0140.0828.09
5.1.50.0140.0538.08
5.1.40.0050.0458.07
5.1.30.0100.0578.41
5.1.20.0120.0538.44
5.1.10.0060.0558.17
5.1.00.0130.0448.17
5.0.50.0080.0386.65
5.0.40.0100.0366.51
5.0.30.0050.0756.32
5.0.20.0110.0426.28
5.0.10.0090.0536.27
5.0.00.0130.0646.26
4.4.90.0050.0254.78
4.4.80.0050.0334.75
4.4.70.0100.0264.75
4.4.60.0120.0384.76
4.4.50.0110.0424.77
4.4.40.0150.0804.71
4.4.30.0170.0514.76
4.4.20.0120.0454.84
4.4.10.0060.0474.85
4.4.00.0120.0544.76
4.3.110.0160.0284.67
4.3.100.0050.0334.67
4.3.90.0090.0384.64
4.3.80.0070.0774.59
4.3.70.0040.0324.63
4.3.60.0050.0244.62
4.3.50.0090.0494.63
4.3.40.0070.0514.54
4.3.30.0140.0553.31
4.3.20.0080.0423.29
4.3.10.0070.0483.24
4.3.00.0000.01316.03

preferences:
36.09 ms | 401 KiB | 5 Q