3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentpageid = $nmstart = 23; $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>"; /* < [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 > */ } 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.0070.01316.88
8.3.50.0100.01018.06
8.3.40.0000.01518.70
8.3.30.0110.00419.23
8.3.20.0050.00320.16
8.3.10.0050.00321.95
8.3.00.0100.00019.25
8.2.180.0030.01416.50
8.2.170.0160.00322.96
8.2.160.0140.00022.11
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0080.00019.54
8.2.110.0060.00321.18
8.2.100.0060.00617.75
8.2.90.0040.00419.35
8.2.80.0050.00317.97
8.2.70.0050.00517.63
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0120.00418.05
8.2.30.0050.00318.13
8.2.20.0080.00017.98
8.2.10.0050.00318.25
8.2.00.0040.00417.74
8.1.280.0090.00625.92
8.1.270.0070.00320.78
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00621.34
8.1.230.0110.00019.10
8.1.220.0030.00617.91
8.1.210.0030.00618.77
8.1.200.0060.00317.48
8.1.190.0060.00317.36
8.1.180.0040.00418.10
8.1.170.0040.00420.33
8.1.160.0050.00222.01
8.1.150.0080.00018.96
8.1.140.0040.00417.52
8.1.130.0070.00017.84
8.1.120.0030.00317.54
8.1.110.0000.00717.41
8.1.100.0000.00717.53
8.1.90.0000.00717.60
8.1.80.0050.00217.45
8.1.70.0030.00317.58
8.1.60.0080.00017.60
8.1.50.0000.00817.59
8.1.40.0000.00817.61
8.1.30.0060.00317.77
8.1.20.0040.00417.68
8.1.10.0060.00317.52
8.1.00.0000.01217.50
8.0.300.0070.00018.77
8.0.290.0050.00316.75
8.0.280.0030.00318.59
8.0.270.0040.00417.25
8.0.260.0030.00317.35
8.0.250.0030.00317.08
8.0.240.0050.00216.97
8.0.230.0000.00717.07
8.0.220.0080.00016.98
8.0.210.0000.00616.86
8.0.200.0000.00717.00
8.0.190.0000.00916.94
8.0.180.0040.00417.05
8.0.170.0060.00317.03
8.0.160.0000.00816.98
8.0.150.0030.00317.00
8.0.140.0030.00316.83
8.0.130.0000.00613.38
8.0.120.0080.00016.92
8.0.110.0070.00016.90
8.0.100.0000.00816.88
8.0.90.0070.00016.78
8.0.80.0130.00916.96
8.0.70.0060.00317.02
8.0.60.0040.00417.03
8.0.50.0040.00417.04
8.0.30.0090.00917.02
8.0.20.0100.01017.40
8.0.10.0040.00416.95
8.0.00.0110.00616.64
7.4.330.0030.00315.15
7.4.320.0030.00616.63
7.4.300.0040.00416.56
7.4.290.0060.00316.58
7.4.280.0000.00916.57
7.4.270.0040.00416.68
7.4.260.0070.00016.64
7.4.250.0050.00316.67
7.4.240.0000.00716.70
7.4.230.0060.00016.73
7.4.220.0110.00716.73
7.4.210.0100.00616.66
7.4.200.0030.00416.48
7.4.160.0090.00916.68
7.4.150.0150.00917.40
7.4.140.0090.00917.86
7.4.130.0070.01016.60
7.4.120.0110.00616.63
7.4.110.0140.00316.51
7.4.100.0160.00316.74
7.4.90.0040.01416.61
7.4.80.0120.01319.39
7.4.70.0110.00616.61
7.4.60.0140.00316.45
7.4.50.0040.00416.59
7.4.40.0120.00616.49
7.4.30.0160.00616.56
7.4.10.0060.01315.21
7.4.00.0050.01315.03
7.3.330.0040.00413.32
7.3.320.0090.00313.35
7.3.310.0030.00316.29
7.3.300.0070.00016.38
7.3.290.0100.00416.37
7.3.280.0060.00916.40
7.3.270.0160.00317.40
7.3.260.0040.01316.59
7.3.250.0090.00816.59
7.3.240.0110.00616.64
7.3.230.0060.01216.48
7.3.210.0130.00916.72
7.3.200.0060.01019.39
7.3.190.0100.00716.48
7.3.180.0200.00316.70
7.3.170.0120.01116.75
7.3.160.0030.01316.56
7.3.130.0110.00714.89
7.3.120.0050.01115.01
7.3.110.0040.01215.01
7.3.100.0090.00515.00
7.3.90.0080.00714.93
7.3.80.0060.00914.83
7.3.70.0050.00714.92
7.3.60.0030.01014.87
7.3.50.0040.01015.04
7.3.40.0040.00614.71
7.3.30.0070.00614.93
7.3.20.0060.00816.85
7.3.10.0060.00916.66
7.3.00.0050.00916.64
7.2.330.0100.00616.88
7.2.320.0180.00616.47
7.2.310.0120.00916.47
7.2.300.0100.01416.79
7.2.290.0120.00916.74
7.2.260.0090.00915.15
7.2.250.0100.00714.96
7.2.240.0030.01215.15
7.2.230.0060.00815.14
7.2.220.0050.01014.94
7.2.210.0060.00915.29
7.2.200.0020.01215.06
7.2.190.0070.01215.04
7.2.180.0040.00915.07
7.2.170.0050.01015.12
7.2.160.0040.01114.95
7.2.150.0070.00917.04
7.2.140.0090.00516.85
7.2.130.0050.00816.79
7.2.120.0080.00716.81
7.2.110.0060.00716.89
7.2.100.0070.00716.97
7.2.90.0020.01116.98
7.2.80.0080.00516.89
7.2.70.0080.00616.95
7.2.60.0070.00716.96
7.2.50.0060.01016.94
7.2.40.0030.01016.88
7.2.30.0030.01016.86
7.2.20.0080.00616.97
7.2.10.0040.01017.00
7.2.00.0050.00817.49
7.1.330.0090.00315.85
7.1.320.0080.00815.87
7.1.310.0040.00815.88
7.1.300.0060.01015.76
7.1.290.0030.01115.80
7.1.280.0050.00815.96
7.1.270.0070.00915.77
7.1.260.0060.00615.86
7.1.250.0050.00615.78
7.1.240.0060.00615.61
7.1.230.0040.00715.91
7.1.220.0090.00615.95
7.1.210.0100.00715.83
7.1.200.0030.00715.62
7.1.190.0090.00315.83
7.1.180.0090.00015.82
7.1.170.0030.01015.86
7.1.160.0040.00715.85
7.1.150.0050.00515.92
7.1.140.0040.00815.93
7.1.130.0030.00615.71
7.1.120.0030.01016.01
7.1.110.0050.00515.93
7.1.100.0020.00916.99
7.1.90.0090.00616.01
7.1.80.0030.01415.66
7.1.70.0070.00316.50
7.1.60.0080.01217.65
7.1.50.0120.01225.33
7.1.40.0030.00615.83
7.1.30.0030.01015.52
7.1.20.0000.01115.60
7.1.10.0090.00615.59
7.1.00.0070.04019.01
7.0.330.0030.01015.39
7.0.320.0030.01315.55
7.0.310.0070.00715.46
7.0.300.0000.00915.20
7.0.290.0080.00815.64
7.0.280.0100.00315.29
7.0.270.0030.00715.12
7.0.260.0090.00315.49
7.0.250.0000.00815.51
7.0.240.0060.00615.59
7.0.230.0080.00415.64
7.0.220.0000.01315.46
7.0.210.0080.00415.61
7.0.200.0050.00515.27
7.0.190.0030.00915.50
7.0.180.0130.00315.54
7.0.170.0090.00315.52
7.0.160.0070.00715.32
7.0.150.0060.00615.53
7.0.140.0030.01918.67
7.0.130.0040.00415.45
7.0.120.0060.00915.14
7.0.110.0070.00715.54
7.0.100.0030.00815.12
7.0.90.0050.00515.57
7.0.80.0030.00515.24
7.0.70.0100.00615.58
7.0.60.0070.04617.60
7.0.50.0050.04416.68
7.0.40.0060.04116.80
7.0.30.0220.03516.88
7.0.20.0170.04616.80
7.0.10.0100.04316.86
7.0.00.0010.02616.81
5.6.400.0160.00014.33
5.6.390.0050.00514.63
5.6.380.0140.00414.73
5.6.370.0030.01214.20
5.6.360.0110.00414.68
5.6.350.0040.00714.76
5.6.340.0000.01314.51
5.6.330.0060.00314.60
5.6.320.0050.00514.25
5.6.310.0030.00614.24
5.6.300.0040.01214.13
5.6.290.0000.01413.91
5.6.280.0050.04117.83
5.6.270.0040.01114.48
5.6.260.0090.00314.38
5.6.250.0030.00714.53
5.6.240.0040.00814.25
5.6.230.0030.01314.50
5.6.220.0060.01014.32
5.6.210.0100.02917.47
5.6.200.0020.02516.28
5.6.190.0080.03617.41
5.6.180.0300.03917.41
5.6.170.0190.02217.36
5.6.160.0100.04017.37
5.6.150.0020.03016.35
5.6.140.0020.03016.25
5.6.130.0090.03416.30
5.6.120.0050.03017.77
5.6.110.0100.03717.70
5.6.100.0030.02817.54
5.6.90.0070.03717.71
5.6.80.0100.03917.30
5.6.70.0060.00914.22
5.6.60.0100.00314.23
5.6.50.0040.00414.25
5.6.40.0040.01114.43
5.6.30.0030.00914.30
5.6.20.0030.01014.13
5.6.10.0040.00814.09
5.6.00.0000.01414.29
5.5.380.0070.00714.54
5.5.370.0000.01814.33
5.5.360.0030.01414.30
5.5.350.0170.03917.31
5.5.340.0050.02916.14
5.5.330.0070.04417.30
5.5.320.1700.02617.20
5.5.310.0090.02717.16
5.5.300.0080.04416.13
5.5.290.0050.04716.15
5.5.280.0030.02717.66
5.5.270.0030.04617.43
5.5.260.0060.02217.47
5.5.250.0050.02717.53
5.5.240.0080.04017.23
5.5.230.0070.00414.29
5.5.220.0040.01114.28
5.5.210.0040.01114.13
5.5.200.0070.00714.23
5.5.190.0060.00914.20
5.5.180.0030.01014.16
5.5.170.0040.00814.13
5.5.160.0040.01114.38
5.5.150.0060.00914.49
5.5.140.0000.01214.54
5.5.130.0040.01114.06
5.5.120.0090.00614.57
5.5.110.0060.00914.41
5.5.100.0000.01214.20
5.5.90.0030.00914.31
5.5.80.0060.00614.41
5.5.70.0090.00313.89
5.5.60.0030.00913.86
5.5.50.0030.00914.34
5.5.40.0000.00914.18
5.5.30.0070.00314.25
5.5.20.0100.00314.32
5.5.10.0090.00314.50
5.5.00.0060.00914.40
5.4.450.0370.03215.05
5.4.440.0320.02715.31
5.4.430.0130.02715.39
5.4.420.0130.03015.16
5.4.410.0100.03315.03
5.4.400.0170.02514.86
5.4.390.0120.02814.83
5.4.380.0080.03514.94
5.4.370.0070.03714.66
5.4.360.0150.03014.83
5.4.350.0030.03514.88
5.4.340.0180.02714.80
5.4.330.0030.00711.00
5.4.320.0090.03514.85
5.4.310.0030.03514.93
5.4.300.0090.02914.97
5.4.290.0070.03214.77
5.4.280.0030.03514.67
5.4.270.0170.02514.76
5.4.260.0100.02914.77
5.4.250.0080.02914.65
5.4.240.0120.03014.72
5.4.230.0050.03714.77
5.4.220.0080.03414.64
5.4.210.0120.02814.73
5.4.200.0050.03113.67
5.4.190.0030.03714.80
5.4.180.0080.03114.83
5.4.170.0050.04814.82
5.4.160.0120.02514.84
5.4.150.0140.02914.83
5.4.140.0100.03713.61
5.4.130.0120.02513.65
5.4.120.0070.02913.49
5.4.110.0080.03313.66
5.4.100.0090.03513.58
5.4.90.0100.02513.59
5.4.80.0080.02913.65
5.4.70.0110.02313.59
5.4.60.0110.02713.67
5.4.50.0120.02413.54
5.4.40.0070.02813.53
5.4.30.0090.02913.51
5.4.20.0100.02713.44
5.4.10.0080.03413.47
5.4.00.0080.02513.21
5.3.290.0300.06714.65
5.3.280.0170.05314.54
5.3.270.0100.06014.52
5.3.260.0200.05014.66
5.3.250.0130.06014.52
5.3.240.0100.06014.63
5.3.230.0230.05314.69
5.3.220.0170.05014.56
5.3.210.0130.06714.53
5.3.200.0100.05314.48
5.3.190.0130.05314.47
5.3.180.0170.04714.55
5.3.170.0200.04714.61
5.3.160.0130.05714.61
5.3.150.0230.04714.52
5.3.140.0230.05314.54
5.3.130.0130.06014.54
5.3.120.0230.05314.44
5.3.110.0100.06014.60
5.3.100.0170.05714.00
5.3.90.0100.06014.02
5.3.80.0270.04314.05
5.3.70.0130.05014.00
5.3.60.0200.04713.93
5.3.50.0200.04714.04
5.3.40.0100.05713.93
5.3.30.0100.05713.82
5.3.20.0230.04713.79
5.3.10.0100.05713.57
5.3.00.0230.05013.63
5.2.170.0130.04311.20
5.2.160.0100.04711.13
5.2.150.0170.04011.19
5.2.140.0200.04311.12
5.2.130.0070.04711.14
5.2.120.0100.05011.14
5.2.110.0230.03711.09
5.2.100.0170.04311.16
5.2.90.0130.04011.24
5.2.80.0230.03311.07
5.2.70.0100.04311.14
5.2.60.0130.04011.02
5.2.50.0100.04311.01
5.2.40.0030.04710.97
5.2.30.0170.03710.89
5.2.20.0100.04010.93
5.2.10.0100.04010.95
5.2.00.0170.05310.81
5.1.60.0030.04010.12
5.1.50.0100.0339.99
5.1.40.0070.0379.99
5.1.30.0230.02310.39
5.1.20.0100.03710.53
5.1.10.0100.04710.19
5.1.00.0100.03710.11
5.0.50.0170.0208.68
5.0.40.0070.0278.50
5.0.30.0070.0438.25
5.0.20.0070.0278.39
5.0.10.0030.0308.16
5.0.00.0070.0438.20
4.4.90.0070.0235.94
4.4.80.0100.0205.86
4.4.70.0000.0275.88
4.4.60.0070.0205.82
4.4.50.0030.0235.87
4.4.40.0000.0405.96
4.4.30.0070.0275.93
4.4.20.0030.0335.88
4.4.10.0070.0205.98
4.4.00.0070.0436.03
4.3.110.0000.0335.88
4.3.100.0070.0305.84
4.3.90.0100.0205.81
4.3.80.0170.0305.86
4.3.70.0030.0275.84
4.3.60.0030.0235.81
4.3.50.0070.0235.87
4.3.40.0030.0405.74
4.3.30.0000.0274.69
4.3.20.0030.0234.59
4.3.10.0030.0234.51
4.3.00.0070.0237.20

preferences:
55.7 ms | 400 KiB | 5 Q