3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* < [1] 2 3 ... 22 23 > < 1 [2] 3 ... 22 23 > < 1 2 [3] 4 ... 22 23 > < 1 2 3 [4] 5 ... 22 23 > < 1 2 ... 4 [5] 6 ... 22 23 > < 1 2 ... 5 [6] 7 ... 22 23 > ... < 1 2 ... 18 [19] 20 ... 22 23 > */ $currentpageid = $nmstart = 0; $nrtotal = 23; $nrposts = 1; $pages = ''; $ssPagingStartCount = 3; $ssPagingCurrentCount = 3; $ssPagingEndCount = 2; $totalpages = ceil($nrtotal / $nrposts); if ($totalpages > 1 ){ for ($x = 0; $x < $totalpages; ++$x) { $inc = $x * $nrposts; $display = $x + 1; if($inc != $nmstart) { $pages .= "\n<a class=\"nl_page\" href='" . "nmstart=$inc'>".$display."</a>"; } else { $pages .= "\n<span class=\"nl_page nl_page__currentpage\">".$display."</span>"; } } } var_dump($pages); ?>

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.0070.01416.75
8.3.50.0130.00921.91
8.3.40.0090.00918.81
8.3.30.0110.00319.04
8.3.20.0040.00420.34
8.3.10.0040.00421.80
8.3.00.0080.00019.38
8.2.180.0160.00616.38
8.2.170.0070.01022.96
8.2.160.0070.00720.43
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.78
8.2.110.0100.00020.98
8.2.100.0070.00417.75
8.2.90.0000.00719.43
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0000.00819.95
8.2.30.0000.00718.32
8.2.20.0030.00617.76
8.2.10.0080.00018.31
8.2.00.0040.00417.93
8.1.280.0120.00325.92
8.1.270.0080.00020.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.84
8.1.230.0030.00918.97
8.1.220.0000.00817.88
8.1.210.0040.00418.77
8.1.200.0100.00017.48
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0070.00418.71
8.1.160.0030.00621.98
8.1.150.0040.00418.91
8.1.140.0080.00017.51
8.1.130.0030.00317.89
8.1.120.0000.00717.41
8.1.110.0000.00717.50
8.1.100.0050.00317.39
8.1.90.0000.00717.50
8.1.80.0070.00017.54
8.1.70.0000.00717.54
8.1.60.0030.00617.57
8.1.50.0080.00017.41
8.1.40.0040.00417.47
8.1.30.0000.00917.75
8.1.20.0000.00817.70
8.1.10.0000.00817.53
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0000.00718.51
8.0.270.0030.00317.23
8.0.260.0000.00617.20
8.0.250.0040.00417.09
8.0.240.0030.00317.00
8.0.230.0070.00016.97
8.0.220.0040.00416.96
8.0.210.0050.00216.84
8.0.200.0030.00316.88
8.0.190.0000.00816.98
8.0.180.0050.00316.95
8.0.170.0000.00817.01
8.0.160.0000.00716.94
8.0.150.0000.00716.79
8.0.140.0030.00516.80
8.0.130.0060.00013.34
8.0.120.0090.00016.92
8.0.110.0000.00816.93
8.0.100.0000.00716.74
8.0.90.0040.00416.79
8.0.80.0090.01216.94
8.0.70.0040.00416.90
8.0.60.0020.00516.95
8.0.50.0080.00017.02
8.0.30.0150.00517.10
8.0.20.0090.01217.40
8.0.10.0040.00416.95
8.0.00.0070.01016.81
7.4.330.0000.00515.15
7.4.320.0000.00716.55
7.4.300.0020.00516.57
7.4.290.0030.00316.62
7.4.280.0050.00216.55
7.4.270.0000.00716.49
7.4.260.0040.00416.64
7.4.250.0040.00416.40
7.4.240.0020.00516.65
7.4.230.0030.00316.70
7.4.220.0100.00716.67
7.4.210.0030.01116.75
7.4.200.0030.00316.47
7.4.160.0100.01316.74
7.4.150.0070.01317.40
7.4.140.0140.00517.86
7.4.130.0100.00816.67
7.4.120.0070.01016.66
7.4.110.0070.01016.61
7.4.100.0110.00716.51
7.4.90.0110.00716.65
7.4.80.0130.00319.39
7.4.70.0100.00716.65
7.4.60.0070.00716.53
7.4.50.0000.00816.66
7.4.40.0100.00516.64
7.4.30.0080.01216.62
7.4.00.0050.00814.77
7.3.330.0030.00313.13
7.3.320.0000.01613.24
7.3.310.0000.00716.36
7.3.300.0000.00716.29
7.3.290.0090.00616.41
7.3.280.0090.00916.36
7.3.270.0100.00717.40
7.3.260.0150.00916.58
7.3.250.0120.00616.69
7.3.240.0090.01516.43
7.3.230.0030.01416.47
7.3.210.0090.00916.35
7.3.200.0040.01319.39
7.3.190.0130.00316.68
7.3.180.0090.01316.63
7.3.170.0120.00916.54
7.3.160.0180.00316.78
7.3.120.0060.01214.93
7.3.110.0070.01014.88
7.3.100.0120.00014.52
7.3.90.0030.00915.02
7.3.80.0130.00314.83
7.3.70.0040.01114.76
7.3.60.0040.01214.80
7.3.50.0030.00614.87
7.3.40.0070.00714.84
7.3.30.0030.00914.94
7.3.20.0000.01316.58
7.3.10.0060.00916.57
7.3.00.0080.00816.62
7.2.330.0030.01516.55
7.2.320.0150.00416.88
7.2.310.0070.01616.81
7.2.300.0140.00316.73
7.2.290.0160.00616.64
7.2.250.0040.01215.01
7.2.240.0070.01315.24
7.2.230.0080.00815.04
7.2.220.0000.01315.07
7.2.210.0030.00715.32
7.2.200.0060.01015.24
7.2.190.0100.00315.09
7.2.180.0090.00015.18
7.2.170.0060.00615.13
7.2.00.0090.00919.48
7.1.330.0110.00415.87
7.1.320.0030.00615.83
7.1.310.0060.00915.89
7.1.300.0070.00715.69
7.1.290.0000.01115.88
7.1.280.0030.00615.88
7.1.270.0030.00715.80
7.1.260.0030.01015.88
7.1.100.0030.00618.13
7.1.70.0000.00917.32
7.1.60.0140.01019.46
7.1.50.0260.01634.80
7.1.00.0070.06722.28
7.0.200.0050.00216.86
7.0.140.0000.04322.00
7.0.110.0070.08021.68
7.0.100.0100.07321.63
7.0.90.0100.06721.68
7.0.80.0030.08721.70
7.0.70.0030.08021.76
7.0.60.0000.07721.40
7.0.50.0070.08022.24
7.0.40.0100.07720.14
7.0.30.0070.08320.14
7.0.20.0070.08320.11
7.0.10.0100.07720.11
7.0.00.0030.08320.06
5.6.280.0100.06721.02
5.6.260.0030.04320.54
5.6.250.0070.07720.80
5.6.240.0070.07720.66
5.6.230.0070.08020.77
5.6.220.0070.07320.49
5.6.210.0130.07020.62
5.6.200.0100.07720.88
5.6.190.0030.08321.05
5.6.180.0030.08021.09
5.6.170.0000.08721.07
5.6.160.0070.07721.09
5.6.150.0030.07720.89
5.6.140.0070.05021.13
5.6.130.0130.07321.02
5.6.120.0100.07321.02
5.6.110.0100.08021.05
5.6.100.0030.05720.92
5.6.90.0000.05321.07
5.6.80.0070.07320.55
5.6.70.0130.07320.47
5.6.60.0030.08320.50
5.6.50.0100.04020.38
5.6.40.0130.07320.44
5.6.30.0030.05020.33
5.6.20.0070.04320.28
5.6.10.0070.07020.38
5.6.00.0070.06320.48
5.5.380.0070.04720.46
5.5.370.0000.08020.30
5.5.360.0000.08720.45
5.5.350.0100.07020.36
5.5.340.0000.08320.65
5.5.330.0030.08720.65
5.5.320.0130.06720.94
5.5.310.0030.07720.92
5.5.300.0000.08720.65
5.5.290.0030.07020.75
5.5.280.0100.04020.95
5.5.270.0030.07020.60
5.5.260.0000.08320.75
5.5.250.0170.06320.66
5.5.240.0000.08320.04
5.5.230.0030.04320.11
5.5.220.0030.08020.27
5.5.210.0000.08020.36
5.5.200.0070.07320.12
5.5.190.0000.08320.17
5.5.180.0070.07720.20
5.5.160.0100.05320.17
5.5.150.0030.03720.25
5.5.140.0000.06320.33
5.5.130.0030.05320.20
5.5.120.0000.05320.00
5.5.110.0000.04720.16
5.5.100.0030.03720.09
5.5.90.0030.04320.18
5.5.80.0000.06320.09
5.5.70.0000.04319.93
5.5.60.0100.07020.19
5.5.50.0030.03720.14
5.5.40.0000.03720.08
5.5.30.0000.05720.08
5.5.20.0070.05320.14
5.5.10.0030.03720.16
5.5.00.0030.06320.11
5.4.450.0030.07719.63
5.4.440.0070.07019.45
5.4.430.0030.06019.50
5.4.420.0070.04719.34
5.4.410.0100.04319.31
5.4.400.0070.07019.18
5.4.390.0000.07318.98
5.4.380.0070.05719.03
5.4.370.0070.07319.01
5.4.360.0030.06318.95
5.4.350.0070.06719.12
5.4.340.0000.07719.11
5.4.320.0000.04019.08
5.4.310.0100.06019.18
5.4.300.0000.06019.14
5.4.290.0100.03319.03
5.4.280.0070.03319.03
5.4.270.0030.04019.02
5.4.260.0000.04018.99
5.4.250.0000.04719.17
5.4.240.0000.03719.11
5.4.230.0030.04718.92
5.4.220.0000.04018.96
5.4.210.0000.03719.11
5.4.200.0030.03719.09
5.4.190.0070.06018.99
5.4.180.0000.05719.26
5.4.170.0000.06718.97
5.4.160.0070.05319.07
5.4.150.0030.04019.00
5.4.140.0000.04316.29
5.4.130.0070.04016.43
5.4.120.0030.03316.20
5.4.110.0030.03716.58
5.4.100.0000.05316.29
5.4.90.0030.03716.19
5.4.80.0030.03016.53
5.4.70.0030.03316.36
5.4.60.0000.03716.38
5.4.50.0070.03016.35
5.4.40.0030.03316.43
5.4.30.0030.03316.33
5.4.20.0000.03316.38
5.4.10.0000.04316.46
5.4.00.0000.06315.56
5.3.290.0030.03714.66
5.3.280.0100.02314.44
5.3.270.0000.04014.63
5.3.260.0000.03714.60
5.3.250.0000.06014.46
5.3.240.0030.03314.50
5.3.230.0000.05014.50
5.3.220.0030.04714.50
5.3.210.0070.03314.63
5.3.200.0030.05314.64
5.3.190.0000.03714.51
5.3.180.0000.03714.46
5.3.170.0030.03014.66
5.3.160.0030.03314.35
5.3.150.0000.03714.41
5.3.140.0030.03314.36
5.3.130.0000.04014.64
5.3.120.0000.03714.43
5.3.110.0000.04714.56
5.3.100.0000.05014.11
5.3.90.0030.03314.11
5.3.80.0000.05713.80
5.3.70.0030.04013.91
5.3.60.0000.03713.89
5.3.50.0000.03713.84
5.3.40.0000.05313.73
5.3.30.0000.04313.83
5.3.20.0000.03313.76
5.3.10.0070.06313.44
5.3.00.0070.04713.57
5.2.170.0030.06711.16
5.2.160.0030.02711.07
5.2.150.0030.03311.07
5.2.140.0030.02711.07
5.2.130.0000.02711.03
5.2.120.0000.03011.02
5.2.110.0070.05311.04
5.2.100.0030.05711.02
5.2.90.0100.05011.03
5.2.80.0000.06711.09
5.2.70.0030.05311.15
5.2.60.0030.05710.98
5.2.50.0070.06010.92
5.2.40.0000.03711.01
5.2.30.0030.06010.89
5.2.20.0030.06310.97
5.2.10.0100.05010.86
5.2.00.0030.06010.82
5.1.60.0000.05010.82
5.1.50.0000.05710.82
5.1.40.0030.05010.82
5.1.30.0000.04310.82
5.1.20.0030.06010.82
5.1.10.0100.05010.82
5.1.00.0000.05710.82
5.0.50.0030.03010.82
5.0.40.0030.02710.82
5.0.30.0030.06310.82
5.0.20.0030.03310.82
5.0.10.0000.04310.82
5.0.00.0030.06310.82
4.4.90.0030.03310.82
4.4.80.0000.02010.82
4.4.70.0030.02010.82
4.4.60.0030.03010.82
4.4.50.0030.02010.82
4.4.40.0000.05310.82
4.4.30.0000.03310.82
4.4.20.0000.02310.82
4.4.10.0070.03010.82
4.4.00.0000.05010.82
4.3.110.0030.03310.82
4.3.100.0100.02710.82
4.3.90.0030.03010.82
4.3.80.0000.05310.82
4.3.70.0030.03010.82
4.3.60.0030.03010.82
4.3.50.0000.03310.82
4.3.40.0030.05010.82
4.3.30.0000.03710.82
4.3.20.0000.04010.82
4.3.10.0070.03010.82
4.3.00.0000.03010.82

preferences:
50.52 ms | 401 KiB | 5 Q