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(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.0170.00016.63
8.3.50.0080.00722.04
8.3.40.0140.00418.96
8.3.30.0140.00018.95
8.3.20.0040.00420.31
8.3.10.0080.00023.79
8.3.00.0090.00619.51
8.2.180.0120.00316.50
8.2.170.0070.01022.96
8.2.160.0070.01020.45
8.2.150.0000.00824.18
8.2.140.0100.00024.66
8.2.130.0000.00826.16
8.2.120.0070.00022.25
8.2.110.0070.00320.78
8.2.100.0060.00617.91
8.2.90.0060.00319.40
8.2.80.0000.00917.97
8.2.70.0030.00517.75
8.2.60.0000.00918.05
8.2.50.0040.00418.07
8.2.40.0060.00319.95
8.2.30.0030.00519.91
8.2.20.0080.00017.87
8.2.10.0040.00418.08
8.2.00.0030.00917.71
8.1.280.0040.01125.92
8.1.270.0050.00323.96
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0070.01422.77
8.1.230.0100.00017.95
8.1.220.0000.00717.74
8.1.210.0060.00318.77
8.1.200.0100.00017.48
8.1.190.0080.00017.22
8.1.180.0090.00018.10
8.1.170.0040.00418.48
8.1.160.0000.00822.01
8.1.150.0040.00418.60
8.1.140.0000.00717.50
8.1.130.0070.00017.83
8.1.120.0030.00517.48
8.1.110.0000.00817.46
8.1.100.0030.00517.46
8.1.90.0040.00417.37
8.1.80.0050.00317.37
8.1.70.0070.00017.37
8.1.60.0030.00617.56
8.1.50.0050.00317.39
8.1.40.0050.00317.46
8.1.30.0030.00617.62
8.1.20.0000.00717.60
8.1.10.0050.00217.50
8.1.00.0000.00717.58
8.0.300.0080.00018.84
8.0.290.0040.00416.75
8.0.280.0000.00718.32
8.0.270.0030.00317.26
8.0.260.0030.00317.20
8.0.250.0070.00016.89
8.0.240.0000.00717.04
8.0.230.0070.00016.91
8.0.220.0000.00716.89
8.0.210.0070.00017.02
8.0.200.0000.00716.91
8.0.190.0040.00416.96
8.0.180.0040.00416.97
8.0.170.0000.00716.88
8.0.160.0000.00716.89
8.0.150.0040.00416.77
8.0.140.0030.00616.93
8.0.130.0060.00013.35
8.0.120.0000.00816.83
8.0.110.0030.00516.93
8.0.100.0040.00416.95
8.0.90.0030.00516.86
8.0.80.0110.01116.91
8.0.70.0030.00416.75
8.0.60.0000.00716.99
8.0.50.0050.00316.95
8.0.30.0070.01417.31
8.0.20.0120.00817.40
8.0.10.0000.00717.09
8.0.00.0100.01416.66
7.4.330.0020.00215.00
7.4.320.0030.00316.61
7.4.300.0030.00316.55
7.4.290.0070.00016.49
7.4.280.0000.00716.49
7.4.270.0030.00316.61
7.4.260.0000.00716.49
7.4.250.0050.00316.37
7.4.240.0040.00416.51
7.4.230.0030.00316.60
7.4.220.0140.00316.59
7.4.210.0050.01116.50
7.4.200.0030.00316.59
7.4.190.0000.00716.46
7.4.160.0090.00616.47
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0070.00916.56
7.4.120.0120.00416.57
7.4.110.0130.00316.58
7.4.100.0090.00916.47
7.4.90.0030.01616.61
7.4.80.0160.00619.39
7.4.70.0100.00616.61
7.4.60.0060.01116.54
7.4.50.0060.00316.36
7.4.40.0030.01316.42
7.4.30.0080.01216.66
7.4.00.0050.01014.99
7.3.330.0000.00613.33
7.3.320.0000.00513.31
7.3.310.0050.00316.37
7.3.300.0040.00416.44
7.3.290.0100.00616.41
7.3.280.0070.00916.38
7.3.270.0100.01017.40
7.3.260.0090.00916.42
7.3.250.0170.00016.48
7.3.240.0070.01016.63
7.3.230.0130.00716.61
7.3.210.0170.00016.57
7.3.200.0070.01119.39
7.3.190.0050.00816.32
7.3.180.0110.00416.41
7.3.170.0040.01116.63
7.3.160.0090.00616.45
7.3.120.0040.01014.70
7.3.110.0080.00414.94
7.3.100.0100.00614.60
7.3.90.0040.00714.69
7.3.80.0070.00714.70
7.3.70.0040.00414.54
7.3.60.0070.00714.82
7.3.50.0000.01514.70
7.3.40.0070.00714.54
7.3.30.0070.00714.97
7.3.20.0100.00616.36
7.3.10.0090.00516.42
7.3.00.0080.00516.58
7.2.330.0100.00716.42
7.2.320.0100.00716.68
7.2.310.0040.01416.52
7.2.300.0070.01116.41
7.2.290.0130.01116.68
7.2.250.0090.00915.10
7.2.240.0070.01015.13
7.2.230.0130.00314.92
7.2.220.0000.01615.04
7.2.210.0030.01314.91
7.2.200.0000.01014.90
7.2.190.0030.01415.07
7.2.180.0030.01015.00
7.2.170.0100.00715.25
7.2.130.0030.00716.62
7.2.120.0030.00916.98
7.2.110.0070.00717.04
7.2.100.0030.01016.85
7.2.90.0030.01017.00
7.2.80.0100.00317.02
7.2.70.0080.00416.87
7.2.60.0100.00716.91
7.2.50.0040.01117.03
7.2.40.0000.01216.68
7.2.30.0030.01016.66
7.2.20.0030.01116.46
7.2.10.0030.01016.62
7.2.00.0080.00918.09
7.1.330.0000.01515.94
7.1.320.0000.01016.10
7.1.310.0070.00715.61
7.1.300.0070.00715.89
7.1.290.0040.01115.52
7.1.280.0030.01015.86
7.1.270.0000.01015.61
7.1.260.0080.00416.00
7.1.250.0040.01115.73
7.1.100.0030.01018.17
7.1.70.0000.00817.19
7.1.60.0100.01419.46
7.1.50.0100.00716.70
7.1.00.0070.07322.44
7.0.200.0120.00614.68
7.0.140.0070.06721.94
7.0.60.0130.08020.08
7.0.50.0100.07717.66
7.0.40.0070.05320.07
7.0.30.0230.04020.21
7.0.20.0330.04320.13
7.0.10.0130.08020.04
7.0.00.0130.07720.14
5.6.280.0100.09320.78
5.6.210.0070.03720.54
5.6.200.0030.05018.16
5.6.190.0200.06320.61
5.6.180.0670.05720.41
5.6.170.0400.07320.48
5.6.160.0130.07720.52
5.6.150.0070.03718.07
5.6.140.0100.05018.18
5.6.130.0030.08318.17
5.6.120.0000.08021.05
5.6.110.0070.07321.00
5.6.100.0130.07720.98
5.6.90.0070.05320.96
5.6.80.0070.07720.53
5.5.350.0300.07020.42
5.5.340.0130.07717.93
5.5.330.0000.04320.25
5.5.320.0070.07720.20
5.5.310.0300.03720.20
5.5.300.0030.03717.91
5.5.290.0130.07318.00
5.5.280.0070.08320.77
5.5.270.0170.08020.74
5.5.260.0100.08320.71
5.5.250.0130.06020.65
5.5.240.0270.06720.03
5.4.450.0270.06019.28
5.4.440.0370.04319.10
5.4.430.0170.05319.10
5.4.420.0170.05319.47
5.4.410.0170.05719.37
5.4.400.0170.05319.14
5.4.390.0270.07019.16
5.4.380.0170.06718.63
5.4.370.0530.04718.66
5.4.360.0400.07718.59
5.4.350.0330.06018.63
5.4.340.0370.04318.59
5.4.320.0040.03612.45
5.4.310.0120.04912.45
5.4.300.0040.03812.45
5.4.290.0120.05612.44
5.4.280.0130.08412.34
5.4.270.0190.11012.34
5.4.260.0070.06212.33
5.4.250.0140.09512.34
5.4.240.0080.06212.33
5.4.230.0160.07912.32
5.4.220.0100.11312.33
5.4.210.0180.09812.33
5.4.200.0190.15912.32
5.4.190.0070.05212.32
5.4.180.0100.10712.32
5.4.170.0180.07012.33
5.4.160.0100.04812.33
5.4.150.0280.06512.32
5.4.140.0130.07612.01
5.4.130.0090.07512.00
5.4.120.0130.04411.95
5.4.110.0170.07111.96
5.4.100.0160.11011.95
5.4.90.0090.06511.95
5.4.80.0070.06211.95
5.4.70.0200.07711.95
5.4.60.0130.07111.95
5.4.50.0060.04611.95
5.4.40.0080.05811.94
5.4.30.0090.05611.93
5.4.20.0150.07511.94
5.4.10.0100.05011.94
5.4.00.0070.05211.43
5.3.290.0090.05412.80
5.3.280.0140.10912.71
5.3.270.0110.09212.72
5.3.260.0230.08712.72
5.3.250.0110.05412.72
5.3.240.0090.04612.72
5.3.230.0170.05812.71
5.3.220.0110.03812.68
5.3.210.0080.04312.68
5.3.200.0090.05912.68
5.3.190.0140.04812.68
5.3.180.0110.05712.67
5.3.170.0140.06712.67
5.3.160.0180.07612.67
5.3.150.0210.08012.67
5.3.140.0170.09012.66
5.3.130.0120.06312.66
5.3.120.0070.05212.66
5.3.110.0140.07912.66
5.3.100.0140.07612.12
5.3.90.0100.08712.09
5.3.80.0120.09212.07
5.3.70.0200.08412.08
5.3.60.0170.07812.07
5.3.50.0150.07712.00
5.3.40.0180.06812.00
5.3.30.0140.08611.95
5.3.20.0110.06511.73
5.3.10.0100.07011.69
5.3.00.0140.07611.68
5.2.170.0110.0439.19
5.2.160.0140.0549.18
5.2.150.0090.0579.19
5.2.140.0070.0509.18
5.2.130.0100.0589.14
5.2.120.0090.0559.14
5.2.110.0150.0499.15
5.2.100.0060.0609.14
5.2.90.0110.0419.14
5.2.80.0120.0619.14
5.2.70.0100.0469.14
5.2.60.0200.0629.09
5.2.50.0070.0459.07
5.2.40.0060.0789.04
5.2.30.0040.0489.01
5.2.20.0070.0469.00
5.2.10.0100.0428.93
5.2.00.0090.0448.79
5.1.60.0050.0408.06
5.1.50.0090.0368.07
5.1.40.0060.0408.05
5.1.30.0090.0398.39
5.1.20.0040.0458.43
5.1.10.0110.0358.15
5.1.00.0050.0438.15
5.0.50.0090.0286.63
5.0.40.0060.0306.49
5.0.30.0030.0496.30
5.0.20.0080.0276.28
5.0.10.0050.0326.25
5.0.00.0070.0426.24
4.4.90.0180.0264.78
4.4.80.0030.0284.76
4.4.70.0040.0254.76
4.4.60.0050.0254.75
4.4.50.0060.0304.77
4.4.40.0030.0414.70
4.4.30.0030.0284.75
4.4.20.0030.0284.84
4.4.10.0050.0254.85
4.4.00.0060.0404.76
4.3.110.0030.0294.67
4.3.100.0020.0294.66
4.3.90.0040.0244.63
4.3.80.0060.0344.58
4.3.70.0020.0284.63
4.3.60.0030.0244.63
4.3.50.0090.0194.63
4.3.40.0030.0384.54
4.3.30.0050.0223.30
4.3.20.0030.0243.27
4.3.10.0020.0253.23
4.3.00.0270.01310.55

preferences:
40.83 ms | 401 KiB | 5 Q