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 = 0; $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.0140.00716.63
8.3.50.0150.00722.12
8.3.40.0090.00618.81
8.3.30.0070.00718.90
8.3.20.0080.00019.94
8.3.10.0100.00721.73
8.3.00.0040.00419.51
8.2.180.0140.00716.50
8.2.170.0130.00622.96
8.2.160.0060.00920.52
8.2.150.0040.00424.18
8.2.140.0100.00524.66
8.2.130.0060.00326.16
8.2.120.0080.00019.52
8.2.110.0040.00821.03
8.2.100.0070.00417.75
8.2.90.0040.00419.36
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0060.00319.95
8.2.30.0060.00317.98
8.2.20.0000.00717.88
8.2.10.0040.00418.21
8.2.00.0050.00217.76
8.1.280.0220.00025.92
8.1.270.0150.00420.68
8.1.260.0000.00926.35
8.1.250.0000.00728.09
8.1.240.0030.00623.97
8.1.230.0030.00920.59
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0100.00017.23
8.1.190.0000.00817.10
8.1.180.0030.00618.10
8.1.170.0060.00320.38
8.1.160.0040.00422.11
8.1.150.0000.00718.87
8.1.140.0050.00217.52
8.1.130.0000.00817.79
8.1.120.0000.00717.50
8.1.110.0040.00417.42
8.1.100.0030.00317.41
8.1.90.0030.00517.51
8.1.80.0030.00317.38
8.1.70.0040.00417.33
8.1.60.0030.00517.54
8.1.50.0000.00817.51
8.1.40.0040.00417.52
8.1.30.0080.00017.58
8.1.20.0040.00417.66
8.1.10.0040.00417.46
8.1.00.0000.00817.44
8.0.300.0060.00318.77
8.0.290.0090.00016.75
8.0.280.0070.00018.48
8.0.270.0030.00517.23
8.0.260.0030.00317.28
8.0.250.0040.00417.00
8.0.240.0000.00716.95
8.0.230.0000.00716.93
8.0.220.0070.00016.93
8.0.210.0000.00716.90
8.0.200.0030.00317.00
8.0.190.0000.00716.96
8.0.180.0000.00816.96
8.0.170.0040.00416.84
8.0.160.0080.00016.80
8.0.150.0000.00716.91
8.0.140.0050.00316.79
8.0.130.0050.00213.36
8.0.120.0040.00416.80
8.0.110.0040.00416.96
8.0.100.0040.00416.70
8.0.90.0000.00716.98
8.0.80.0090.00916.88
8.0.70.0030.00616.91
8.0.60.0000.00816.80
8.0.50.0000.00816.74
8.0.30.0120.00917.19
8.0.20.0140.00717.41
8.0.10.0040.00417.02
8.0.00.0110.00716.93
7.4.330.0050.00015.03
7.4.320.0040.00416.64
7.4.300.0030.00516.54
7.4.290.0000.00716.62
7.4.280.0030.00316.57
7.4.270.0000.00716.53
7.4.260.0030.00316.44
7.4.250.0000.00816.42
7.4.240.0000.00816.54
7.4.230.0030.00316.42
7.4.220.0100.00716.40
7.4.210.0030.01216.54
7.4.200.0000.00716.66
7.4.160.0110.01116.55
7.4.150.0070.01017.40
7.4.140.0110.00917.86
7.4.130.0080.00916.50
7.4.120.0060.01216.60
7.4.110.0080.01316.48
7.4.100.0180.00316.59
7.4.90.0130.00316.49
7.4.80.0090.00919.39
7.4.70.0120.00416.50
7.4.60.0070.01016.45
7.4.50.0040.00416.54
7.4.40.0080.00816.51
7.4.30.0130.00816.61
7.4.00.0070.00414.93
7.3.330.0000.00613.09
7.3.320.0150.00013.24
7.3.310.0070.00016.43
7.3.300.0030.00316.31
7.3.290.0070.00916.38
7.3.280.0070.00816.34
7.3.270.0090.00917.40
7.3.260.0060.01216.54
7.3.250.0120.00916.51
7.3.240.0130.00716.29
7.3.230.0150.00316.55
7.3.210.0100.00516.45
7.3.200.0120.00319.39
7.3.190.0060.00916.32
7.3.180.0080.00816.25
7.3.170.0160.00316.34
7.3.160.0070.01016.30
7.2.330.0030.01416.58
7.2.320.0200.00316.90
7.2.310.0070.01016.44
7.2.300.0090.00916.69
7.2.290.0100.00716.71
7.2.60.0030.00917.09
7.2.00.0060.00919.15
7.1.200.0060.00615.64
7.1.100.0000.00817.95
7.1.70.0030.00617.19
7.1.60.0090.01619.46
7.1.50.0110.00734.85
7.1.00.0030.07722.51
7.0.200.0000.00716.79
7.0.140.0070.03022.08
7.0.70.4670.04320.14
7.0.60.0070.06020.00
7.0.50.0030.08317.84
7.0.40.0170.07720.04
7.0.30.0230.08719.96
7.0.20.0230.08020.02
7.0.10.0300.05319.99
7.0.00.0070.08020.12
5.6.280.0030.07320.82
5.6.210.0170.05720.61
5.6.200.0070.05018.21
5.6.190.0100.05720.41
5.6.180.0130.04720.58
5.6.170.0200.08020.38
5.6.160.0130.07720.38
5.6.150.0000.08018.17
5.6.140.0100.07718.17
5.6.130.0030.07018.15
5.6.120.0030.04320.98
5.6.110.0130.08021.01
5.6.100.0170.07721.03
5.6.90.0070.08320.93
5.6.80.0070.08320.36
5.6.70.0270.07320.53
5.5.350.0130.07320.39
5.5.340.0070.03717.99
5.5.330.0200.07320.19
5.5.320.0070.05320.37
5.5.310.0270.07720.41
5.5.300.0170.03717.92
5.5.290.0030.05717.92
5.5.280.0130.04720.88
5.5.270.0130.07720.75
5.5.260.0030.05320.84
5.5.250.0070.04020.70
5.5.240.0130.06320.16
5.4.450.0670.05719.54
5.4.440.0100.06719.41
5.4.430.0200.05319.54
5.4.420.0270.04319.63
5.4.410.0130.05719.50
5.4.400.0230.05318.83
5.4.390.0100.06018.59
5.4.380.0230.05018.51
5.4.370.0100.06018.75
5.4.360.0200.05718.78
5.4.350.0170.05718.54
5.4.340.0230.05018.60
5.4.320.0170.06018.68
5.4.310.0100.05718.55
5.4.300.0170.05318.69
5.4.290.0270.03718.52
5.4.280.0270.05718.61
5.4.270.0230.04318.71
5.4.260.0200.04718.46
5.4.250.0130.06018.66
5.4.240.0200.06718.70
5.4.230.0230.06318.52
5.4.220.0270.05318.60
5.4.210.0300.06318.55
5.4.200.0130.05316.64
5.4.190.0300.03718.52
5.4.180.0100.06018.70
5.4.170.0170.05318.72
5.4.160.0170.05718.45
5.4.150.0170.05318.65
5.4.140.0130.05716.10
5.4.130.0100.05316.13
5.4.120.0170.05016.32
5.4.110.0170.05016.07
5.4.100.0270.04016.31
5.4.90.0200.04716.14
5.4.80.0170.04716.29
5.4.70.0170.06016.21
5.4.60.0130.05016.20
5.4.50.0270.04316.22
5.4.40.0130.06316.05
5.4.30.0200.04316.17
5.4.20.0230.04716.05
5.4.10.0170.06316.27
5.4.00.0070.06015.76
5.3.290.0170.05314.71
5.3.280.0070.06314.52
5.3.270.0130.05714.63
5.3.260.0270.04314.71
5.3.250.0270.04714.62
5.3.240.0230.05014.68
5.3.230.0200.05314.68
5.3.220.0070.06014.68
5.3.210.0070.06314.47
5.3.200.0170.04714.56
5.3.190.0230.04714.56
5.3.180.0130.05314.50
5.3.170.0130.05014.57
5.3.160.0200.06014.54
5.3.150.0200.05314.50
5.3.140.0170.05014.64
5.3.130.0100.06014.61
5.3.120.0200.06014.47
5.3.110.0230.05014.47
5.3.100.0100.05714.04
5.3.90.0200.04713.96
5.3.80.0200.04713.92
5.3.70.0130.05314.02
5.3.60.0200.05013.91
5.3.50.0170.04713.91
5.3.40.0130.05713.93
5.3.30.0200.04313.81
5.3.20.0070.05713.68
5.3.10.0270.04013.65
5.3.00.0200.05313.75
5.2.170.0200.03311.10
5.2.160.0100.04011.11
5.2.150.0170.04011.31
5.2.140.0100.04311.14
5.2.130.0200.03311.02
5.2.120.0070.04311.08
5.2.110.0130.04311.07
5.2.100.0100.04311.10
5.2.90.0100.04011.25
5.2.80.0130.04011.25
5.2.70.0200.03711.08
5.2.60.0130.04011.12
5.2.50.0130.04711.17
5.2.40.0170.04011.04
5.2.30.0070.04311.02
5.2.20.0170.04310.88
5.2.10.0170.03310.97
5.2.00.0130.03710.76
5.1.60.0130.03010.04
5.1.50.0100.03310.21
5.1.40.0070.04010.02
5.1.30.0030.04310.38
5.1.20.0130.04010.56
5.1.10.0130.03710.28
5.1.00.0130.04010.20
5.0.50.0030.0338.64
5.0.40.0000.0378.55
5.0.30.0130.0408.33
5.0.20.0100.0278.38
5.0.10.0070.0378.29
5.0.00.0130.0408.31
4.4.90.0070.0205.96
4.4.80.0100.0175.84
4.4.70.0070.0205.89
4.4.60.0030.0235.87
4.4.50.0030.0235.89
4.4.40.0000.0406.01
4.4.30.0070.0205.89
4.4.20.0070.0205.95
4.4.10.0070.0205.96
4.4.00.0030.0375.91
4.3.110.0070.0205.84
4.3.100.0030.0235.80
4.3.90.0070.0205.84
4.3.80.0070.0335.80
4.3.70.0100.0135.86
4.3.60.0100.0175.93
4.3.50.0000.0275.82
4.3.40.0000.0375.78
4.3.30.0000.0274.70
4.3.20.0000.0234.57
4.3.10.0030.0204.58
4.3.00.0070.0277.02

preferences:
89.33 ms | 401 KiB | 5 Q