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.0100.01016.75
8.3.50.0140.00722.12
8.3.40.0110.00418.76
8.3.30.0070.01119.22
8.3.20.0050.00220.29
8.3.10.0090.00621.66
8.3.00.0060.00319.25
8.2.180.0210.00018.28
8.2.170.0120.00622.96
8.2.160.0100.00322.25
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0030.00519.79
8.2.110.0040.00420.96
8.2.100.0000.01217.63
8.2.90.0040.00419.21
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0040.00418.05
8.2.50.0060.00318.07
8.2.40.0060.00319.88
8.2.30.0000.00718.08
8.2.20.0000.00717.73
8.2.10.0070.00018.05
8.2.00.0030.00617.77
8.1.280.0030.01725.92
8.1.270.0120.00320.83
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.88
8.1.230.0090.00318.72
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.24
8.1.190.0000.00817.23
8.1.180.0000.00718.10
8.1.170.0080.00020.44
8.1.160.0040.00422.04
8.1.150.0040.00418.88
8.1.140.0070.00017.47
8.1.130.0000.00717.84
8.1.120.0030.00317.49
8.1.110.0070.00017.30
8.1.100.0060.00317.38
8.1.90.0000.00717.54
8.1.80.0040.00417.46
8.1.70.0000.00717.40
8.1.60.0030.00517.61
8.1.50.0060.00317.45
8.1.40.0040.00417.52
8.1.30.0030.00617.64
8.1.20.0030.00517.59
8.1.10.0000.00917.38
8.1.00.0000.00917.48
8.0.300.0030.00518.77
8.0.290.0000.00716.63
8.0.280.0040.00418.39
8.0.270.0060.00317.29
8.0.260.0050.00217.23
8.0.250.0070.00017.01
8.0.240.0030.00316.97
8.0.230.0040.00416.99
8.0.220.0000.00616.91
8.0.210.0070.00016.96
8.0.200.0000.00716.99
8.0.190.0040.00416.88
8.0.180.0040.00416.86
8.0.170.0040.00416.95
8.0.160.0030.00516.89
8.0.150.0040.00416.86
8.0.140.0040.00416.84
8.0.130.0000.00613.39
8.0.120.0000.00816.94
8.0.110.0030.00516.76
8.0.100.0070.00016.89
8.0.90.0000.00716.70
8.0.80.0090.01216.91
8.0.70.0040.00416.94
8.0.60.0070.00016.81
8.0.50.0050.00316.95
8.0.30.0150.00717.12
8.0.20.0060.01317.42
8.0.10.0000.00716.98
8.0.00.0090.00816.90
7.4.330.0060.00015.20
7.4.320.0030.00316.60
7.4.300.0040.00716.61
7.4.290.0030.00316.48
7.4.280.0070.00016.60
7.4.270.0030.00416.53
7.4.260.0000.00716.59
7.4.250.0000.00816.48
7.4.240.0030.00416.54
7.4.230.0060.00016.61
7.4.220.0070.01116.65
7.4.210.0070.01016.64
7.4.200.0070.00016.70
7.4.160.0090.00616.76
7.4.150.0200.01317.40
7.4.140.0080.00917.86
7.4.130.0090.01116.64
7.4.120.0100.00816.55
7.4.110.0060.01116.48
7.4.100.0120.01116.44
7.4.90.0070.01016.52
7.4.80.0110.01019.39
7.4.70.0130.00616.63
7.4.60.0130.00316.44
7.4.50.0080.00016.64
7.4.40.0090.01516.55
7.4.30.0140.00616.53
7.4.00.0060.01214.84
7.3.330.0060.00013.08
7.3.320.0080.00713.03
7.3.310.0000.00716.30
7.3.300.0000.00716.24
7.3.290.0060.00016.29
7.3.280.0080.00916.32
7.3.270.0070.01117.40
7.3.260.0080.00816.58
7.3.250.0080.01016.49
7.3.240.0040.01216.50
7.3.230.0040.01816.50
7.3.210.0070.01016.44
7.3.200.0060.01219.39
7.3.190.0060.00916.53
7.3.180.0060.00916.28
7.3.170.0090.00916.32
7.3.160.0150.00016.34
7.3.10.0110.00816.66
7.3.00.0100.00516.44
7.2.330.0160.00016.52
7.2.320.0160.01016.66
7.2.310.0060.01416.75
7.2.300.0180.00416.68
7.2.290.0060.01616.36
7.2.130.0030.00816.80
7.2.120.0080.00816.92
7.2.110.0050.00916.95
7.2.100.0080.00817.01
7.2.90.0060.01216.76
7.2.80.0060.00617.00
7.2.70.0030.01216.98
7.2.60.0060.01016.93
7.2.50.0080.00516.74
7.2.40.0070.00516.91
7.2.30.0050.01016.82
7.2.20.0070.00716.99
7.2.10.0070.00716.87
7.2.00.0060.01017.60
7.1.250.0080.00815.60
7.1.240.0100.00315.58
7.1.230.0070.00415.96
7.1.220.0100.00715.96
7.1.210.0070.00715.85
7.1.200.0100.01015.78
7.1.190.0110.00815.67
7.1.180.0080.01115.77
7.1.170.0070.00715.73
7.1.160.0110.00415.77
7.1.150.0100.00615.77
7.1.140.0140.00015.80
7.1.130.0060.01015.71
7.1.120.0070.00415.89
7.1.110.0140.00315.66
7.1.100.0050.01116.89
7.1.90.0140.00315.86
7.1.80.0000.01715.88
7.1.70.0060.00716.51
7.1.60.0130.00717.57
7.1.50.0050.01116.40
7.1.40.0070.00715.82
7.1.30.0060.00615.69
7.1.20.0120.00315.86
7.1.10.0090.00915.51
7.1.00.0060.04118.94
7.0.330.0070.00715.34
7.0.320.0130.00315.58
7.0.310.0070.00715.33
7.0.300.0100.00715.37
7.0.290.0030.01015.00
7.0.280.0150.00415.48
7.0.270.0030.01015.20
7.0.260.0040.00715.43
7.0.250.0110.00415.61
7.0.240.0140.00415.07
7.0.230.0060.00615.60
7.0.220.0100.01015.44
7.0.210.0080.00815.09
7.0.200.0060.00816.02
7.0.190.0090.00615.31
7.0.180.0060.00615.38
7.0.170.0060.00615.38
7.0.160.0040.00815.53
7.0.150.0040.01115.38
7.0.140.0070.03318.71
7.0.130.0040.01215.37
7.0.120.0170.00015.58
7.0.110.0090.03518.53
7.0.100.0060.04318.60
7.0.90.0150.03818.42
7.0.80.0100.04118.63
7.0.70.0080.04318.68
7.0.60.0050.05018.56
7.0.50.0070.04518.65
7.0.40.0090.04216.61
7.0.30.0060.02816.59
7.0.20.0080.04416.66
7.0.10.0120.04016.65
7.0.00.0030.04716.67
5.6.380.0000.01314.61
5.6.370.0110.00514.13
5.6.360.0040.01214.20
5.6.350.0060.00914.48
5.6.340.0030.01114.38
5.6.330.0060.00314.25
5.6.320.0040.01114.71
5.6.310.0100.00713.80
5.6.300.0080.00314.14
5.6.290.0040.00714.38
5.6.280.0030.04217.76
5.6.270.0030.01014.20
5.6.260.0070.03117.45
5.6.250.0070.04317.53
5.6.240.0030.04217.61
5.6.230.0050.04917.43
5.6.220.0050.04217.63
5.6.210.0050.04717.43
5.6.200.0100.03717.48
5.6.190.0070.04417.62
5.6.180.0050.04317.75
5.6.170.0090.03817.29
5.6.160.0030.04317.57
5.6.150.0050.04617.51
5.6.140.0120.03717.43
5.6.130.0080.03717.52
5.6.120.0080.02517.32
5.6.110.0060.04617.59
5.6.100.0080.04017.69
5.6.90.0080.04117.47
5.6.80.0080.04117.05
5.6.70.0050.04217.18
5.6.60.0090.04117.09
5.6.50.0030.02717.02
5.6.40.0050.04417.18
5.6.30.0050.02717.09
5.6.20.0120.03717.05
5.6.10.0130.03817.11
5.6.00.0100.03817.12
5.5.380.0070.02014.38
5.5.370.0020.04614.36
5.5.360.0030.04914.22
5.5.350.0050.04214.27
5.5.340.0090.03914.55
5.5.330.0030.02814.31
5.5.320.0060.03814.30
5.5.310.0040.04214.63
5.5.300.0030.04414.55
5.5.290.0050.02714.71
5.5.280.0030.04014.52
5.5.270.0000.04214.42
5.5.260.0100.02814.46
5.5.250.0050.04214.40
5.5.240.0020.04214.16
5.5.230.0020.04114.34
5.5.220.0030.03914.25
5.5.210.0030.04314.12
5.5.200.0090.04014.26
5.5.190.0080.03814.29
5.5.180.0030.04014.32
5.5.170.0060.00611.09
5.5.160.0060.02814.19
5.5.150.0030.03514.31
5.5.140.0050.03914.21
5.5.130.0080.02214.29
5.5.120.0050.04213.96
5.5.110.0030.04314.30
5.5.100.0050.04014.36
5.5.90.0050.03914.14
5.5.80.0020.04514.31
5.5.70.0030.04314.23
5.5.60.0030.03813.98
5.5.50.0040.04214.22
5.5.40.0030.03614.24
5.5.30.0030.02713.99
5.5.20.0100.04014.06
5.5.10.0030.04314.21
5.5.00.0040.04114.20
5.4.450.0050.03915.31
5.4.440.0060.02815.27
5.4.430.0060.04015.29
5.4.420.0050.04115.20
5.4.410.0060.03115.07
5.4.400.0110.03615.10
5.4.390.0080.03715.11
5.4.380.0070.03814.92
5.4.370.0050.04114.97
5.4.360.0050.04214.89
5.4.350.0070.04214.97
5.4.340.0030.02415.09
5.4.330.0090.00010.78
5.4.320.0020.04614.94
5.4.310.0120.02214.92
5.4.300.0040.04315.04
5.4.290.0100.03815.01
5.4.280.0120.03914.95
5.4.270.0090.03514.98
5.4.260.0100.02815.04
5.4.250.0030.04515.15
5.4.240.0080.02814.99
5.4.230.0120.03615.07
5.4.220.0120.04014.97
5.4.210.0020.03114.95
5.4.200.0050.04115.04
5.4.190.0110.03515.16
5.4.180.0110.04014.95
5.4.170.0130.03514.94
5.4.160.0070.04315.14
5.4.150.0100.03814.92
5.4.140.0050.03913.55
5.4.130.0070.03713.63
5.4.120.0070.02313.92
5.4.110.0090.03413.62
5.4.100.0060.02313.75
5.4.90.0050.03713.89
5.4.80.0020.04013.68
5.4.70.0050.04113.54
5.4.60.0060.03513.85
5.4.50.0050.03613.65
5.4.40.0020.04213.64
5.4.30.0080.03513.71
5.4.20.0050.04313.47
5.4.10.0070.03613.67
5.4.00.0050.04113.21
5.3.290.0060.03912.71
5.3.280.0050.03012.59
5.3.270.0070.04012.53
5.3.260.0070.04312.38
5.3.250.0090.03012.44
5.3.240.0100.01812.46
5.3.230.0040.04312.61
5.3.220.0050.02312.54
5.3.210.0060.04012.42
5.3.200.0030.04012.46
5.3.190.0080.03012.45
5.3.180.0090.03712.52
5.3.170.0050.03912.42
5.3.160.0050.03612.46
5.3.150.0000.03612.50
5.3.140.0050.04012.34
5.3.130.0050.03912.54
5.3.120.0070.03812.44
5.3.110.0080.03712.53
5.3.100.0050.03112.23
5.3.90.0020.03312.28
5.3.80.0070.03612.04
5.3.70.0070.03312.05
5.3.60.0000.04512.10
5.3.50.0030.04012.05
5.3.40.0010.03412.01
5.3.30.0050.03812.27
5.3.20.0040.03911.98
5.3.10.0070.03511.77
5.3.00.0070.03611.86
5.2.170.0090.02611.48
5.2.160.0050.03011.48
5.2.150.0030.03511.48
5.2.140.0080.02611.48
5.2.130.0100.02511.48
5.2.120.0080.03211.48
5.2.110.0020.03611.48
5.2.100.0020.03311.48
5.2.90.0050.03311.48
5.2.80.0040.03311.48
5.2.70.0090.02811.48
5.2.60.0060.03111.48
5.2.50.0060.03111.48
5.2.40.0050.03211.48
5.2.30.0020.03411.48
5.2.20.0030.03311.48
5.2.10.0020.02811.48
5.2.00.0030.03511.48
5.1.60.0060.02811.48
5.1.50.0030.02611.48
5.1.40.0040.02711.48
5.1.30.0020.03311.48
5.1.20.0070.02811.48
5.1.10.0020.02911.48
5.1.00.0020.03311.48
5.0.50.0050.02211.48
5.0.40.0030.02311.48
5.0.30.0020.02811.48
5.0.20.0020.02311.48
5.0.10.0020.02311.48
5.0.00.0040.03211.48
4.4.90.0030.01711.48
4.4.80.0000.02011.48
4.4.70.0020.01011.48
4.4.60.0010.02111.48
4.4.50.0020.01911.48
4.4.40.0030.02811.48
4.4.30.0070.01211.48
4.4.20.0020.01811.48
4.4.10.0020.01811.48
4.4.00.0020.02811.48
4.3.110.0050.01811.48
4.3.100.0020.01711.48
4.3.90.0020.02111.48
4.3.80.0020.02711.48
4.3.70.0020.02011.48
4.3.60.0020.02011.48
4.3.50.0020.01711.48
4.3.40.0030.02411.48
4.3.30.0000.01911.48
4.3.20.0000.02111.48
4.3.10.0000.02211.48
4.3.00.0000.02211.48

preferences:
50.14 ms | 401 KiB | 5 Q