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.70.0110.00416.36
8.3.60.0100.01016.75
8.3.50.0150.00622.00
8.3.40.0130.00718.71
8.3.30.0170.00019.27
8.3.20.0000.00720.18
8.3.10.0110.00721.66
8.3.00.0080.00019.26
8.2.190.0110.00716.88
8.2.180.0180.00316.75
8.2.170.0120.00622.96
8.2.160.0140.00020.29
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0050.00319.77
8.2.110.0070.00319.45
8.2.100.0070.00717.75
8.2.90.0040.00419.36
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0000.01020.07
8.2.30.0070.00018.11
8.2.20.0040.00417.68
8.2.10.0020.00518.04
8.2.00.0040.00417.80
8.1.280.0100.01025.92
8.1.270.0140.00420.68
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0060.00323.98
8.1.230.0110.00017.76
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00717.13
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00820.48
8.1.160.0040.00422.09
8.1.150.0080.00018.80
8.1.140.0040.00417.44
8.1.130.0070.00017.75
8.1.120.0040.00417.36
8.1.110.0030.00517.48
8.1.100.0000.00717.53
8.1.90.0000.00717.39
8.1.80.0050.00317.40
8.1.70.0000.00717.39
8.1.60.0000.00817.60
8.1.50.0040.00417.44
8.1.40.0000.00717.45
8.1.30.0000.00817.59
8.1.20.0080.00017.51
8.1.10.0030.00617.54
8.1.00.0050.00217.48
8.0.300.0050.00218.77
8.0.290.0100.00016.58
8.0.280.0070.00018.52
8.0.270.0000.00717.29
8.0.260.0000.00817.35
8.0.250.0030.00317.01
8.0.240.0060.00016.98
8.0.230.0070.00016.89
8.0.220.0070.00016.86
8.0.210.0030.00316.93
8.0.200.0030.00717.00
8.0.190.0030.00516.87
8.0.180.0000.00716.98
8.0.170.0050.00316.84
8.0.160.0000.00716.95
8.0.150.0030.00316.75
8.0.140.0070.00016.90
8.0.130.0030.00313.32
8.0.120.0040.00416.78
8.0.110.0050.00216.91
8.0.100.0080.00016.88
8.0.90.0030.00517.04
8.0.80.0090.00916.94
8.0.70.0000.00817.02
8.0.60.0000.00816.72
8.0.50.0000.00816.75
8.0.30.0140.00717.11
8.0.20.0160.00817.40
8.0.10.0070.00017.05
8.0.00.0060.01116.92
7.4.330.0000.00515.05
7.4.320.0050.00316.68
7.4.300.0040.00416.63
7.4.290.0040.00416.44
7.4.280.0000.00816.52
7.4.270.0000.00716.63
7.4.260.0000.00716.44
7.4.250.0000.00716.35
7.4.240.0030.00416.54
7.4.230.0070.00016.52
7.4.220.0180.00016.69
7.4.210.0160.00416.54
7.4.200.0070.00016.71
7.4.160.0120.00316.62
7.4.150.0000.01817.40
7.4.140.0130.00517.86
7.4.130.0140.00516.48
7.4.120.0130.00616.60
7.4.110.0110.00616.64
7.4.100.0090.00916.61
7.4.90.0100.00716.60
7.4.80.0120.00619.39
7.4.70.0070.01016.53
7.4.60.0150.00516.52
7.4.50.0000.00816.56
7.4.40.0030.01316.64
7.4.30.0130.01016.50
7.4.00.0030.01015.06
7.3.330.0000.00513.27
7.3.320.0070.00713.19
7.3.310.0000.00716.27
7.3.300.0000.00616.37
7.3.290.0000.01416.34
7.3.280.0080.01016.29
7.3.270.0040.01417.40
7.3.260.0070.01116.52
7.3.250.0130.00516.55
7.3.240.0070.01116.36
7.3.230.0070.01816.39
7.3.210.0120.00316.61
7.3.200.0070.01019.39
7.3.190.0090.00916.45
7.3.180.0110.00516.43
7.3.170.0170.00716.56
7.3.160.0130.00316.35
7.3.10.0060.01016.79
7.3.00.0030.01016.83
7.2.330.0070.01016.80
7.2.320.0070.01316.73
7.2.310.0100.00716.71
7.2.300.0120.00616.40
7.2.290.0090.00816.70
7.2.130.0130.00016.86
7.2.120.0080.00516.96
7.2.110.0000.01416.97
7.2.100.0040.01116.98
7.2.90.0060.00616.80
7.2.80.0080.00417.01
7.2.70.0090.00616.81
7.2.60.0060.00816.88
7.2.50.0080.00417.04
7.2.40.0030.00616.55
7.2.30.0030.01217.03
7.2.20.0060.00317.01
7.2.10.0050.00316.80
7.2.00.0070.00618.18
7.1.250.0070.00715.64
7.1.200.0030.00716.03
7.1.100.0000.01118.07
7.1.70.0030.00517.19
7.1.60.0090.01619.46
7.1.50.0120.00316.78
7.1.00.0030.07722.46
7.0.200.0000.01016.74
7.0.140.0070.05322.00
7.0.60.0030.08320.04
7.0.50.0070.08017.81
7.0.40.0100.04319.95
7.0.30.0130.08720.18
7.0.20.0400.06720.13
7.0.10.0200.05320.21
7.0.00.0030.04720.04
5.6.280.0000.07321.00
5.6.210.0130.07720.72
5.6.200.0100.06718.15
5.6.190.0030.05020.34
5.6.180.0270.07320.38
5.6.170.0300.08020.49
5.6.160.0070.06020.44
5.6.150.0070.08018.18
5.6.140.0070.03718.09
5.6.130.0100.08018.18
5.6.120.0100.08321.13
5.6.110.0170.07321.05
5.6.100.0100.08321.04
5.6.90.0030.05321.04
5.6.80.0170.07320.51
5.6.70.0230.07320.28
5.5.350.0100.07320.30
5.5.340.0030.07017.88
5.5.330.0000.09320.58
5.5.320.0170.07720.42
5.5.310.0370.05020.33
5.5.300.0100.06317.91
5.5.290.0100.07718.02
5.5.280.0100.07020.88
5.5.270.0130.07720.85
5.5.260.0100.08320.77
5.5.250.0070.07320.70
5.5.240.0030.05020.24
5.4.450.0130.08019.57
5.4.440.0200.08319.21
5.4.430.0100.06019.15
5.4.420.0270.07319.45
5.4.410.0230.07319.33
5.4.400.0230.06319.22
5.4.390.0270.06719.08
5.4.380.0270.06318.79
5.4.370.0230.04719.10
5.4.360.0230.07019.16
5.4.350.0130.07019.14
5.4.340.0130.08318.93
5.4.320.0170.04718.92
5.4.310.0270.06719.22
5.4.300.0170.06719.25
5.4.290.0200.07719.22
5.4.280.0230.07318.91
5.4.270.0230.05018.79
5.4.260.0330.06019.05
5.4.250.0370.06018.91
5.4.240.0300.06018.89
5.4.230.0170.06019.13
5.4.220.0330.06318.78
5.4.210.0230.05719.05
5.4.200.0200.05718.78
5.4.190.0130.07319.05
5.4.180.0200.05018.78
5.4.170.0130.07719.12
5.4.160.0200.05319.15
5.4.150.0100.04718.86
5.4.140.0200.04016.23
5.4.130.0270.06716.33
5.4.120.0230.03716.45
5.4.110.0200.06016.30
5.4.100.0330.05716.34
5.4.90.0170.06316.21
5.4.80.0230.06016.41
5.4.70.0270.04016.29
5.4.60.0130.07716.42
5.4.50.0200.06716.36
5.4.40.0230.05716.36
5.4.30.0100.04716.29
5.4.20.0200.07016.35
5.4.10.0130.06016.36
5.4.00.0170.05715.66
5.3.290.0200.05014.77
5.3.280.0170.06314.63
5.3.270.0270.04014.49
5.3.260.0200.04014.46
5.3.250.0130.06314.57
5.3.240.0130.04714.56
5.3.230.0230.05014.45
5.3.220.0300.07014.51
5.3.210.0230.06014.45
5.3.200.0200.07714.51
5.3.190.0230.04014.53
5.3.180.0170.04714.43
5.3.170.0200.04714.63
5.3.160.0200.05314.41
5.3.150.0200.05714.42
5.3.140.0170.07314.44
5.3.130.0170.06714.46
5.3.120.0300.04314.50
5.3.110.0170.08014.58
5.3.100.0170.04713.92
5.3.90.0200.06313.96
5.3.80.0230.06313.86
5.3.70.0130.07314.01
5.3.60.0130.07314.07
5.3.50.0200.06313.91
5.3.40.0130.04013.83
5.3.30.0200.06013.79
5.3.20.0270.04713.58
5.3.10.0200.05313.46
5.3.00.0230.04313.50
5.2.170.0130.04312.45
5.2.160.0100.04012.45
5.2.150.0170.03712.45
5.2.140.0130.04012.45
5.2.130.0170.05312.45
5.2.120.0170.03712.45
5.2.110.0130.04312.45
5.2.100.0200.03712.45
5.2.90.0270.04712.45
5.2.80.0170.06712.45
5.2.70.0170.03712.45
5.2.60.0200.04712.45
5.2.50.0270.05012.45
5.2.40.0200.05012.45
5.2.30.0200.05712.45
5.2.20.0130.05012.45
5.2.10.0230.05712.45
5.2.00.0170.04012.45
5.1.60.0170.05012.45
5.1.50.0170.05312.45
5.1.40.0270.04012.45
5.1.30.0170.03312.45
5.1.20.0170.04012.45
5.1.10.0200.04712.45
5.1.00.0100.04712.45
5.0.50.0130.03012.45
5.0.40.0030.04712.45
5.0.30.0030.04012.45
5.0.20.0030.04312.45
5.0.10.0030.02712.45
5.0.00.0000.03312.45
4.4.90.0070.02312.45
4.4.80.0070.03712.45
4.4.70.0100.03712.45
4.4.60.0170.02012.45
4.4.50.0070.03312.45
4.4.40.0070.05312.45
4.4.30.0130.03012.45
4.4.20.0100.03312.45
4.4.10.0100.03312.45
4.4.00.0030.05312.45
4.3.110.0000.04012.45
4.3.100.0100.03012.45
4.3.90.0070.02712.45
4.3.80.0070.05712.45
4.3.70.0070.03312.45
4.3.60.0030.03712.45
4.3.50.0100.02312.45
4.3.40.0030.04012.45
4.3.30.0000.03012.45
4.3.20.0070.03312.45
4.3.10.0000.03712.45
4.3.00.0100.02712.45

preferences:
63.56 ms | 401 KiB | 5 Q