3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* http://3v4l.org/DCTnA */ /* < [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 > < 1 2 ... 19 [20] 21 22 23 > < 1 2 ... 20 [21] 22 23 > < 1 2 ... 21 [22] 23 > < 1 2 ... 22 [23] > */ $currentpageid = $nmstart = 2; $nrtotal = 23; $nrposts = 1; $pages = ''; $ssPagingStartCount = 2; $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>"; } } */ //$ssPagingCurrentCountRight = max($ssPagingStartCount, ($currentpageid + (int)($ssPagingCurrentCount/2))); $ssPagingCurrentCountFrom = $currentpageid - (int)($ssPagingCurrentCount/2) - 1; if ( $ssPagingCurrentCountFrom < 0 ) $ssPagingCurrentCountFrom = 0; $ssPagingCurrentCountTo = $currentpageid + (int)($ssPagingCurrentCount/2) + 1; if ( $ssPagingCurrentCountTo > $totalpages ) $ssPagingCurrentCountTo = $totalpages; if ( ($currentpageid >= 0) && ($currentpageid < ($ssPagingStartCount + (int)($ssPagingCurrentCount/2))) ) { for ($x = 0; $x < $ssPagingCurrentCountTo; ++$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.01116.63
8.3.50.0130.00822.12
8.3.40.0100.00718.79
8.3.30.0070.01019.01
8.3.20.0040.00420.34
8.3.10.0080.00021.76
8.3.00.0080.00019.25
8.2.180.0090.00916.75
8.2.170.0100.01022.96
8.2.160.0100.01020.52
8.2.150.0040.00424.18
8.2.140.0150.00324.66
8.2.130.0070.00326.16
8.2.120.0060.00319.78
8.2.110.0050.00519.29
8.2.100.0030.00817.72
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0060.00319.94
8.2.30.0040.00418.14
8.2.20.0020.00517.65
8.2.10.0000.00818.03
8.2.00.0040.00417.70
8.1.280.0150.00625.92
8.1.270.0160.00320.53
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0070.01023.91
8.1.230.0070.00420.85
8.1.220.0000.00818.69
8.1.210.0030.00618.77
8.1.200.0030.00617.36
8.1.190.0000.00917.23
8.1.180.0000.00818.10
8.1.170.0030.00520.35
8.1.160.0050.00321.96
8.1.150.0000.00718.92
8.1.140.0070.00017.34
8.1.130.0070.00017.91
8.1.120.0040.00417.45
8.1.110.0040.00417.47
8.1.100.0000.00717.51
8.1.90.0050.00317.45
8.1.80.0080.00017.48
8.1.70.0000.00717.38
8.1.60.0040.00417.51
8.1.50.0050.00317.61
8.1.40.0040.00417.41
8.1.30.0050.00317.68
8.1.20.0000.00717.75
8.1.10.0040.00417.54
8.1.00.0050.00317.33
8.0.300.0040.00419.90
8.0.290.0000.00716.75
8.0.280.0030.00518.47
8.0.270.0000.01017.33
8.0.260.0060.00017.39
8.0.250.0030.00317.02
8.0.240.0000.00616.97
8.0.230.0070.00016.92
8.0.220.0030.00316.91
8.0.210.0080.00016.90
8.0.200.0030.00316.87
8.0.190.0000.00816.95
8.0.180.0070.00016.94
8.0.170.0040.00416.91
8.0.160.0070.00016.83
8.0.150.0050.00216.92
8.0.140.0060.00316.77
8.0.130.0000.00713.38
8.0.120.0080.00016.89
8.0.110.0000.00716.95
8.0.100.0070.00016.94
8.0.90.0020.00516.82
8.0.80.0060.01016.85
8.0.70.0040.00416.95
8.0.60.0040.00416.82
8.0.50.0000.00816.96
8.0.30.0110.01316.93
8.0.20.0130.00617.40
8.0.10.0000.00717.05
8.0.00.0080.00816.65
7.4.330.0000.00515.03
7.4.320.0040.00416.64
7.4.300.0000.00716.52
7.4.290.0080.00016.65
7.4.280.0030.00316.51
7.4.270.0030.00316.46
7.4.260.0000.00816.60
7.4.250.0080.00016.50
7.4.240.0030.00416.54
7.4.230.0030.00316.67
7.4.220.0100.00716.63
7.4.210.0120.00316.74
7.4.200.0000.00716.73
7.4.160.0050.01016.71
7.4.150.0120.00617.40
7.4.140.0130.00817.86
7.4.130.0090.00816.47
7.4.120.0090.00916.50
7.4.110.0120.00616.71
7.4.100.0120.01016.75
7.4.90.0080.00816.51
7.4.80.0120.00619.39
7.4.70.0120.00616.59
7.4.60.0110.00416.54
7.4.50.0060.00316.67
7.4.40.0070.01116.50
7.4.30.0140.00916.73
7.4.00.0090.00614.95
7.3.330.0020.00213.06
7.3.320.0120.00413.09
7.3.310.0000.00616.38
7.3.300.0040.00416.37
7.3.290.0080.00516.37
7.3.280.0070.01016.34
7.3.270.0170.00017.40
7.3.260.0060.01216.41
7.3.250.0130.00916.42
7.3.240.0100.00616.37
7.3.230.0180.00016.66
7.3.210.0100.01016.38
7.3.200.0160.00019.39
7.3.190.0090.00616.54
7.3.180.0030.01316.34
7.3.170.0090.00916.63
7.3.160.0090.00616.29
7.2.330.0060.01216.88
7.2.320.0110.00716.87
7.2.310.0100.01416.83
7.2.300.0030.01616.50
7.2.290.0060.01216.73
7.2.00.0040.01119.02
7.1.100.0100.00718.13
7.1.70.0090.00617.18
7.1.60.0090.01219.46
7.1.50.0200.00734.92
7.1.00.0000.08022.35
7.0.200.0050.00216.70
7.0.140.0030.03321.99
7.0.110.0070.09020.02
7.0.100.0100.07719.89
7.0.90.0200.06319.88
7.0.80.0030.08719.80
7.0.70.0070.04019.82
7.0.60.0030.05719.96
7.0.50.0100.08020.41
7.0.40.0070.09020.07
7.0.30.0030.09020.07
7.0.20.0200.07319.90
7.0.10.0030.08020.07
7.0.00.0030.08720.18
5.6.280.0030.07321.13
5.6.250.0100.08020.59
5.6.240.0100.08320.62
5.6.230.0100.07720.49
5.6.220.0030.07320.63
5.6.210.0130.06320.55
5.6.200.0000.08021.15
5.6.190.0070.08321.15
5.6.180.0100.08321.24
5.6.170.0070.07721.07
5.6.160.0100.08021.09
5.6.150.0030.08021.24
5.6.140.0070.08321.03
5.6.130.0070.08021.21
5.6.120.0070.09020.97
5.6.110.0170.07320.89
5.6.100.0070.05020.97
5.6.90.0130.07720.95
5.6.80.0130.07020.36
5.6.70.0130.04020.48
5.6.60.0130.07320.41
5.6.50.0130.08020.39
5.6.40.0100.07320.36
5.6.30.0130.07720.60
5.6.20.0030.07720.59
5.6.10.0130.07320.46
5.6.00.0200.06320.58
5.5.380.0030.05020.47
5.5.370.0000.07020.37
5.5.360.0000.05020.51
5.5.350.0070.08720.41
5.5.340.0170.08020.66
5.5.330.0030.08720.86
5.5.320.0070.08320.95
5.5.310.0070.08320.86
5.5.300.0170.07320.66
5.5.290.0130.08320.80
5.5.280.0030.08720.99
5.5.270.0070.07020.79
5.5.260.0070.08320.90
5.5.250.0130.07720.72
5.5.240.0170.07020.21
5.5.230.0070.07720.31
5.5.220.0070.04320.32
5.5.210.0030.08020.24
5.5.200.0200.06320.05
5.5.190.0130.05720.09
5.5.180.0100.08020.15
5.5.160.0030.08020.30
5.5.150.0100.07720.00
5.5.140.0130.06720.34
5.5.130.0100.07720.29
5.5.120.0070.05720.11
5.5.110.0070.07320.11
5.5.100.0070.07720.24
5.5.90.0070.05319.99
5.5.80.0030.08320.04
5.5.70.0070.06720.19
5.5.60.0130.07320.05
5.5.50.0100.04320.05
5.5.40.0070.07019.94
5.5.30.0070.07320.08
5.5.20.0100.07320.01
5.5.10.0070.05019.97
5.5.00.0030.08320.05
5.4.450.0070.08019.33
5.4.440.0100.07719.38
5.4.430.0070.06019.39
5.4.420.0070.07719.56
5.4.410.0200.06319.14
5.4.400.0030.04718.96
5.4.390.0030.06719.10
5.4.380.0030.04719.07
5.4.370.0200.07019.20
5.4.360.0100.07318.93
5.4.350.0130.07019.13
5.4.340.0100.07319.03
5.4.320.0170.07319.03
5.4.310.0200.06718.98
5.4.300.0070.07719.21
5.4.290.0100.06719.14
5.4.280.0070.06719.03
5.4.270.0130.06719.21
5.4.260.0030.08019.00
5.4.250.0070.05719.21
5.4.240.0070.05319.00
5.4.230.0000.06019.23
5.4.220.0100.07318.96
5.4.210.0030.08319.23
5.4.200.0070.07319.02
5.4.190.0030.08018.91
5.4.180.0130.07319.17
5.4.170.0070.04319.21
5.4.160.0070.08319.11
5.4.150.0030.08018.98
5.4.140.0070.07716.34
5.4.130.0030.07716.13
5.4.120.0030.07716.19
5.4.110.0130.06316.50
5.4.100.0070.04016.52
5.4.90.0070.07316.29
5.4.80.0100.06716.36
5.4.70.0000.06316.19
5.4.60.0030.04716.47
5.4.50.0070.04316.48
5.4.40.0130.06316.55
5.4.30.0100.07316.52
5.4.20.0000.07316.30
5.4.10.0130.06316.45
5.4.00.0100.06715.64
5.3.290.0100.07014.74
5.3.280.0030.07314.55
5.3.270.0170.07314.54
5.3.260.0000.07314.61
5.3.250.0100.07714.63
5.3.240.0130.07014.61
5.3.230.0100.06714.42
5.3.220.0070.07714.59
5.3.210.0100.06314.36
5.3.200.0000.08014.48
5.3.190.0030.07714.59
5.3.180.0170.06014.50
5.3.170.0070.07314.47
5.3.160.0000.07314.51
5.3.150.0030.07714.59
5.3.140.0030.07314.46
5.3.130.0070.08314.48
5.3.120.0000.07714.50
5.3.110.0100.07014.65
5.3.100.0030.07714.15
5.3.90.0030.04714.13
5.3.80.0130.06313.88
5.3.70.0070.06713.93
5.3.60.0100.06313.95
5.3.50.0100.05013.89
5.3.40.0070.07713.96
5.3.30.0030.07013.77
5.3.20.0000.07713.60
5.3.10.0100.06013.67
5.3.00.0000.07313.47
5.2.170.0070.05711.07
5.2.160.0030.06011.05
5.2.150.0070.06011.07
5.2.140.0030.04311.10
5.2.130.0070.05711.05
5.2.120.0030.05711.04
5.2.110.0070.06311.01
5.2.100.0030.06311.04
5.2.90.0070.05310.90
5.2.80.0000.04011.26
5.2.70.0170.05011.10
5.2.60.0070.06011.00
5.2.50.0130.05710.98
5.2.40.0030.06010.93
5.2.30.0070.04710.87
5.2.20.0030.06010.91
5.2.10.0070.06010.99
5.2.00.0030.06010.81
5.1.60.0100.0509.96
5.1.50.0000.06010.25
5.1.40.0170.03310.14
5.1.30.0000.06010.30
5.1.20.0070.05710.42
5.1.10.0070.05310.23
5.1.00.0000.06310.33
5.0.50.0030.0478.99
5.0.40.0100.0308.99
5.0.30.0100.0608.99
5.0.20.0000.0478.99
5.0.10.0000.0408.99
5.0.00.0100.0308.99
4.4.90.0030.0338.99
4.4.80.0030.0278.99
4.4.70.0000.0408.99
4.4.60.0100.0208.99
4.4.50.0130.0278.99
4.4.40.0070.0478.99
4.4.30.0070.0238.99
4.4.20.0030.0378.99
4.4.10.0070.0308.99
4.4.00.0100.0438.99
4.3.110.0070.0308.99
4.3.100.0000.0408.99
4.3.90.0030.0308.99
4.3.80.0070.0538.99
4.3.70.0000.0378.99
4.3.60.0000.0338.99
4.3.50.0030.0238.99
4.3.40.0000.0508.99
4.3.30.0030.0208.99
4.3.20.0000.0378.99
4.3.10.0030.0278.99
4.3.00.0070.0238.99

preferences:
38.59 ms | 401 KiB | 5 Q