3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* < [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 > */ $currentpageid = $nmstart = 22; $nrtotal = 23; $nrposts = 1; $pages = ''; $ssPagingStartCount = 3; $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'>&nbsp;".$display."&nbsp;</a>"; } else { $pages .= "\n<span class=\"nl_page nl_page__currentpage\">&nbsp;".$display."&nbsp;</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.63
8.3.50.0090.01022.08
8.3.40.0110.00418.84
8.3.30.0100.00319.08
8.3.20.0080.00020.30
8.3.10.0070.00021.77
8.3.00.0060.00319.38
8.2.180.0120.00916.50
8.2.170.0130.00722.96
8.2.160.0120.00820.64
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0020.00526.16
8.2.120.0110.00419.62
8.2.110.0030.00621.04
8.2.100.0060.00617.63
8.2.90.0040.00419.36
8.2.80.0030.00617.97
8.2.70.0050.00517.75
8.2.60.0030.00518.04
8.2.50.0000.00818.07
8.2.40.0040.00420.01
8.2.30.0000.00718.17
8.2.20.0050.00317.75
8.2.10.0080.00018.30
8.2.00.0000.00717.78
8.1.280.0040.01125.92
8.1.270.0030.00620.69
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.98
8.1.230.0120.00018.89
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0070.00317.47
8.1.190.0000.00817.48
8.1.180.0000.00818.10
8.1.170.0030.00718.77
8.1.160.0070.00022.09
8.1.150.0070.00018.87
8.1.140.0000.00717.52
8.1.130.0040.00417.90
8.1.120.0000.00717.45
8.1.110.0040.00417.53
8.1.100.0040.00417.58
8.1.90.0030.00317.54
8.1.80.0070.00017.52
8.1.70.0030.00317.55
8.1.60.0060.00317.68
8.1.50.0090.00017.61
8.1.40.0060.00317.51
8.1.30.0040.00417.69
8.1.20.0070.00017.57
8.1.10.0050.00317.55
8.1.00.0050.00317.45
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.37
8.0.270.0000.00717.34
8.0.260.0060.00017.25
8.0.250.0040.00316.95
8.0.240.0060.00017.00
8.0.230.0000.00716.93
8.0.220.0000.00716.89
8.0.210.0030.00516.98
8.0.200.0000.00716.87
8.0.190.0080.00017.07
8.0.180.0040.00416.97
8.0.170.0060.00316.88
8.0.160.0000.00716.96
8.0.150.0040.00316.91
8.0.140.0000.00716.85
8.0.130.0000.00613.48
8.0.120.0000.00816.80
8.0.110.0050.00216.84
8.0.100.0040.00416.78
8.0.90.0000.00716.98
8.0.80.0070.00916.96
8.0.70.0000.00816.87
8.0.60.0050.00216.85
8.0.50.0030.00516.96
8.0.30.0120.01017.21
8.0.20.0080.01117.40
8.0.10.0040.00417.11
8.0.00.0050.01217.01
7.4.330.0050.00015.09
7.4.320.0030.00316.59
7.4.300.0000.00716.70
7.4.290.0040.00416.47
7.4.280.0060.00316.52
7.4.270.0030.00316.70
7.4.260.0020.00516.69
7.4.250.0020.00516.64
7.4.240.0060.00216.60
7.4.230.0000.00716.76
7.4.220.0060.01216.63
7.4.210.0030.01216.78
7.4.200.0030.00316.77
7.4.160.0070.01016.58
7.4.150.0030.01917.40
7.4.140.0130.00817.86
7.4.130.0110.00716.57
7.4.120.0120.00516.57
7.4.110.0100.00716.64
7.4.100.0090.00916.62
7.4.90.0070.01016.64
7.4.80.0060.01319.39
7.4.70.0100.00716.65
7.4.60.0160.00016.55
7.4.50.0040.00016.48
7.4.40.0080.00816.61
7.4.30.0190.00316.44
7.4.00.0080.00615.04
7.3.330.0000.00613.16
7.3.320.0110.00413.31
7.3.310.0000.00716.40
7.3.300.0050.00216.48
7.3.290.0060.00916.48
7.3.280.0100.00716.41
7.3.270.0100.00717.40
7.3.260.0060.01316.62
7.3.250.0080.00916.57
7.3.240.0070.01016.50
7.3.230.0050.01816.40
7.3.210.0100.00616.51
7.3.200.0030.01519.39
7.3.190.0120.00416.71
7.3.180.0090.01216.50
7.3.170.0170.00516.52
7.3.160.0030.01316.45
7.3.120.0060.00914.86
7.3.110.0030.01414.95
7.3.100.0090.00615.07
7.3.90.0060.00315.16
7.3.80.0040.00715.18
7.3.70.0040.00715.03
7.3.60.0030.01015.07
7.3.50.0070.00714.90
7.3.40.0060.00314.86
7.3.30.0040.01214.81
7.3.20.0090.00616.51
7.3.10.0060.00316.35
7.3.00.0040.00816.82
7.2.330.0090.02416.64
7.2.320.0160.00716.42
7.2.310.0030.01416.64
7.2.300.0030.01316.73
7.2.290.0140.01016.61
7.2.250.0040.01414.76
7.2.240.0070.01115.04
7.2.230.0090.00914.99
7.2.220.0060.00615.13
7.2.210.0090.00615.00
7.2.200.0040.01115.03
7.2.190.0030.01215.18
7.2.180.0040.01114.94
7.2.170.0030.01015.07
7.2.00.0130.00919.68
7.1.330.0100.00315.78
7.1.320.0080.00315.88
7.1.310.0070.00716.05
7.1.300.0030.01315.55
7.1.290.0000.01016.02
7.1.280.0100.00316.00
7.1.270.0000.01715.82
7.1.260.0040.01115.69
7.1.100.0040.00717.99
7.1.70.0030.00517.32
7.1.60.0070.01819.46
7.1.50.0180.01434.65
7.1.00.0000.08022.57
7.0.200.0040.00416.82
7.0.140.0030.03721.97
7.0.60.0070.07019.96
7.0.50.0130.06717.94
7.0.40.0130.08720.12
7.0.30.0370.06020.30
7.0.20.0200.04720.30
7.0.10.0200.05320.01
7.0.00.0030.05720.17
5.6.280.0000.07720.85
5.6.210.0000.04720.61
5.6.200.0070.07018.12
5.6.190.0130.03320.49
5.6.180.0400.05020.67
5.6.170.0200.05020.38
5.6.160.0200.07020.50
5.6.150.0030.04018.20
5.6.140.0000.05318.11
5.6.130.0100.04018.17
5.6.120.0130.06321.11
5.6.110.0000.04320.99
5.6.100.0100.08021.10
5.6.90.0100.08020.98
5.6.80.0100.03720.40
5.5.350.0430.06320.46
5.5.340.0100.05718.00
5.5.330.0100.08720.13
5.5.320.3130.03320.11
5.5.310.0370.04720.27
5.5.300.0070.08018.02
5.5.290.0130.04017.88
5.5.280.0030.04720.87
5.5.270.0100.08020.85
5.5.260.0030.08720.87
5.5.250.0000.07020.67
5.5.240.0100.07320.29
5.4.450.0530.07019.23
5.4.440.0130.05719.47
5.4.430.0170.05319.47
5.4.420.0200.05319.27
5.4.410.0130.05319.48
5.4.400.0100.05718.77
5.4.390.0100.05718.57
5.4.380.0170.05018.66
5.4.370.0200.04718.49
5.4.360.0130.05318.64
5.4.350.0230.06718.72
5.4.340.0100.05718.70
5.4.320.0270.04718.46
5.4.310.0130.05718.61
5.4.300.0270.04318.77
5.4.290.0170.05318.50
5.4.280.0100.05718.58
5.4.270.0130.05718.69
5.4.260.0130.05318.73
5.4.250.0030.06718.69
5.4.240.0230.04718.71
5.4.230.0200.04718.48
5.4.220.0100.05718.76
5.4.210.0130.08318.76
5.4.200.0170.07316.74
5.4.190.0200.07318.68
5.4.180.0100.05718.66
5.4.170.0230.05018.61
5.4.160.0170.05318.63
5.4.150.0270.05018.71
5.4.140.0130.05716.23
5.4.130.0170.04716.02
5.4.120.0130.05016.17
5.4.110.0130.05016.20
5.4.100.0100.06016.07
5.4.90.0130.05316.06
5.4.80.0200.04716.15
5.4.70.0170.05316.21
5.4.60.0130.05016.19
5.4.50.0130.05016.20
5.4.40.0170.05016.21
5.4.30.0270.03316.28
5.4.20.0130.05316.05
5.4.10.0130.05316.13
5.4.00.0170.04715.63
5.3.290.0200.05014.58
5.3.280.0200.05014.55
5.3.270.0170.05014.61
5.3.260.0170.05014.56
5.3.250.0170.05314.70
5.3.240.0100.05714.59
5.3.230.0100.06014.57
5.3.220.0200.04714.66
5.3.210.0270.04314.67
5.3.200.0200.04714.54
5.3.190.0100.05314.62
5.3.180.0100.06014.61
5.3.170.0170.05714.57
5.3.160.0170.05314.47
5.3.150.0230.05014.64
5.3.140.0200.04714.55
5.3.130.0100.06014.55
5.3.120.0230.04714.55
5.3.110.0130.05714.50
5.3.100.0200.04714.00
5.3.90.0100.05313.95
5.3.80.0100.05314.01
5.3.70.0070.05713.98
5.3.60.0130.05313.99
5.3.50.0130.05014.04
5.3.40.0130.05313.89
5.3.30.0230.05014.00
5.3.20.0100.05313.64
5.3.10.0170.04713.57
5.3.00.0070.05713.67
5.2.170.0170.03711.11
5.2.160.0130.04011.18
5.2.150.0100.04311.30
5.2.140.0100.04311.12
5.2.130.0070.04311.09
5.2.120.0130.03711.16
5.2.110.0130.04011.16
5.2.100.0170.03311.15
5.2.90.0100.04011.08
5.2.80.0100.04311.08
5.2.70.0130.04011.03
5.2.60.0100.05011.08
5.2.50.0070.04711.05
5.2.40.0100.04011.05
5.2.30.0170.04010.93
5.2.20.0130.04710.93
5.2.10.0130.03710.93
5.2.00.0170.04310.89
5.1.60.0070.03310.03
5.1.50.0100.0379.99
5.1.40.0100.03710.05
5.1.30.0100.03710.45
5.1.20.0100.03710.47
5.1.10.0130.03010.20
5.1.00.0100.03710.20
5.0.50.0070.0278.59
5.0.40.0070.0278.44
5.0.30.0100.0408.36
5.0.20.0100.0238.33
5.0.10.0030.0308.36
5.0.00.0070.0408.21
4.4.90.0030.0235.90
4.4.80.0030.0235.90
4.4.70.0100.0175.84
4.4.60.0030.0235.91
4.4.50.0070.0205.92
4.4.40.0070.0335.88
4.4.30.0030.0235.90
4.4.20.0030.0235.98
4.4.10.0030.0235.96
4.4.00.0030.0375.87
4.3.110.0000.0275.84
4.3.100.0170.0105.80
4.3.90.0030.0235.89
4.3.80.0070.0335.79
4.3.70.0000.0235.80
4.3.60.0100.0175.83
4.3.50.0030.0235.78
4.3.40.0000.0405.77
4.3.30.0000.0274.57
4.3.20.0030.0234.53
4.3.10.0030.0234.59
4.3.00.0030.0337.20

preferences:
53.39 ms | 401 KiB | 5 Q