3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pageNumber = 1; $pageHeight = 7; $commands = [ "foo" => ["name" => "foo", "desc" => "Foo Desc", "perm" => true], "fuu" => ["name" => "fuu", "desc" => "Fuu Desc", "perm" => false], "bar" => ["name" => "bar", "desc" => "Foo Desc", "perm" => true], ]; ksort($commands, SORT_NATURAL | SORT_FLAG_CASE); $commands = array_chunk($commands, $pageHeight); $pageNumber = (int) min(count($commands), $pageNumber); printf("PageNumber=%d, CountCommands=%d", $pageNumber, count($commands)); foreach($commands[$pageNumber - 1] as $command){ printf("Name=%s, Desc=%s", $command["name"], $command["desc"]); }

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.0090.00918.31
8.3.50.0040.01116.37
8.3.40.0040.01118.50
8.3.30.0130.00318.52
8.3.20.0040.00420.73
8.3.10.0080.00021.77
8.3.00.0050.00517.64
8.2.180.0100.01018.29
8.2.170.0110.00422.96
8.2.160.0070.00720.52
8.2.150.0000.00825.66
8.2.140.0140.00424.66
8.2.130.0040.00421.18
8.2.120.0070.00026.35
8.2.110.0060.00321.17
8.2.100.0040.00817.91
8.2.90.0040.00419.57
8.2.80.0000.00918.03
8.2.70.0060.00317.50
8.2.60.0000.00917.75
8.2.50.0040.00417.63
8.2.40.0000.00818.05
8.2.30.0040.00419.21
8.2.20.0040.00418.17
8.2.10.0040.00418.05
8.2.00.0040.00417.73
8.1.280.0030.01025.92
8.1.270.0040.00423.83
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0050.00323.84
8.1.230.0040.00720.97
8.1.220.0000.00817.77
8.1.210.0050.00318.77
8.1.200.0050.00317.22
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0040.00417.62
8.1.160.0000.00718.95
8.1.150.0040.00418.61
8.1.140.0000.00819.48
8.1.130.0030.00318.89
8.1.120.0040.00417.50
8.1.110.0040.00417.48
8.1.100.0040.00417.52
8.1.90.0030.00517.43
8.1.80.0000.00817.48
8.1.70.0030.00617.38
8.1.60.0000.00817.68
8.1.50.0000.00717.57
8.1.40.0080.00017.55
8.1.30.0090.00017.58
8.1.20.0040.00417.66
8.1.10.0040.00417.49
8.1.00.0030.00617.54
8.0.300.0000.00820.03
8.0.290.0040.00416.75
8.0.280.0000.00718.49
8.0.270.0000.00717.29
8.0.260.0000.00917.27
8.0.250.0050.00316.97
8.0.240.0040.00417.01
8.0.230.0050.00317.02
8.0.220.0070.00016.78
8.0.210.0050.00216.85
8.0.200.0000.00616.83
8.0.190.0090.00016.86
8.0.180.0050.00216.84
8.0.170.0000.00816.99
8.0.160.0030.00316.95
8.0.150.0050.00316.82
8.0.140.0070.00016.76
8.0.130.0030.00313.36
8.0.120.0050.00316.74
8.0.110.0040.00416.94
8.0.100.0000.00716.88
8.0.90.0070.00016.96
8.0.80.0000.01516.91
8.0.70.0080.00016.82
8.0.60.0040.00416.73
8.0.50.0000.00716.76
8.0.30.0050.01217.06
8.0.20.0140.00917.40
8.0.10.0000.00716.92
8.0.00.0170.00716.77
7.4.330.0050.00015.55
7.4.320.0030.00316.61
7.4.300.0060.00016.43
7.4.290.0000.00716.53
7.4.280.0040.00416.64
7.4.270.0040.00416.44
7.4.260.0030.00316.41
7.4.250.0000.00716.50
7.4.240.0060.00316.59
7.4.230.0000.00716.64
7.4.220.0070.01716.51
7.4.210.0060.00816.43
7.4.200.0040.00316.60
7.4.160.0140.00716.57
7.4.150.0110.01117.40
7.4.140.0050.01617.86
7.4.130.0100.00816.54
7.4.120.0110.00616.53
7.4.110.0110.01116.56
7.4.100.0100.00716.36
7.4.90.0070.01016.64
7.4.80.0070.01019.39
7.4.70.0080.01216.43
7.4.60.0090.01316.52
7.4.50.0070.01016.43
7.4.40.0270.02216.66
7.4.30.0150.00716.42
7.4.00.0070.01014.90
7.3.330.0000.00513.07
7.3.320.0050.00013.09
7.3.310.0000.00716.12
7.3.300.0070.00016.39
7.3.290.0050.01116.24
7.3.280.0090.00516.31
7.3.270.0140.00317.40
7.3.260.0070.01016.31
7.3.250.0090.01116.33
7.3.240.0090.00716.48
7.3.230.0030.01316.39
7.3.210.0070.01016.27
7.3.200.0090.00916.51
7.3.190.0060.00916.37
7.3.180.0120.00316.38
7.3.170.0060.01316.55
7.3.160.0090.01316.34
7.3.120.0030.01314.69
7.3.110.0090.00814.74
7.3.100.0060.01114.83
7.3.90.0080.00614.81
7.3.80.0070.00514.80
7.3.70.0090.00914.93
7.3.60.0090.00514.84
7.3.50.0030.01014.60
7.3.40.0040.00914.76
7.3.30.0050.01014.71
7.3.20.0050.00716.61
7.3.10.0030.01116.61
7.3.00.0070.00716.61
7.2.330.0130.00316.70
7.2.320.0070.01316.80
7.2.310.0140.00716.51
7.2.300.0090.00916.84
7.2.290.0030.01316.51
7.2.250.0070.01215.19
7.2.240.0020.01515.02
7.2.230.0110.00415.05
7.2.220.0070.00715.16
7.2.210.0070.00914.92
7.2.200.0070.00614.94
7.2.190.0060.00815.08
7.2.180.0080.00614.86
7.2.170.0060.00915.04
7.2.160.0000.01414.98
7.2.150.0040.01116.80
7.2.140.0070.01016.72
7.2.130.0110.00616.84
7.2.120.0120.00016.75
7.2.110.0060.00816.61
7.2.100.0160.00316.45
7.2.90.0030.01217.01
7.2.80.0070.00716.97
7.2.70.0000.01516.97
7.2.60.0090.00516.72
7.2.50.0070.00716.68
7.2.40.0060.00316.93
7.2.30.0030.01016.57
7.2.20.0040.00916.57
7.2.10.0030.00916.84
7.2.00.0040.01416.97
7.1.330.0050.00715.60
7.1.320.0110.00315.80
7.1.310.0090.00515.77
7.1.300.0080.00715.62
7.1.290.0090.00515.73
7.1.280.0050.00915.65
7.1.270.0110.00215.55
7.1.260.0070.00515.72
7.1.250.0040.00815.59
7.1.240.0040.01115.78
7.1.230.0040.00915.59
7.1.220.0090.00315.87
7.1.210.0070.00415.41
7.1.200.0060.00815.65
7.1.190.0080.00815.56
7.1.180.0000.01115.55
7.1.170.0070.01115.54
7.1.160.0060.00915.73
7.1.150.0090.00615.64
7.1.140.0040.01215.70
7.1.130.0140.00415.63
7.1.120.0090.00015.79
7.1.110.0100.00015.77
7.1.100.0060.00615.85
7.1.90.0030.01515.79
7.1.80.0040.01115.73
7.1.70.0070.00416.56
7.1.60.0060.00816.55
7.1.50.0040.01115.68
7.1.40.0030.00715.68
7.1.30.0030.01315.76
7.1.20.0090.00515.88
7.1.10.0040.01215.76
7.1.00.0110.03219.10
7.0.330.0040.01215.21
7.0.320.0060.00615.04
7.0.310.0080.00815.36
7.0.300.0060.00915.34
7.0.290.0030.01315.00
7.0.280.0030.00915.17
7.0.270.0090.00315.20
7.0.260.0040.00415.29
7.0.250.0100.00615.13
7.0.240.0030.01415.46
7.0.230.0040.00915.39
7.0.220.0060.00615.48
7.0.210.0030.00915.26
7.0.200.0270.00714.94
7.0.190.0030.01415.08
7.0.180.0100.00315.45
7.0.170.0070.00715.41
7.0.160.0060.00615.26
7.0.150.0070.00815.35
7.0.140.0120.03518.67
7.0.130.0070.03118.84
7.0.120.0080.04118.64
7.0.110.0020.04518.71
7.0.100.0080.03018.72
7.0.90.0070.03518.55
7.0.80.0070.03618.59
7.0.70.0130.03818.82
7.0.60.0030.03318.58
7.0.50.0060.04318.67
7.0.40.0100.02817.75
7.0.30.0080.04217.76
7.0.20.0070.03317.77
7.0.10.0030.03417.79
7.0.00.0030.03917.78
5.6.400.0080.00314.40
5.6.390.0120.00614.20
5.6.380.0030.01014.59
5.6.370.0030.01314.67
5.6.360.0040.01114.40
5.6.350.0000.00914.40
5.6.340.0030.01314.23
5.6.330.0060.00614.39
5.6.320.0070.00714.25
5.6.310.0090.00414.12
5.6.300.0030.01314.36
5.6.290.0060.04517.44
5.6.280.0050.03517.56
5.6.270.0070.03717.52
5.6.260.0100.04317.62
5.6.250.0080.03517.77
5.6.240.0120.03217.45
5.6.230.0070.04417.58
5.6.220.0090.03717.55
5.6.210.0030.03617.67
5.6.200.0160.03617.55
5.6.190.0160.03217.54
5.6.180.0120.03217.48
5.6.170.0100.03217.78
5.6.160.0090.04017.82
5.6.150.0130.03617.58
5.6.140.0090.03817.74
5.6.130.0070.02917.82
5.6.120.0050.03417.46
5.6.110.0050.03617.71
5.6.100.0010.03917.50
5.6.90.0100.03717.67
5.6.80.0050.03317.10
5.6.70.0110.03017.34
5.6.60.0100.02817.27
5.6.50.0110.03717.16
5.6.40.0100.02817.28
5.6.30.0050.03317.38
5.6.20.0110.02917.18
5.6.10.0080.03017.30
5.6.00.0060.03017.20

preferences:
61.67 ms | 400 KiB | 5 Q