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 = -1; $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.00316.63
8.3.50.0150.00622.13
8.3.40.0110.00418.84
8.3.30.0110.00719.04
8.3.20.0080.00020.04
8.3.10.0080.00021.49
8.3.00.0000.00819.25
8.2.180.0120.00918.13
8.2.170.0150.00022.96
8.2.160.0070.00722.26
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.77
8.2.110.0030.00619.33
8.2.100.0060.00617.50
8.2.90.0080.00019.05
8.2.80.0030.00617.97
8.2.70.0050.00317.50
8.2.60.0040.00418.03
8.2.50.0080.00018.07
8.2.40.0060.00319.88
8.2.30.0070.00017.97
8.2.20.0000.00817.72
8.2.10.0100.00018.21
8.2.00.0070.00017.65
8.1.280.0130.00725.92
8.1.270.0090.00620.66
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0050.00523.92
8.1.230.0030.00818.95
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0030.00517.25
8.1.180.0000.00918.10
8.1.170.0040.00420.35
8.1.160.0000.00721.96
8.1.150.0040.00418.83
8.1.140.0030.00517.52
8.1.130.0030.00517.86
8.1.120.0000.00717.54
8.1.110.0050.00317.39
8.1.100.0040.00417.36
8.1.90.0080.00017.50
8.1.80.0040.00417.46
8.1.70.0030.00317.39
8.1.60.0050.00317.50
8.1.50.0000.00817.55
8.1.40.0040.00417.52
8.1.30.0050.00317.68
8.1.20.0000.00817.58
8.1.10.0030.00517.40
8.1.00.0090.00017.33
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0030.00518.39
8.0.270.0040.00417.30
8.0.260.0070.00017.29
8.0.250.0000.00716.98
8.0.240.0000.00616.89
8.0.230.0080.00016.89
8.0.220.0000.00716.90
8.0.210.0040.00416.89
8.0.200.0020.00516.95
8.0.190.0080.00017.02
8.0.180.0040.00416.92
8.0.170.0040.00416.96
8.0.160.0040.00416.98
8.0.150.0070.00016.76
8.0.140.0070.00016.85
8.0.130.0000.00613.34
8.0.120.0030.00616.81
8.0.110.0030.00516.81
8.0.100.0040.00416.96
8.0.90.0030.00517.04
8.0.80.0060.01016.87
8.0.70.0080.00016.89
8.0.60.0040.00416.80
8.0.50.0020.00516.75
8.0.30.0160.00916.80
8.0.20.0110.00817.40
8.0.10.0030.00316.94
8.0.00.0080.00916.90
7.4.330.0050.00015.20
7.4.320.0000.00716.68
7.4.300.0000.00916.63
7.4.290.0080.00016.63
7.4.280.0070.00016.67
7.4.270.0000.00816.64
7.4.260.0070.00016.49
7.4.250.0000.00716.57
7.4.240.0040.00316.64
7.4.230.0000.00716.74
7.4.220.0060.01316.65
7.4.210.0040.01016.54
7.4.200.0000.00716.68
7.4.160.0060.01616.69
7.4.150.0060.01217.40
7.4.140.0080.01017.86
7.4.130.0070.01116.57
7.4.120.0090.00816.55
7.4.110.0110.00616.46
7.4.100.0090.00916.68
7.4.90.0080.00816.38
7.4.80.0090.00919.39
7.4.70.0100.00716.55
7.4.60.0100.00716.47
7.4.50.0040.00416.41
7.4.40.0050.01416.52
7.4.30.0090.00916.54
7.4.00.0040.01414.78
7.3.330.0050.00013.06
7.3.320.0070.00713.17
7.3.310.0070.00016.16
7.3.300.0040.00416.38
7.3.290.0050.00216.23
7.3.280.0070.01016.36
7.3.270.0070.01417.40
7.3.260.0050.01916.64
7.3.250.0110.01016.50
7.3.240.0060.01016.62
7.3.230.0120.01016.39
7.3.210.0090.00916.66
7.3.200.0090.00619.39
7.3.190.0090.00616.55
7.3.180.0090.00616.25
7.3.170.0150.00316.47
7.3.160.0080.00816.30
7.3.120.0060.00914.63
7.3.110.0090.00914.71
7.3.100.0030.01314.87
7.3.90.0090.00914.87
7.3.80.0060.00914.89
7.3.70.0030.01314.60
7.3.60.0000.00914.75
7.3.50.0100.00714.80
7.3.40.0120.00014.69
7.3.30.0070.00414.96
7.3.20.0000.01416.66
7.3.10.0060.00616.83
7.3.00.0080.00416.77
7.2.330.0140.00416.60
7.2.320.0070.01416.46
7.2.310.0090.00916.33
7.2.300.0070.01016.51
7.2.290.0090.01316.63
7.2.250.0070.01115.02
7.2.240.0070.01415.09
7.2.230.0070.00714.66
7.2.220.0000.01615.11
7.2.210.0030.00615.11
7.2.200.0090.00615.06
7.2.190.0110.00314.98
7.2.180.0030.01014.92
7.2.170.0000.01115.11
7.2.00.0000.01018.82
7.1.330.0100.00315.86
7.1.320.0000.01315.70
7.1.310.0030.01015.93
7.1.300.0040.00715.85
7.1.290.0060.00915.55
7.1.280.0040.00415.76
7.1.270.0060.00615.99
7.1.260.0080.00815.60
7.1.100.0040.01118.31
7.1.70.0060.00617.30
7.1.60.0140.01019.46
7.1.50.0110.00316.70
7.1.00.0030.07722.46
7.0.200.0040.00416.50
7.0.140.0030.06021.90
7.0.100.0100.05720.01
7.0.90.0130.07320.18
7.0.80.0070.06720.14
7.0.70.0070.06319.86
7.0.60.0070.04019.99
7.0.50.0100.03320.28
7.0.40.0030.03320.11
7.0.30.0070.03720.09
7.0.20.0070.03720.16
7.0.10.0030.04320.14
7.0.00.0030.03320.04
5.6.280.0100.06720.82
5.6.250.0030.04320.66
5.6.240.0100.04720.58
5.6.230.0030.05720.67
5.6.220.0070.04020.68
5.6.210.0070.04020.66
5.6.200.0070.04020.97
5.6.190.0000.04721.04
5.6.180.0030.03321.17
5.6.170.0100.03021.11
5.6.160.0000.05021.07
5.6.150.0070.03321.09
5.6.140.0070.04021.07
5.6.130.0100.03721.05
5.6.120.0100.03720.95
5.6.110.0070.04021.04
5.6.100.0030.03721.07
5.6.90.0030.04320.99
5.6.80.0070.03020.57
5.6.70.0000.03720.46
5.6.60.0030.03320.48
5.6.50.0100.02720.45
5.6.40.0100.03320.41
5.6.30.0000.04020.50
5.6.20.0000.04320.43
5.6.10.0070.03020.38
5.6.00.0070.03720.39
5.5.380.0030.08320.55
5.5.370.0130.05320.32
5.5.360.0030.05020.39
5.5.350.0030.04320.43
5.5.340.0030.03320.91
5.5.330.0070.04020.79
5.5.320.0070.03020.85
5.5.310.0070.03020.94
5.5.300.0030.03320.81
5.5.290.0100.03020.80
5.5.280.0100.03020.80
5.5.270.0030.04320.88
5.5.260.0030.03320.81
5.5.250.0000.03720.71
5.5.240.0000.05320.16
5.5.230.0030.03320.21
5.5.220.0000.03720.24
5.5.210.0030.03320.25
5.5.200.0070.03020.29
5.5.190.0100.02720.16
5.5.180.0100.02720.25
5.5.160.0070.02720.20
5.5.150.0070.03320.21
5.5.140.0030.04720.14
5.5.130.0000.06720.11
5.5.120.0030.04720.13
5.5.110.0030.04720.23
5.5.100.0100.08020.12
5.5.90.0030.08319.95
5.5.80.0000.05719.95
5.5.70.0070.06720.03
5.5.60.0070.07720.12
5.5.50.0000.06720.11
5.5.40.0070.07320.02
5.5.30.0000.04320.14
5.5.20.0030.08320.12
5.5.10.0070.08020.09
5.5.00.0030.08019.95
5.4.450.0030.04019.31
5.4.440.0030.04019.46
5.4.430.0070.03019.37
5.4.420.0000.03719.38
5.4.410.0030.04019.24
5.4.400.0030.03019.13
5.4.390.0070.02719.13
5.4.380.0030.03319.05
5.4.370.0000.04019.03
5.4.360.0170.02319.08
5.4.350.0000.03318.79
5.4.340.0030.04019.06
5.4.320.0030.04019.15
5.4.310.0070.03318.90
5.4.300.0030.05319.09
5.4.290.0070.03319.03
5.4.280.0000.08319.00
5.4.270.0070.06719.14
5.4.260.0030.07019.23
5.4.250.0130.07019.13
5.4.240.0030.07319.12
5.4.230.0000.09319.04
5.4.220.0070.07719.13
5.4.210.0000.08018.78
5.4.200.0100.07319.17
5.4.190.0070.07019.09
5.4.180.0100.07019.15
5.4.170.0070.08019.02
5.4.160.0130.06718.96
5.4.150.0130.05018.95
5.4.140.0100.07016.36
5.4.130.0100.06716.12
5.4.120.0030.06316.24
5.4.110.0100.07016.45
5.4.100.0070.07316.23
5.4.90.0170.05016.43
5.4.80.0070.07016.37
5.4.70.0070.05316.20
5.4.60.0130.05016.42
5.4.50.0200.05016.24
5.4.40.0070.07316.37
5.4.30.0030.05716.23
5.4.20.0070.07316.31
5.4.10.0030.05316.36
5.4.00.0100.06715.68
5.3.290.0000.04314.64
5.3.280.0130.07314.56
5.3.270.0000.07714.54
5.3.260.0130.07014.62
5.3.250.0030.07314.54
5.3.240.0100.05714.61
5.3.230.0100.04014.43
5.3.220.0100.04014.55
5.3.210.0100.07314.43
5.3.200.0000.08014.53
5.3.190.0100.04014.53
5.3.180.0100.05314.57
5.3.170.0100.06714.56
5.3.160.0030.04714.43
5.3.150.0030.06714.52
5.3.140.0100.07314.58
5.3.130.0030.06314.55
5.3.120.0130.04014.51
5.3.110.0070.07714.52
5.3.100.0030.04313.91
5.3.90.0170.06713.94
5.3.80.0170.06314.01
5.3.70.0070.07313.99
5.3.60.0070.08314.00
5.3.50.0070.07013.91
5.3.40.0070.06013.74
5.3.30.0070.05713.68
5.3.20.0030.06313.48
5.3.10.0100.04313.43
5.3.00.0070.06713.60
5.2.170.0070.06311.18
5.2.160.0070.04711.18
5.2.150.0130.05711.07
5.2.140.0030.06011.23
5.2.130.0100.05011.11
5.2.120.0030.06011.18
5.2.110.0100.05311.18
5.2.100.0030.06011.04
5.2.90.0070.06010.91
5.2.80.0030.06710.97
5.2.70.0030.06010.98
5.2.60.0100.04010.91
5.2.50.0070.06011.04
5.2.40.0130.05011.01
5.2.30.0000.06010.81
5.2.20.0130.05710.92
5.2.10.0030.06010.91
5.2.00.0030.04010.64
5.1.60.0130.04310.06
5.1.50.0100.04710.02
5.1.40.0030.0539.98
5.1.30.0070.04010.25
5.1.20.0100.05310.41
5.1.10.0070.03710.13
5.1.00.0100.0479.93
5.0.50.0070.0308.41
5.0.40.0000.0278.45
5.0.30.0100.0608.22
5.0.20.0100.0338.20
5.0.10.0000.0338.30
5.0.00.0000.0608.21
4.4.90.0070.0338.10
4.4.80.0030.0338.10
4.4.70.0070.0338.10
4.4.60.0030.0308.10
4.4.50.0030.0308.10
4.4.40.0030.0478.10
4.4.30.0030.0308.10
4.4.20.0000.0378.10
4.4.10.0030.0338.10
4.4.00.0070.0408.10
4.3.110.0000.0338.10
4.3.100.0000.0278.10
4.3.90.0030.0338.10
4.3.80.0070.0508.10
4.3.70.0000.0338.10
4.3.60.0030.0338.10
4.3.50.0030.0308.10
4.3.40.0030.0478.10
4.3.30.0000.0408.10
4.3.20.0030.0378.10
4.3.10.0000.0338.10
4.3.00.0030.0178.10

preferences:
43.82 ms | 401 KiB | 5 Q