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.00716.50
8.3.50.0120.00821.91
8.3.40.0170.00018.67
8.3.30.0000.01418.81
8.3.20.0080.00020.34
8.3.10.0100.00721.69
8.3.00.0040.00419.25
8.2.180.0100.01318.06
8.2.170.0090.00922.96
8.2.160.0060.00922.00
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.55
8.2.110.0140.01021.18
8.2.100.0080.00318.22
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0050.00317.61
8.2.60.0000.00817.92
8.2.50.0000.00818.07
8.2.40.0060.00320.07
8.2.30.0040.00418.15
8.2.20.0040.00417.84
8.2.10.0000.00718.09
8.2.00.0050.00217.80
8.1.280.0030.01725.92
8.1.270.0040.01520.83
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.01223.89
8.1.230.0090.00317.89
8.1.220.0060.00317.79
8.1.210.0000.00818.77
8.1.200.0060.00317.38
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0090.00020.43
8.1.160.0000.00722.04
8.1.150.0040.00418.87
8.1.140.0050.00217.44
8.1.130.0030.00317.81
8.1.120.0070.00017.49
8.1.110.0080.00017.55
8.1.100.0000.00817.47
8.1.90.0070.00017.50
8.1.80.0040.00417.49
8.1.70.0070.00017.35
8.1.60.0040.00417.50
8.1.50.0040.00417.55
8.1.40.0040.00417.54
8.1.30.0050.00317.71
8.1.20.0030.00517.57
8.1.10.0000.00717.52
8.1.00.0000.00817.35
8.0.300.0070.00018.77
8.0.290.0050.00216.75
8.0.280.0080.00018.46
8.0.270.0080.00017.41
8.0.260.0030.00317.32
8.0.250.0060.00016.95
8.0.240.0030.00316.96
8.0.230.0000.00716.92
8.0.220.0000.00716.89
8.0.210.0000.00716.79
8.0.200.0030.00316.93
8.0.190.0020.00516.88
8.0.180.0080.00017.00
8.0.170.0080.00016.92
8.0.160.0070.00016.85
8.0.150.0000.00716.87
8.0.140.0030.00316.77
8.0.130.0030.00313.34
8.0.120.0000.00816.89
8.0.110.0040.00416.93
8.0.100.0040.00416.98
8.0.90.0000.00716.91
8.0.80.0090.00616.89
8.0.70.0000.00716.91
8.0.60.0070.00016.82
8.0.50.0000.00716.81
8.0.30.0070.01417.07
8.0.20.0070.01517.40
8.0.10.0040.00417.16
8.0.00.0090.01116.69
7.4.330.0050.00015.13
7.4.320.0030.00316.39
7.4.300.0030.00616.64
7.4.290.0030.00316.55
7.4.280.0030.00316.54
7.4.270.0000.00716.55
7.4.260.0040.00416.60
7.4.250.0070.00016.61
7.4.240.0070.00016.62
7.4.230.0030.00316.63
7.4.220.0110.00716.52
7.4.210.0100.00516.63
7.4.200.0030.00416.43
7.4.160.0110.01116.55
7.4.150.0220.02117.40
7.4.140.0070.01017.86
7.4.130.0100.00716.58
7.4.120.0070.01016.50
7.4.110.0100.01316.62
7.4.100.0110.00616.57
7.4.90.0030.01316.46
7.4.80.0120.01119.39
7.4.70.0080.00816.75
7.4.60.0030.01316.48
7.4.50.0000.00816.16
7.4.40.0090.01516.46
7.4.30.0160.00416.59
7.4.00.0100.00714.85
7.3.330.0060.00013.17
7.3.320.0110.00413.07
7.3.310.0070.00016.34
7.3.300.0050.00216.34
7.3.290.0070.00716.29
7.3.280.0120.00316.30
7.3.270.0080.00817.40
7.3.260.0130.00316.32
7.3.250.0120.00616.46
7.3.240.0100.00616.28
7.3.230.0130.00616.56
7.3.210.0100.00716.39
7.3.200.0120.00419.39
7.3.190.0070.01016.50
7.3.180.0110.00416.55
7.3.170.0140.00616.51
7.3.160.0030.01216.50
7.3.10.0070.00516.47
7.3.00.0100.00516.56
7.2.330.0070.01016.53
7.2.320.0160.01016.71
7.2.310.0080.00816.38
7.2.300.0110.00616.43
7.2.290.0140.00816.50
7.2.130.0060.00916.83
7.2.120.0080.00616.81
7.2.110.0070.00516.77
7.2.100.0090.00616.75
7.2.90.0110.00716.72
7.2.80.0070.00716.92
7.2.70.0120.00416.89
7.2.60.0080.00716.88
7.2.50.0100.00516.89
7.2.40.0110.00516.96
7.2.30.0070.00816.99
7.2.20.0070.00816.94
7.2.10.0080.01116.96
7.2.00.0070.00717.44
7.1.250.0060.00615.63
7.1.240.0110.00815.78
7.1.230.0140.00615.73
7.1.220.0030.01315.86
7.1.210.0110.00615.93
7.1.200.0080.00715.73
7.1.190.0100.00515.77
7.1.180.0140.00415.86
7.1.170.0060.00615.71
7.1.160.0090.00615.80
7.1.150.0100.00515.89
7.1.140.0100.00715.95
7.1.130.0060.00815.77
7.1.120.0130.00315.81
7.1.110.0130.00515.96
7.1.100.0090.00517.07
7.1.90.0130.00015.95
7.1.80.0610.00015.87
7.1.70.0030.01116.36
7.1.60.0090.00917.53
7.1.50.0090.00716.49
7.1.40.0110.00615.74
7.1.30.0070.00715.55
7.1.20.0110.00415.77
7.1.10.0110.00015.70
7.1.00.0090.03919.04
7.0.320.0160.00015.19
7.0.310.0130.00415.36
7.0.300.0040.00715.35
7.0.290.0090.00315.49
7.0.280.0080.00815.54
7.0.270.0000.01415.44
7.0.260.0130.00315.54
7.0.250.0040.01115.44
7.0.240.0140.00515.46
7.0.230.0070.00715.45
7.0.220.0160.00015.47
7.0.210.0070.00415.49
7.0.200.0050.00716.05
7.0.190.0080.00415.25
7.0.180.0080.00815.21
7.0.170.0100.00315.29
7.0.160.0130.00315.31
7.0.150.0120.00315.55
7.0.140.0040.02118.57
7.0.130.0110.00715.43
7.0.120.0100.00415.28
7.0.110.0100.00315.57
7.0.100.0090.00515.39
7.0.90.0080.00515.31
7.0.80.0000.01715.28
7.0.70.2600.02217.66
7.0.60.0090.02817.62
7.0.50.0080.02816.70
7.0.40.0070.04417.00
7.0.30.0310.02016.96
7.0.20.0190.02816.74
7.0.10.0250.03816.88
7.0.00.0130.02016.86
5.6.380.0140.00014.74
5.6.370.0090.00314.55
5.6.360.0030.01014.25
5.6.350.0060.00614.80
5.6.340.0110.00414.45
5.6.330.0110.00314.63
5.6.320.0130.00314.61
5.6.310.0070.00714.60
5.6.300.0050.00914.57
5.6.290.0120.00414.70
5.6.280.0060.03817.71
5.6.270.0110.00714.45
5.6.260.0130.00014.48
5.6.250.0120.00514.52
5.6.240.0090.00914.19
5.6.230.0100.00214.43
5.6.220.0000.01214.20
5.6.210.0070.03417.49
5.6.200.0140.04216.19
5.6.190.0090.03517.42
5.6.180.0150.02817.45
5.6.170.0140.02617.51
5.6.160.0070.03517.46
5.6.150.0100.04216.32
5.6.140.0070.02516.36
5.6.130.0120.03716.38
5.6.120.0090.03817.60
5.6.110.0020.03617.70
5.6.100.0080.03417.74
5.6.90.0120.03717.90
5.6.80.0040.04517.22
5.6.70.0190.03917.49
5.6.60.0100.00314.14
5.6.50.0100.00014.32
5.6.40.0070.01014.44
5.6.30.0100.00514.38
5.6.20.0070.00714.20
5.6.10.0110.00414.35
5.6.00.0060.00614.29
5.5.380.0110.00311.36
5.5.370.0090.00411.07
5.5.360.0050.00511.22
5.5.350.0080.02315.80
5.5.340.0030.04514.61
5.5.330.0110.04015.59
5.5.320.0090.02815.85
5.5.310.0150.02815.66
5.5.300.0100.04414.48
5.5.290.0120.03514.52
5.5.280.0060.02116.00
5.5.270.0060.04615.97
5.5.260.0070.02416.13
5.5.250.0150.03515.89
5.5.240.0060.02815.67
5.5.230.0070.00411.22
5.5.220.0000.00811.14
5.5.210.0000.01011.07
5.5.200.0000.01011.07
5.5.190.0050.00811.07
5.5.180.0060.00611.17
5.5.170.0080.00814.35
5.5.160.0030.01011.26
5.5.150.0030.00711.07
5.5.140.0130.00011.26
5.5.130.0030.00911.16
5.5.120.0080.00511.07
5.5.110.0040.00911.07
5.5.100.0070.00411.12
5.5.90.0090.00311.16
5.5.80.0110.00311.22
5.5.70.0120.00011.07
5.5.60.0070.00711.07
5.5.50.0040.01211.09
5.5.40.0000.01011.07
5.5.30.0080.00411.10
5.5.20.0120.00311.07
5.5.10.0070.00711.18
5.5.00.0060.00311.10
5.4.450.0400.03815.43
5.4.440.0150.02915.18
5.4.430.0090.03615.34
5.4.420.0160.02515.38
5.4.410.0090.03415.18
5.4.400.0200.02314.81
5.4.390.0120.03114.88
5.4.380.0120.03214.87
5.4.370.0120.02714.80
5.4.360.0120.02715.00
5.4.350.0130.03214.88
5.4.340.0050.03714.91
5.4.330.0110.00011.07
5.4.320.0100.03314.77
5.4.310.0130.03714.83
5.4.300.0180.02714.83
5.4.290.0150.02314.84
5.4.280.0140.03114.89
5.4.270.0140.03014.79
5.4.260.0180.03214.92
5.4.250.0180.02314.94
5.4.240.0160.02614.77
5.4.230.0100.03014.87
5.4.220.0160.03014.87
5.4.210.0090.03114.92
5.4.200.0100.02813.84
5.4.190.0130.02814.89
5.4.180.0150.02714.83
5.4.170.0100.03214.94
5.4.160.0210.02714.98
5.4.150.0150.03014.86
5.4.140.0160.02813.67
5.4.130.0130.02513.63
5.4.120.0090.03213.61
5.4.110.0180.02113.81
5.4.100.0150.02613.59
5.4.90.0110.03413.64
5.4.80.0100.02913.61
5.4.70.0070.03513.55
5.4.60.0260.03113.67
5.4.50.0060.03313.59
5.4.40.0200.02513.69
5.4.30.0170.02613.57
5.4.20.0080.03313.62
5.4.10.0170.02513.80
5.4.00.0100.03913.34
5.3.290.0130.03112.92
5.3.280.0130.02812.86
5.3.270.0070.03812.83
5.3.260.0150.02912.80
5.3.250.0150.03512.83
5.3.240.0150.03112.86
5.3.230.0220.02912.89
5.3.220.0150.02512.87
5.3.210.0170.02612.78
5.3.200.0150.02512.83
5.3.190.0210.03112.81
5.3.180.0140.02512.83
5.3.170.0080.03312.79
5.3.160.0150.03212.80
5.3.150.0130.02812.82
5.3.140.0080.03112.87
5.3.130.0220.03012.76
5.3.120.0160.03212.86
5.3.110.0190.03212.77
5.3.100.0120.03012.60
5.3.90.0170.02412.55
5.3.80.0180.03312.54
5.3.70.0190.02312.53
5.3.60.0160.02712.54
5.3.50.0220.02312.53
5.3.40.0180.02412.53
5.3.30.0160.03012.45
5.3.20.0140.02712.38
5.3.10.0130.02712.33
5.3.00.0050.03312.35
5.2.170.0120.03111.10
5.2.160.0110.02711.09
5.2.150.0100.02511.13
5.2.140.0080.02511.09
5.2.130.0110.02011.08
5.2.120.0150.01711.11
5.2.110.0110.02511.11
5.2.100.0130.01611.09
5.2.90.0090.02211.08
5.2.80.0070.02611.05
5.2.70.0080.03511.07
5.2.60.0110.03111.05
5.2.50.0180.02411.08
5.2.40.0080.03111.00
5.2.30.0080.02811.05
5.2.20.0050.02411.02
5.2.10.0060.02610.97
5.2.00.0140.01710.95
5.1.60.0060.02410.55
5.1.50.0120.01710.54
5.1.40.0100.01810.56
5.1.30.0130.01810.79
5.1.20.0080.02810.72
5.1.10.0120.02110.57
5.1.00.0100.02210.59
5.0.50.0090.0189.84
5.0.40.0050.0179.85
5.0.30.0060.0239.70
5.0.20.0090.0179.63
5.0.10.0070.0159.67
5.0.00.0050.0379.66
4.4.90.0030.0148.51
4.4.80.0070.0158.49
4.4.70.0060.0148.48
4.4.60.0070.0148.50
4.4.50.0030.0158.52
4.4.40.0050.0208.54
4.4.30.0070.0128.49
4.4.20.0060.0138.52
4.4.10.0050.0128.54
4.4.00.0020.0238.50
4.3.110.0090.0118.47
4.3.100.0030.0128.45
4.3.90.0030.0148.45
4.3.80.0040.0188.48
4.3.70.0050.0128.46
4.3.60.0070.0128.46
4.3.50.0040.0128.50
4.3.40.0040.0208.47
4.3.30.0050.0147.88
4.3.20.0040.0167.87
4.3.10.0060.0117.83
4.3.00.0060.0139.05

preferences:
47.77 ms | 401 KiB | 5 Q