3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pagcurrent = 1; $paglast = 1023; $pagesToDisplay = 10; $start = $pagcurrent; if($start >= $pagesToDisplay) $start = $start - ($paglast % $pagesToDisplay); $end = $start + $pagesToDisplay; for ($i = $start; $i < $end; $i++) { echo "$i\n"; }

Abusive script

This script was stopped while abusing our resources

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.110.0050.00320.94
8.3.100.0040.01224.06
8.3.90.0080.00026.77
8.3.80.0030.00618.31
8.3.70.0070.00718.14
8.3.60.0070.00716.63
8.3.50.0060.01117.25
8.3.40.0110.00318.77
8.3.30.0110.00418.54
8.3.20.0050.00322.00
8.3.10.0040.00420.90
8.3.00.0080.00020.68
8.2.230.0050.00322.58
8.2.220.0040.00437.54
8.2.210.0150.00326.77
8.2.200.0060.00316.63
8.2.190.0150.00616.58
8.2.180.0030.01016.32
8.2.170.0040.01122.96
8.2.160.0110.00419.19
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.00
8.2.110.0080.00019.35
8.1.290.0030.00730.84
8.1.280.0110.00425.92
8.1.270.0060.00322.09
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00019.14
8.0.80.0120.01516.93
8.0.70.0590.00816.55
8.0.60.0310.00016.85
8.0.50.0340.00316.75
8.0.30.0150.01216.96
8.0.20.0130.01017.15
8.0.10.0130.01116.99
8.0.00.0140.00816.93
7.4.220.0200.00416.49
7.4.210.0210.00816.48
7.4.200.0330.00816.58
7.4.190.0190.01416.61
7.4.180.0270.00816.55
7.4.160.0140.00916.58
7.4.150.0180.00716.63
7.4.140.0120.01116.89
7.4.130.0130.00916.40
7.4.120.0150.00916.37
7.4.110.0160.00716.39
7.4.100.0120.00816.49
7.4.90.0120.00916.44
7.4.80.0150.00616.73
7.4.70.0120.00816.40
7.4.60.0150.00816.44
7.4.50.0110.00916.34
7.4.40.0100.01016.41
7.4.30.0130.01116.41
7.4.20.0160.01016.41
7.4.10.0130.00816.40
7.4.00.0110.00816.22
7.3.290.0220.00716.30
7.3.280.0100.01016.34
7.3.270.0140.00916.54
7.3.260.0160.01116.34
7.3.250.0130.00916.32
7.3.240.0140.00816.40
7.3.230.0230.00916.15
7.3.220.0140.00916.29
7.3.210.0130.00716.31
7.3.200.0140.00916.29
7.3.190.0100.01016.35
7.3.180.0190.01016.35
7.3.170.0100.01116.34
7.3.160.0140.00916.36
7.3.150.0130.00916.32
7.3.140.0120.00916.32
7.3.130.0180.00616.32
7.3.120.0150.01016.33
7.3.110.0140.00815.98
7.3.100.0160.01115.81
7.3.90.0220.00915.90
7.3.80.0310.00815.49
7.3.70.0390.00815.49
7.3.60.0390.00815.48
7.3.50.0300.00715.29
7.3.40.0280.00615.29
7.3.30.0260.00815.20
7.3.20.0370.00815.48
7.3.10.0420.00815.40
7.3.00.0340.00815.53
7.2.340.0130.00916.40
7.2.330.0110.01316.45
7.2.320.0100.01216.36
7.2.310.0110.01116.40
7.2.300.0140.00716.39
7.2.290.0140.00816.38
7.2.280.0130.01116.48
7.2.270.0100.01116.46
7.2.260.0150.00816.50
7.2.250.0140.00916.52
7.2.240.0110.01116.23
7.2.230.0130.00916.24
7.2.220.0110.01016.10
7.2.210.0120.00916.04
7.2.200.0100.01216.01
7.2.190.0120.00916.06
7.2.180.0110.00915.86
7.2.170.0100.00915.77
7.2.160.0100.00915.62
7.2.150.0380.00715.90
7.2.140.0280.00815.84
7.2.130.0210.00815.96
7.2.120.0260.00815.94
7.2.110.0250.00915.97
7.2.100.0280.00715.92
7.2.90.0280.00915.84
7.2.80.0240.00715.79
7.2.70.0330.01115.72
7.2.60.0230.00715.80
7.2.50.0270.00815.79
7.2.40.0320.00915.87
7.2.30.0350.00815.85
7.2.20.0360.00815.82
7.2.10.0330.00815.83
7.2.00.0380.00915.82
7.1.330.0150.01015.19
7.1.320.0190.00715.09
7.1.310.0190.00715.08
7.1.300.0180.00815.29
7.1.290.0180.00915.10
7.1.280.0170.00614.96
7.1.270.0280.00914.80
7.1.260.0220.00814.90
7.1.250.0340.00714.80
7.1.240.0360.00714.84
7.1.230.0320.00914.72
7.1.220.0460.00714.77
7.1.210.0310.00814.66
7.1.200.0280.00714.71
7.1.190.0300.00914.64
7.1.180.0280.00714.65
7.1.170.0360.00914.55
7.1.160.0390.00814.65
7.1.150.0420.00714.70
7.1.140.0330.00714.72
7.1.130.0420.00614.71
7.1.120.0400.00814.72
7.1.110.0380.00914.73
7.1.100.0410.00714.73
7.1.90.0420.00914.65
7.1.80.0360.00714.66
7.1.70.0390.00814.58
7.1.60.0370.00917.76
7.1.50.0410.01017.69
7.1.40.0320.00917.63
7.1.30.0380.00817.66
7.1.20.0350.00917.66
7.1.10.0310.00914.57
7.1.00.0300.00814.58
7.0.330.0400.00714.38
7.0.320.0320.00714.58
7.0.310.0320.00714.32
7.0.300.0400.00814.27
7.0.290.0400.00914.38
7.0.280.0410.00614.36
7.0.270.0480.00814.42
7.0.260.0400.00914.37
7.0.250.0370.00814.42
7.0.240.0380.01014.45
7.0.230.0460.00914.45
7.0.220.0380.00814.35
7.0.210.0380.00814.41
7.0.200.0380.01014.36
7.0.190.0270.00914.40
7.0.180.0310.00814.34
7.0.170.0370.00714.36
7.0.160.0410.00814.37
7.0.150.0320.00814.35
7.0.140.0310.00814.35
7.0.130.0310.00714.33
7.0.120.0340.00814.39
7.0.110.0330.00814.31
7.0.100.0360.00714.33
7.0.90.0330.00914.33
7.0.80.0410.00614.31
7.0.70.0310.00814.29
7.0.60.0330.00814.32
7.0.50.0330.00914.34
7.0.40.0310.00814.35
7.0.30.0340.00614.35
7.0.20.0380.00714.31
7.0.10.0320.00814.35
7.0.00.0310.00814.32
5.6.400.0130.01014.99
5.6.390.0140.01014.98
5.6.380.0130.00914.90
5.6.370.0230.00715.88
5.6.360.0280.01015.89
5.6.350.0230.01015.80
5.6.340.0230.00915.84
5.6.330.0200.00915.80
5.6.320.0210.00915.91
5.6.310.0200.01015.92
5.6.300.0170.01015.79
5.6.290.0210.00815.86
5.6.280.0210.00915.86
5.6.270.0210.01215.82
5.6.260.0180.01115.90
5.6.250.0220.00815.91
5.6.240.0190.01015.81
5.6.230.0170.01215.87
5.6.220.0160.01115.85
5.6.210.0170.01215.85
5.6.200.0150.01715.95
5.6.190.0200.00815.91
5.6.180.0190.01015.89
5.6.170.0180.01015.91
5.6.160.0200.01215.89
5.6.150.0210.00915.94
5.6.140.0190.01015.93
5.6.130.0160.01215.82
5.6.120.0180.01015.90
5.6.110.0160.01115.90
5.6.100.0150.01115.91
5.6.90.0170.01015.82
5.6.80.0170.01115.82
5.6.70.0170.01015.82
5.6.60.0170.01215.85
5.6.50.0160.01115.80
5.6.40.0150.01315.79
5.6.30.0200.01015.80
5.6.20.0190.01115.75
5.6.10.0180.00915.79
5.6.00.0190.00815.76

preferences:
32.02 ms | 403 KiB | 5 Q