3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xrange($start, $limit, $step = 1) { if ($start < $limit) { if ($step <= 0) { throw new LogicException('Step must be +ve'); } for ($i = $start; $i <= $limit; $i += $step) { yield $i; if ($i == 7) { return false; } } } else { if ($step >= 0) { throw new LogicException('Step must be -ve'); } for ($i = $start; $i >= $limit; $i -= $step) { yield $i; } } } foreach (xrange(1, 11, 1) as $val) { echo "$val "; }

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.70.0080.00816.58
8.3.60.0040.01418.30
8.3.50.0070.00716.39
8.3.40.0070.00718.70
8.3.30.0040.01118.63
8.3.20.0000.00721.89
8.3.10.0080.00020.54
8.3.00.0050.00319.38
8.2.190.0110.00716.58
8.2.180.0070.00718.55
8.2.170.0180.00022.96
8.2.160.0070.00720.38
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00420.88
8.2.110.0040.00420.57
8.2.100.0090.00317.87
8.2.90.0000.00817.63
8.2.80.0000.00817.97
8.2.70.0000.00817.93
8.2.60.0000.00817.97
8.2.50.0100.00018.10
8.2.40.0040.00419.32
8.2.30.0000.00719.37
8.2.20.0050.00218.18
8.2.10.0040.00419.43
8.2.00.0050.00318.19
8.1.280.0060.01025.92
8.1.270.0070.00020.33
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00422.20
8.1.230.0070.00419.10
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0090.00317.35
8.1.190.0040.00417.35
8.1.180.0000.00918.10
8.1.170.0080.00018.53
8.1.160.0040.00418.94
8.1.150.0040.00418.90
8.1.140.0000.00718.81
8.1.130.0000.00720.02
8.1.120.0000.00717.46
8.1.110.0030.00517.44
8.1.100.0040.00417.37
8.1.90.0070.00017.35
8.1.80.0060.00317.43
8.1.70.0000.00717.34
8.1.60.0000.00917.58
8.1.50.0000.00917.55
8.1.40.0090.00317.58
8.1.30.0060.00317.67
8.1.20.0000.00817.59
8.1.10.0040.00417.42
8.1.00.0050.00317.42
8.0.300.0060.00319.64
8.0.290.0040.00716.63
8.0.280.0000.00818.46
8.0.270.0070.00017.30
8.0.260.0000.00618.36
8.0.250.0000.00716.83
8.0.240.0000.00717.00
8.0.230.0020.00516.98
8.0.220.0030.00316.94
8.0.210.0000.00716.79
8.0.200.0000.00717.02
8.0.190.0030.00517.02
8.0.180.0050.00316.79
8.0.170.0060.00316.91
8.0.160.0030.00516.86
8.0.150.0040.00416.89
8.0.140.0040.00716.91
8.0.130.0000.00513.28
8.0.120.0060.00316.83
8.0.110.0070.00016.93
8.0.100.0000.00816.95
8.0.90.0000.00816.92
8.0.80.0060.01016.91
8.0.70.0040.00416.93
8.0.60.0000.00816.78
8.0.50.0000.00716.88
8.0.30.0130.00716.84
8.0.20.0140.00517.26
8.0.10.0070.00016.84
8.0.00.0120.00916.85
7.4.330.0000.00415.55
7.4.320.0070.00016.63
7.4.300.0030.00316.52
7.4.290.0080.00016.63
7.4.280.0080.00016.49
7.4.270.0060.00316.53
7.4.260.0100.00016.44
7.4.250.0030.00316.46
7.4.240.0030.00316.42
7.4.230.0000.00716.45
7.4.220.0040.00416.61
7.4.210.0130.00416.52
7.4.200.0000.00716.41
7.4.160.0100.00616.52
7.4.140.0110.01217.86
7.4.130.0060.01216.47
7.4.120.0070.01116.43
7.4.110.0190.00016.48
7.4.100.0070.01416.64
7.4.90.0060.01016.48
7.4.80.0110.00919.39
7.4.70.0130.00316.44
7.4.60.0060.01516.55
7.4.50.0030.01416.52
7.4.40.0040.01716.28
7.4.00.0110.00714.94
7.3.330.0020.00213.37
7.3.320.0060.00013.23
7.3.310.0000.00716.32
7.3.300.0030.00316.36
7.3.290.0050.00316.33
7.3.280.0110.00716.35
7.3.260.0120.00816.64
7.3.240.0120.00816.43
7.3.230.0110.00716.30
7.3.210.0070.01116.53
7.3.200.0080.00816.28
7.3.190.0100.00716.47
7.3.180.0120.00616.45
7.3.170.0140.00616.71
7.3.160.0000.01716.49
7.3.120.0120.00515.00
7.3.110.0040.01514.83
7.3.100.0070.01114.81
7.3.90.0050.01014.98
7.3.80.0020.01214.92
7.3.70.0040.00614.83
7.3.60.0020.01014.85
7.3.50.0070.00514.74
7.3.40.0100.00414.84
7.3.30.0080.00714.74
7.3.20.0300.00816.08
7.3.10.0570.00315.93
7.3.00.0370.00916.00
7.2.330.0110.00716.67
7.2.320.0160.00416.70
7.2.310.0080.00816.37
7.2.300.0040.01216.72
7.2.290.0030.01516.73
7.2.250.0050.01315.14
7.2.240.0030.01715.13
7.2.230.0040.01315.07
7.2.220.0020.01314.83
7.2.210.0030.01014.90
7.2.200.0020.00815.03
7.2.190.0060.00915.12
7.2.180.0030.01215.15
7.2.170.0070.00514.96
7.2.160.0090.00614.87
7.2.150.0480.00916.04
7.2.140.0680.00616.03
7.2.130.0590.00716.04
7.2.120.0490.00816.04
7.2.110.0410.00715.91
7.2.100.0500.01116.03
7.2.90.0480.00715.93
7.2.80.0900.00316.20
7.2.70.0610.00916.14
7.2.60.0650.00516.09
7.2.50.0560.00716.09
7.2.40.0550.01015.91
7.2.30.0770.00515.94
7.2.20.0660.00715.87
7.2.10.0780.00915.96
7.2.00.0840.00516.07
7.1.330.0100.00515.91
7.1.320.0060.00815.83
7.1.310.0050.00815.77
7.1.300.0060.00715.65
7.1.290.0070.00615.69
7.1.280.0080.00415.61
7.1.270.0030.00615.81
7.1.260.0080.00715.91
7.1.250.0470.00615.09
7.1.240.0000.01215.61
7.1.230.0100.00715.76
7.1.220.0060.00915.46
7.1.210.0060.00915.71
7.1.200.0070.00315.62
7.1.190.0090.00615.88
7.1.180.0050.00515.57
7.1.170.0040.01215.45
7.1.160.0040.01115.88
7.1.150.0000.00915.94
7.1.140.0070.00715.63
7.1.130.0060.00315.92
7.1.120.0070.00715.92
7.1.110.0040.00715.93
7.1.100.0080.00015.89
7.1.90.0030.00715.71
7.1.80.0110.00315.99
7.1.70.0060.00815.63
7.1.60.0040.00715.52
7.1.50.0100.00316.02
7.1.40.0160.00015.64
7.1.30.0080.00315.63
7.1.20.0000.01315.96
7.1.10.0000.00915.89
7.1.00.0070.00715.94

preferences:
56.04 ms | 401 KiB | 5 Q