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.0110.00716.75
8.3.50.0110.00922.10
8.3.40.0150.00018.86
8.3.30.0100.00319.17
8.3.20.0080.00020.31
8.3.10.0040.00421.77
8.3.00.0070.00317.50
8.2.180.0150.00316.75
8.2.170.0130.00722.96
8.2.160.0070.00722.08
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00626.16
8.2.120.0040.00419.67
8.2.110.0030.00719.21
8.2.100.0080.00417.75
8.2.90.0080.00019.13
8.2.80.0080.00017.97
8.2.70.0100.00017.63
8.2.60.0040.00418.03
8.2.50.0080.00018.07
8.2.40.0030.00718.12
8.2.30.0030.00618.13
8.2.20.0030.00517.79
8.2.10.0040.00418.12
8.2.00.0050.00317.93
8.1.280.0030.01025.92
8.1.270.0030.00620.67
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0090.00022.23
8.1.230.0130.00017.61
8.1.220.0050.00317.80
8.1.210.0040.00418.77
8.1.200.0070.00717.23
8.1.190.0030.00517.48
8.1.180.0050.00318.10
8.1.170.0040.00420.34
8.1.160.0000.00822.09
8.1.150.0030.00618.97
8.1.140.0040.00417.51
8.1.130.0040.00417.78
8.1.120.0040.00417.59
8.1.110.0030.00517.48
8.1.100.0070.00017.41
8.1.90.0040.00417.52
8.1.80.0040.00417.55
8.1.70.0000.00717.50
8.1.60.0030.00617.64
8.1.50.0040.00417.52
8.1.40.0000.00717.51
8.1.30.0000.00817.64
8.1.20.0040.00417.79
8.1.10.0030.00717.49
8.1.00.0060.00317.59
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0040.00418.44
8.0.270.0040.00417.23
8.0.260.0000.00617.34
8.0.250.0030.00516.97
8.0.240.0030.00317.02
8.0.230.0040.00417.03
8.0.220.0030.00616.86
8.0.210.0030.00316.87
8.0.200.0000.00717.05
8.0.190.0000.00817.00
8.0.180.0040.00417.03
8.0.170.0040.00417.08
8.0.160.0040.00416.98
8.0.150.0080.00016.93
8.0.140.0040.00417.01
8.0.130.0030.00313.43
8.0.120.0030.00516.93
8.0.110.0080.00016.97
8.0.100.0080.00016.98
8.0.90.0040.00416.84
8.0.80.0040.01516.93
8.0.70.0040.00416.82
8.0.60.0000.00716.98
8.0.50.0040.00416.88
8.0.30.0150.01017.15
8.0.20.0160.00517.40
8.0.10.0080.00017.16
8.0.00.0100.00816.78
7.4.330.0020.00215.03
7.4.320.0060.00316.60
7.4.300.0040.00416.68
7.4.290.0060.00316.73
7.4.280.0000.00816.69
7.4.270.0050.00216.69
7.4.260.0000.00716.67
7.4.250.0040.00416.52
7.4.240.0020.00616.67
7.4.230.0040.00416.70
7.4.220.0100.00716.64
7.4.210.0070.00916.63
7.4.200.0030.00316.68
7.4.160.0130.00316.67
7.4.150.0070.01717.40
7.4.140.0090.00817.86
7.4.130.0120.00716.69
7.4.120.0130.00716.60
7.4.110.0150.00616.64
7.4.100.0040.01516.55
7.4.90.0090.00816.61
7.4.80.0090.01219.39
7.4.70.0060.01616.45
7.4.60.0080.00816.65
7.4.50.0030.00516.69
7.4.40.0090.01216.59
7.4.30.0140.00816.79
7.4.10.0040.00816.57
7.4.00.0090.00915.73
7.3.330.0000.00713.23
7.3.320.0090.00213.24
7.3.310.0030.00316.22
7.3.300.0000.00716.39
7.3.290.0070.00716.36
7.3.280.0050.01116.46
7.3.270.0160.00317.40
7.3.260.0140.00316.40
7.3.250.0100.01116.56
7.3.240.0030.01316.43
7.3.230.0150.00316.67
7.3.210.0140.00316.53
7.3.200.0110.00519.39
7.3.190.0070.01016.78
7.3.180.0080.00916.77
7.3.170.0070.01416.64
7.3.160.0090.00916.36
7.3.130.0050.01016.37
7.3.120.0030.01316.29
7.3.110.0000.01616.54
7.3.100.0090.00316.42
7.3.90.0030.00916.64
7.3.80.0030.00616.64
7.3.70.0100.00316.30
7.3.60.0060.00316.59
7.3.50.0000.01016.47
7.3.40.0070.00716.41
7.3.30.0060.00316.30
7.3.20.0100.00618.05
7.3.10.0030.01218.14
7.3.00.0130.00018.29
7.2.330.0090.00916.48
7.2.320.0090.00916.75
7.2.310.0120.01216.43
7.2.300.0000.01816.78
7.2.290.0030.01916.63
7.2.260.0110.00716.78
7.2.250.0040.01416.79
7.2.240.0080.00816.74
7.2.230.0000.01016.46
7.2.220.0070.00716.67
7.2.210.0060.00816.75
7.2.200.0080.00616.51
7.2.190.0070.00316.63
7.2.180.0030.01316.49
7.2.170.0100.00316.65
7.2.160.0080.00316.66
7.2.150.0090.00618.45
7.2.140.0100.00618.54
7.2.130.0040.00818.29
7.2.120.0090.00618.29
7.2.110.0030.01318.48
7.2.100.0030.00818.44
7.2.90.0040.00818.38
7.2.80.0100.00618.49
7.2.70.0060.01018.43
7.2.60.0030.01318.45
7.2.50.0050.00518.30
7.2.40.0090.00918.46
7.2.30.0070.00318.45
7.2.20.0060.01018.36
7.2.10.0100.00718.57
7.2.00.0030.01119.02
7.1.330.0100.00317.46
7.1.320.0040.01117.39
7.1.310.0060.00317.29
7.1.300.0060.01017.18
7.1.290.0040.01117.39
7.1.280.0080.00317.50
7.1.270.0030.01117.38
7.1.260.0030.00617.35
7.1.250.0000.01217.46
7.1.240.0100.00317.36
7.1.230.0040.00817.20
7.1.220.0000.00917.34
7.1.210.0070.00717.29
7.1.200.0070.00717.32
7.1.190.0090.00617.41
7.1.180.0000.01217.36
7.1.170.0030.01317.25
7.1.160.0040.00717.35
7.1.150.0000.00917.24
7.1.140.0000.01417.19
7.1.130.0030.01317.35
7.1.120.0060.01017.19
7.1.110.0000.01117.38
7.1.100.0050.00617.69
7.1.90.0030.01017.40
7.1.80.0060.00917.25
7.1.70.0070.00417.26
7.1.60.0080.01018.46
7.1.50.0140.00326.14
7.1.40.0040.00417.29
7.1.30.0040.00817.36
7.1.20.0040.01117.38
7.1.10.0080.00317.34
7.1.00.0020.04219.95
7.0.330.0060.00616.94
7.0.320.0040.00816.99
7.0.310.0040.00817.05
7.0.300.0070.01017.10
7.0.290.0030.01016.86
7.0.280.0030.00916.96
7.0.270.0070.00316.91
7.0.260.0080.00416.89
7.0.250.0000.01617.05
7.0.240.0070.00317.02
7.0.230.0030.01316.99
7.0.220.0090.00017.02
7.0.210.0060.00616.97
7.0.200.0080.00316.04
7.0.190.0030.01017.05
7.0.180.0030.01017.17
7.0.170.0040.00416.89
7.0.160.0000.01316.97
7.0.150.0090.00617.13
7.0.140.0020.03019.47
7.0.130.0030.01317.19
7.0.120.0070.01116.96
7.0.110.0070.01017.00
7.0.100.0100.00717.09
7.0.90.0030.00916.98
7.0.80.0040.00816.96
7.0.70.0060.00616.83
7.0.60.0070.03619.51
7.0.50.0090.04019.57
7.0.40.0060.03817.57
7.0.30.0080.03517.57
7.0.20.0030.04517.57
7.0.10.0000.03517.52
7.0.00.0070.04017.54
5.6.400.0070.00716.00
5.6.390.0070.00716.09
5.6.380.0060.01015.58
5.6.370.0030.01015.52
5.6.360.0070.00716.04
5.6.350.0040.01115.93
5.6.340.0060.00616.16
5.6.330.0030.01315.99
5.6.320.0070.01116.07
5.6.310.0060.00616.16
5.6.300.0030.01015.54
5.6.290.0070.00315.73
5.6.280.0150.00415.76
5.6.270.0040.01516.11
5.6.260.0000.01215.97
5.6.250.0060.00616.05
5.6.240.0030.01415.95
5.6.230.0080.00815.84
5.6.220.0000.01115.80
5.6.210.0060.04418.14
5.6.200.0100.04318.43
5.6.190.0100.04018.50
5.6.180.0050.03118.50
5.6.170.0030.04518.54
5.6.160.0050.03718.30
5.6.150.0070.04218.50
5.6.140.0040.04718.36
5.6.130.0030.04918.45
5.6.120.0050.04318.42
5.6.110.0090.04418.36
5.6.100.0050.04718.45
5.6.90.0050.04218.52
5.6.80.0040.03617.99
5.6.70.0020.04518.06
5.6.60.0050.03518.23
5.6.50.0070.04018.05
5.6.40.0070.04218.07
5.6.30.0050.04418.08
5.6.20.0030.04518.10
5.6.10.0020.02718.17
5.6.00.0030.02518.07
5.5.380.0040.01215.87
5.5.370.0080.00315.91
5.5.360.0090.00315.66
5.5.350.0080.03718.16
5.5.340.0060.03818.32
5.5.330.0030.04418.36
5.5.320.0080.03918.22
5.5.310.0070.04618.27
5.5.300.0080.04118.46
5.5.290.0020.04918.29
5.5.280.0020.04518.28
5.5.270.0020.04218.37
5.5.260.0050.04518.31
5.5.250.0080.04118.24
5.5.240.0090.04217.96
5.5.230.0070.04718.02
5.5.220.0110.03718.04
5.5.210.0020.04017.98
5.5.200.0080.04017.86
5.5.190.0020.02917.81
5.5.180.0060.03018.07
5.5.170.0030.00615.94
5.5.160.0060.03317.84
5.5.150.0030.02617.90
5.5.140.0080.04117.91
5.5.130.0090.03717.99
5.5.120.0010.04317.94
5.5.110.0050.04218.03
5.5.100.0020.04617.93
5.5.90.0070.03817.98
5.5.80.0050.03817.95
5.5.70.0070.04017.92
5.5.60.0050.04017.90
5.5.50.0080.03617.87
5.5.40.0080.04317.79
5.5.30.0050.04217.93
5.5.20.0010.03117.77
5.5.10.0080.02317.80
5.5.00.0050.04517.93
5.4.450.0000.04416.21
5.4.440.0060.04216.30
5.4.430.0030.04416.16
5.4.420.0050.03816.25
5.4.410.0050.03816.24
5.4.400.0050.04316.18
5.4.390.0080.03816.04
5.4.380.0070.03016.01
5.4.370.0040.03916.09
5.4.360.0020.04316.12
5.4.350.0020.03516.13
5.4.340.0050.04116.12
5.4.330.0040.00713.13
5.4.320.0020.02515.96
5.4.310.0010.02816.11
5.4.300.0030.03516.03
5.4.290.0050.02916.13
5.4.280.0050.02715.97
5.4.270.0050.03516.03
5.4.260.0050.04016.12
5.4.250.0030.04316.07
5.4.240.0060.03216.07
5.4.230.0020.04216.12
5.4.220.0050.04116.07
5.4.210.0030.03716.07
5.4.200.0000.04016.13
5.4.190.0000.03216.09
5.4.180.0090.02716.01
5.4.170.0050.04216.08
5.4.160.0040.03916.04
5.4.150.0020.04015.96
5.4.140.0010.03914.72
5.4.130.0040.03614.71
5.4.120.0000.04114.72
5.4.110.0070.03314.75
5.4.100.0040.03714.78
5.4.90.0030.03814.78
5.4.80.0020.03714.72
5.4.70.0000.04214.77
5.4.60.0050.03714.77
5.4.50.0030.03814.74
5.4.40.0060.02614.75
5.4.30.0020.03214.63
5.4.20.0080.03214.74
5.4.10.0030.02714.70
5.4.00.0030.04214.40
5.3.290.0030.04314.62
5.3.280.0070.07714.56
5.3.270.0000.04314.60
5.3.260.0000.08014.60
5.3.250.0000.07314.59
5.3.240.0070.07314.59
5.3.230.0100.07314.45
5.3.220.0070.07714.38
5.3.210.0070.07314.57
5.3.200.0030.06714.41
5.3.190.0070.07714.41
5.3.180.0000.06714.54
5.3.170.0100.06714.41
5.3.160.0030.07014.38
5.3.150.0070.07314.53
5.3.140.0030.07314.55
5.3.130.0000.07014.55
5.3.120.0000.07014.36
5.3.110.0070.05014.55
5.3.100.0070.07013.85
5.3.90.0100.06313.99
5.3.80.0030.06014.01
5.3.70.0200.05713.99
5.3.60.0070.07013.85
5.3.50.0030.07013.80
5.3.40.0070.07013.93
5.3.30.0030.07013.89
5.3.20.0100.06713.68
5.3.10.0070.05313.66
5.3.00.0070.03713.66
5.2.170.0000.04713.66
5.2.160.0000.04013.66
5.2.150.0030.05713.66
5.2.140.0000.06013.66
5.2.130.0030.05313.66
5.2.120.0000.04313.66
5.2.110.0030.04313.66
5.2.100.0030.06013.66
5.2.90.0070.05713.66
5.2.80.0070.05013.66
5.2.70.0000.06713.66
5.2.60.0000.06013.66
5.2.50.0030.05713.66
5.2.40.0070.05713.66
5.2.30.0000.06313.66
5.2.20.0000.06313.66
5.2.10.0030.05713.66
5.2.00.0000.06013.66
5.1.60.0030.05313.66
5.1.50.0070.04313.66
5.1.40.0030.04713.66
5.1.30.0000.05713.66
5.1.20.0030.05013.66
5.1.10.0030.03313.66
5.1.00.0000.05713.66
5.0.50.0030.04713.66
5.0.40.0030.04313.66
5.0.30.0000.06313.66
5.0.20.0000.04313.66
5.0.10.0000.04713.66
5.0.00.0000.04713.66
4.4.90.0030.03313.66
4.4.80.0070.03013.66
4.4.70.0000.03313.66
4.4.60.0000.04013.66
4.4.50.0030.03013.66
4.4.40.0030.05313.66
4.4.30.0000.04013.66
4.4.20.0000.02713.66
4.4.10.0000.03313.66
4.4.00.0000.05013.66
4.3.110.0000.03313.66
4.3.100.0000.03313.66
4.3.90.0070.02713.66
4.3.80.0030.05013.66
4.3.70.0030.01313.66
4.3.60.0030.01713.66
4.3.50.0000.01713.66
4.3.40.0000.05713.66
4.3.30.0000.02013.66
4.3.20.0000.02713.66
4.3.10.0070.02713.66
4.3.00.0030.03313.66

preferences:
51.17 ms | 401 KiB | 5 Q