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 = 3; $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.0120.00916.88
8.3.50.0150.00722.12
8.3.40.0180.00418.67
8.3.30.0090.00619.04
8.3.20.0040.00420.29
8.3.10.0080.00021.90
8.3.00.0080.00019.25
8.2.180.0090.00916.32
8.2.170.0070.00722.96
8.2.160.0030.01520.43
8.2.150.0050.00324.18
8.2.140.0150.00024.66
8.2.130.0030.00626.16
8.2.120.0040.00419.67
8.2.110.0060.00321.07
8.2.100.0070.00417.50
8.2.90.0000.00819.05
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00418.03
8.2.50.0000.00918.07
8.2.40.0030.00619.74
8.2.30.0040.00418.00
8.2.20.0040.00417.81
8.2.10.0000.00718.20
8.2.00.0030.00517.83
8.1.280.0030.01725.92
8.1.270.0120.00620.53
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00023.97
8.1.230.0120.00018.69
8.1.220.0070.00317.77
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00420.43
8.1.160.0080.00021.96
8.1.150.0030.00518.78
8.1.140.0000.00817.39
8.1.130.0040.00417.86
8.1.120.0030.00517.54
8.1.110.0000.00717.45
8.1.100.0000.00717.48
8.1.90.0000.00817.51
8.1.80.0040.00417.46
8.1.70.0000.00717.48
8.1.60.0060.00317.56
8.1.50.0030.00517.54
8.1.40.0040.00417.55
8.1.30.0040.00417.61
8.1.20.0000.00817.69
8.1.10.0000.00817.46
8.1.00.0030.00617.48
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0000.00818.34
8.0.270.0000.00817.29
8.0.260.0040.00417.27
8.0.250.0040.00417.01
8.0.240.0050.00216.99
8.0.230.0030.00317.04
8.0.220.0000.00716.94
8.0.210.0030.00316.92
8.0.200.0030.00316.93
8.0.190.0000.00816.97
8.0.180.0040.00416.84
8.0.170.0030.00616.98
8.0.160.0000.00716.97
8.0.150.0000.00716.88
8.0.140.0050.00216.91
8.0.130.0030.00313.37
8.0.120.0050.00316.86
8.0.110.0040.00416.84
8.0.100.0050.00316.77
8.0.90.0000.00716.80
8.0.80.0130.00716.95
8.0.70.0000.00816.92
8.0.60.0000.00716.81
8.0.50.0040.00416.79
8.0.30.0100.01517.02
8.0.20.0120.01017.45
8.0.10.0040.00417.03
8.0.00.0080.01116.75
7.4.330.0000.00515.11
7.4.320.0000.00716.54
7.4.300.0000.00816.59
7.4.290.0030.00316.54
7.4.280.0000.00816.66
7.4.270.0030.00316.44
7.4.260.0070.00016.54
7.4.250.0040.00416.59
7.4.240.0070.00016.52
7.4.230.0070.00016.28
7.4.220.0120.00916.54
7.4.210.0150.00016.56
7.4.200.0000.00716.71
7.4.160.0090.00616.61
7.4.150.0140.00317.40
7.4.140.0090.00917.86
7.4.130.0100.00816.34
7.4.120.0120.00816.43
7.4.110.0060.01216.42
7.4.100.0130.00716.59
7.4.90.0000.01716.39
7.4.80.0120.00619.39
7.4.70.0090.00816.48
7.4.60.0100.01016.66
7.4.50.0030.00616.59
7.4.40.0030.01516.60
7.4.30.0150.00716.50
7.4.00.0100.00714.86
7.3.330.0000.00613.24
7.3.320.0090.00413.01
7.3.310.0000.00616.48
7.3.300.0000.00716.36
7.3.290.0060.00716.31
7.3.280.0050.01116.32
7.3.270.0090.00917.40
7.3.260.0120.00616.41
7.3.250.0090.00916.47
7.3.240.0120.00616.45
7.3.230.0110.01116.54
7.3.210.0000.01616.32
7.3.200.0160.00619.39
7.3.190.0070.01416.49
7.3.180.0120.00316.46
7.3.170.0140.01116.43
7.3.160.0030.01316.34
7.3.10.0030.00916.76
7.3.00.0060.00616.82
7.2.330.0080.00816.43
7.2.320.0150.00316.64
7.2.310.0060.01116.45
7.2.300.0090.00916.64
7.2.290.0090.01216.66
7.2.130.0030.00916.97
7.2.120.0000.01216.79
7.2.110.0000.01316.90
7.2.100.0030.00517.00
7.2.90.0070.00716.84
7.2.80.0130.00016.95
7.2.70.0070.00716.85
7.2.60.0050.00716.92
7.2.50.0040.00816.73
7.2.40.0100.00316.67
7.2.30.0030.00617.07
7.2.20.0070.00717.01
7.2.10.0030.01016.98
7.2.00.0060.00817.89
7.1.250.0040.00815.72
7.1.200.0060.00315.84
7.1.100.0040.00818.26
7.1.70.0100.00717.24
7.1.60.0060.01919.46
7.1.50.0200.01634.73
7.1.00.0070.07322.36
7.0.200.0030.00316.88
7.0.140.0000.03722.01
7.0.70.2870.03719.85
7.0.60.0030.08019.76
7.0.50.0030.05717.82
7.0.40.0130.04020.23
7.0.30.0230.04720.02
7.0.20.0330.07320.17
7.0.10.0370.07020.20
7.0.00.0070.04320.01
5.6.280.0000.07721.16
5.6.210.0200.07320.62
5.6.200.0100.07718.22
5.6.190.0070.08320.41
5.6.180.0200.03720.46
5.6.170.0230.07320.38
5.6.160.0100.08320.39
5.6.150.0200.07018.11
5.6.140.0070.04318.06
5.6.130.0130.08018.22
5.6.120.0130.07721.14
5.6.110.0130.07721.11
5.6.100.0170.08021.11
5.6.90.0130.07721.11
5.6.80.0070.05320.26
5.6.70.0230.07720.38
5.5.350.0070.07320.45
5.5.340.0070.05717.95
5.5.330.0030.09020.55
5.5.320.0100.07720.20
5.5.310.0130.05720.26
5.5.300.0070.06717.95
5.5.290.0030.07318.02
5.5.280.0070.04320.80
5.5.270.0100.04720.80
5.5.260.0070.08020.80
5.5.250.0030.08320.71
5.5.240.0100.08320.26
5.4.450.0570.06319.58
5.4.440.0100.06019.42
5.4.430.0170.05319.60
5.4.420.0070.06319.13
5.4.410.0130.05319.11
5.4.400.0200.05018.75
5.4.390.0200.05318.74
5.4.380.0130.06018.51
5.4.370.0300.04018.56
5.4.360.0230.04718.68
5.4.350.0230.04718.64
5.4.340.0200.04718.61
5.4.320.0170.05318.68
5.4.310.0330.03318.50
5.4.300.0300.03718.68
5.4.290.0170.05018.71
5.4.280.0200.06318.71
5.4.270.0130.05318.52
5.4.260.0170.05018.63
5.4.250.0130.05318.71
5.4.240.0130.05318.63
5.4.230.0100.06718.67
5.4.220.0070.07318.76
5.4.210.0200.06318.58
5.4.200.0170.04716.54
5.4.190.0130.05318.40
5.4.180.0130.05718.76
5.4.170.0230.06318.64
5.4.160.0170.05318.64
5.4.150.0100.05718.77
5.4.140.0070.06016.24
5.4.130.0100.05316.18
5.4.120.0300.03716.37
5.4.110.0130.05016.34
5.4.100.0170.05016.23
5.4.90.0170.05016.13
5.4.80.0200.04716.24
5.4.70.0200.04716.21
5.4.60.0100.07016.04
5.4.50.0200.04316.14
5.4.40.0200.04716.28
5.4.30.0130.05016.17
5.4.20.0130.05316.23
5.4.10.0230.04016.09
5.4.00.0270.04715.59
5.3.290.0200.06314.68
5.3.280.0200.05014.70
5.3.270.0170.05314.71
5.3.260.0200.06014.62
5.3.250.0200.04714.61
5.3.240.0200.05014.71
5.3.230.0200.06314.70
5.3.220.0170.06714.52
5.3.210.0130.05314.47
5.3.200.0100.05314.61
5.3.190.0770.05014.58
5.3.180.0730.05714.56
5.3.170.1070.05014.48
5.3.160.0900.04714.57
5.3.150.0770.06314.55
5.3.140.1370.06714.56
5.3.130.0730.05314.45
5.3.120.0670.05714.54
5.3.110.0970.06314.63
5.3.100.1000.06314.02
5.3.90.0700.06713.92
5.3.80.0630.05014.11
5.3.70.0070.05014.11
5.3.60.0430.04713.96
5.3.50.0830.05014.05
5.3.40.0730.06013.87
5.3.30.0930.05013.92
5.3.20.0970.05313.65
5.3.10.0730.05313.65
5.3.00.0600.05013.56
5.2.170.0600.04311.10
5.2.160.0600.04711.32
5.2.150.0430.04711.11
5.2.140.0470.06011.12
5.2.130.0470.04711.04
5.2.120.0430.04311.04
5.2.110.0570.03711.03
5.2.100.0470.04011.15
5.2.90.0670.03711.17
5.2.80.0570.04011.16
5.2.70.0430.04711.04
5.2.60.0370.05011.23
5.2.50.0470.05311.00
5.2.40.0400.04311.06
5.2.30.0430.04310.89
5.2.20.0430.04010.90
5.2.10.0570.04010.96
5.2.00.0370.04010.77
5.1.60.0300.03310.08
5.1.50.0500.03710.07
5.1.40.0470.03310.03
5.1.30.0500.03710.34
5.1.20.0370.04010.38
5.1.10.0470.03310.12
5.1.00.0430.04310.10
5.0.50.0200.0278.63
5.0.40.0170.0238.53
5.0.30.0200.0478.26
5.0.20.0300.0338.32
5.0.10.0270.0338.37
5.0.00.0130.0538.38
4.4.90.0200.0275.89
4.4.80.0270.0235.84
4.4.70.0230.0205.93
4.4.60.0370.0275.89
4.4.50.0330.0275.93
4.4.40.0400.0375.93
4.4.30.0500.0235.89
4.4.20.0170.0305.98
4.4.10.0270.0205.91
4.4.00.0330.0335.96
4.3.110.0330.0235.81
4.3.100.0170.0205.80
4.3.90.0200.0275.85
4.3.80.0300.0335.82
4.3.70.0130.0175.86
4.3.60.0230.0305.81
4.3.50.0270.0235.81
4.3.40.0330.0335.78
4.3.30.0200.0274.56
4.3.20.0130.0274.59
4.3.10.0130.0234.61
4.3.00.0070.0277.02

preferences:
51.84 ms | 401 KiB | 5 Q