3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = 0; $end = 10; $comparator = '<'; $indecrement = 1; $direction = '+'; $i = $start; for ( ; ; ) { if (eval("return {$i} {$comparator} {$end};")) { echo "$i\n"; if ($direction == '+') { $i += $indecrement; } else { $i -= $indecrement; } continue; } break; }

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.0040.01118.43
8.3.50.0110.01121.97
8.3.40.0150.00318.84
8.3.30.0070.00719.09
8.3.20.0040.00420.38
8.3.10.0070.00023.48
8.3.00.0040.00819.79
8.2.180.0110.01118.16
8.2.170.0110.00422.96
8.2.160.0070.00720.47
8.2.150.0000.00724.18
8.2.140.0070.00724.66
8.2.130.0070.00026.16
8.2.120.0040.00419.23
8.2.110.0100.00020.52
8.2.100.0090.00318.03
8.2.90.0000.00919.36
8.2.80.0080.00017.97
8.2.70.0050.00317.75
8.2.60.0110.00017.80
8.2.50.0030.00518.07
8.2.40.0000.00818.22
8.2.30.0040.00418.32
8.2.20.0000.00717.81
8.2.10.0040.00418.11
8.2.00.0090.00019.59
8.1.280.0040.01425.92
8.1.270.0050.00323.84
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.79
8.1.230.0100.00019.16
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0080.00017.13
8.1.180.0040.00418.10
8.1.170.0070.00418.40
8.1.160.0040.00422.02
8.1.150.0070.00018.55
8.1.140.0000.00717.45
8.1.130.0000.00717.70
8.1.120.0000.00717.43
8.1.110.0040.00417.52
8.1.100.0040.00417.37
8.1.90.0030.00317.37
8.1.80.0070.00017.37
8.1.70.0030.00317.34
8.1.60.0000.00817.57
8.1.50.0000.00817.41
8.1.40.0060.00317.47
8.1.30.0000.00817.66
8.1.20.0040.00417.57
8.1.10.0040.00417.58
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0030.00318.38
8.0.270.0030.00317.25
8.0.260.0000.00617.27
8.0.250.0040.00417.09
8.0.240.0000.00716.93
8.0.230.0070.00017.04
8.0.220.0030.00316.84
8.0.210.0000.00716.86
8.0.200.0030.00317.06
8.0.190.0000.00716.99
8.0.180.0030.00416.96
8.0.170.0040.00416.90
8.0.160.0070.00016.90
8.0.150.0000.00816.86
8.0.140.0000.00716.96
8.0.130.0000.00613.41
8.0.120.0070.00016.91
8.0.110.0000.00717.00
8.0.100.0000.00717.00
8.0.90.0020.00516.86
8.0.80.0110.01117.00
8.0.70.0040.00416.86
8.0.60.0040.00416.90
8.0.50.0000.00816.96
8.0.30.0070.01217.12
8.0.20.0100.00917.40
8.0.10.0000.00717.04
8.0.00.0120.00516.73
7.4.330.0020.00215.09
7.4.320.0070.00016.50
7.4.300.0000.00616.58
7.4.290.0040.00416.52
7.4.280.0070.00316.58
7.4.270.0000.00816.61
7.4.260.0030.00316.50
7.4.250.0000.00716.36
7.4.240.0020.00516.53
7.4.230.0030.00316.61
7.4.220.0090.00916.38
7.4.210.0040.01216.55
7.4.200.0030.00516.61
7.4.160.0060.00916.65
7.4.150.0120.01617.40
7.4.140.0050.01217.86
7.4.130.0080.00816.55
7.4.120.0100.00816.54
7.4.110.0090.00916.41
7.4.100.0070.01116.56
7.4.90.0100.01416.38
7.4.80.0100.01419.39
7.4.70.0080.00816.53
7.4.60.0140.00916.56
7.4.50.0000.00816.39
7.4.40.0090.00616.53
7.4.30.0060.00916.68
7.4.00.0100.00714.97
7.3.330.0000.00513.07
7.3.320.0000.00513.17
7.3.310.0000.00716.13
7.3.300.0000.00616.18
7.3.290.0060.00616.35
7.3.280.0090.01116.33
7.3.270.0180.00317.40
7.3.260.0080.00816.59
7.3.250.0140.00516.39
7.3.240.0060.01316.36
7.3.230.0030.01416.39
7.3.210.0120.00616.52
7.3.200.0080.00819.39
7.3.190.0080.00916.47
7.3.180.0080.00816.17
7.3.170.0060.00916.36
7.3.160.0070.01016.57
7.3.120.0070.01014.93
7.3.110.0040.01414.77
7.3.100.0060.01214.80
7.3.90.0070.01014.81
7.3.80.0000.01414.83
7.3.70.0060.00914.83
7.3.60.0000.01714.63
7.3.50.0060.00614.57
7.3.40.0000.01114.87
7.3.30.0030.00614.91
7.3.20.0060.00616.60
7.3.10.0070.00716.48
7.3.00.0000.01616.68
7.2.330.0040.01316.39
7.2.320.0070.01016.34
7.2.310.0130.00416.56
7.2.300.0090.00616.70
7.2.290.0090.00916.71
7.2.250.0040.01515.16
7.2.240.0100.01015.00
7.2.230.0040.01515.02
7.2.220.0100.00714.76
7.2.210.0030.01014.82
7.2.200.0070.01014.67
7.2.190.0050.00514.85
7.2.180.0070.00714.95
7.2.170.0060.00914.95
7.2.00.0030.00919.21
7.1.330.0040.01115.84
7.1.320.0060.00915.77
7.1.310.0070.00315.70
7.1.300.0000.00915.67
7.1.290.0030.00915.81
7.1.280.0060.00615.66
7.1.270.0030.00615.77
7.1.260.0090.00615.48
7.1.100.0090.00317.95
7.1.70.0120.00416.96
7.1.60.0060.01519.70
7.1.50.0280.01134.72
7.1.00.0100.07022.54
7.0.200.0000.01016.79
7.0.140.0070.07021.95
7.0.60.0230.07019.93
7.0.50.0000.04317.80
7.0.40.0170.07320.04
7.0.30.0330.07020.08
7.0.20.0270.03320.12
7.0.10.0100.04720.30
7.0.00.0070.04020.19
5.6.280.0000.07721.03
5.6.210.0100.06720.52
5.6.200.0170.03718.22
5.6.190.0100.06320.45
5.6.180.0500.06720.57
5.6.170.0200.03720.41
5.6.160.0100.05720.41
5.6.150.0070.04318.09
5.6.140.0100.03718.19
5.6.130.0170.08718.21
5.6.120.0030.08720.95
5.6.110.0070.08321.00
5.6.100.0270.07021.06
5.6.90.0070.04321.02
5.6.80.0130.07720.37
5.5.350.0070.07720.33
5.5.340.0030.04317.95
5.5.330.0030.08320.06
5.5.320.0200.05020.17
5.5.310.0200.03720.12
5.5.300.0030.08718.02
5.5.290.0100.06017.91
5.5.280.0100.06720.83
5.5.270.0070.03720.64
5.5.260.0030.06020.84
5.5.250.0170.06720.54
5.5.240.0100.08320.22
5.4.450.0300.04043.77
5.4.440.0500.04738.99
5.4.430.0200.03319.40
5.4.420.0270.04333.65
5.4.410.0300.03333.62
5.4.400.0370.04333.62
5.4.390.0230.03019.08
5.4.380.0200.06318.57
5.4.370.0330.04318.71
5.4.360.0300.05018.68
5.4.350.0300.05318.53
5.4.340.0200.06018.48
5.4.320.0070.04412.45
5.4.310.0060.04412.45
5.4.300.0070.03412.46
5.4.290.0080.04112.45
5.4.280.0060.04312.35
5.4.270.0080.03312.35
5.4.260.0070.04412.35
5.4.250.0100.03712.35
5.4.240.0040.04112.35
5.4.230.0060.03612.34
5.4.220.0070.04012.34
5.4.210.0060.03412.34
5.4.200.0050.04612.34
5.4.190.0060.03612.34
5.4.180.0050.03712.34
5.4.170.0040.03912.35
5.4.160.0070.04012.35
5.4.150.0060.03812.34
5.4.140.0070.03712.03
5.4.130.0110.04512.01
5.4.120.0100.03311.97
5.4.110.0070.03811.96
5.4.100.0060.03811.97
5.4.90.0060.03711.97
5.4.80.0070.03611.97
5.4.70.0090.04211.97
5.4.60.0050.03611.96
5.4.50.0090.04111.96
5.4.40.0080.03811.95
5.4.30.0060.03911.95
5.4.20.0070.04611.95
5.4.10.0080.03411.95
5.4.00.0070.03911.44
5.3.290.0090.04012.80
5.3.280.0060.04312.71
5.3.270.0050.04112.72
5.3.260.0050.03912.72
5.3.250.0080.03612.72
5.3.240.0100.03912.72
5.3.230.0040.04012.71
5.3.220.0110.04612.68
5.3.210.0050.04012.68
5.3.200.0070.04312.68
5.3.190.0090.03512.68
5.3.180.0070.03812.67
5.3.170.0080.03712.67
5.3.160.0050.04212.67
5.3.150.0090.04512.67
5.3.140.0110.03512.66
5.3.130.0060.04012.66
5.3.120.0130.04612.66
5.3.110.0080.04112.65
5.3.100.0060.03712.12
5.3.90.0040.03712.09
5.3.80.0070.04112.07
5.3.70.0040.05012.07
5.3.60.0060.03912.07
5.3.50.0070.03712.00
5.3.40.0070.03812.00
5.3.30.0070.04111.96
5.3.20.0060.03711.73
5.3.10.0060.03611.70
5.3.00.0080.03911.69
5.2.170.0050.0329.19
5.2.160.0040.0319.19
5.2.150.0050.0339.19
5.2.140.0030.0359.18
5.2.130.0070.0289.14
5.2.120.0050.0299.15
5.2.110.0080.0289.15
5.2.100.0040.0309.15
5.2.90.0100.0319.15
5.2.80.0060.0299.15
5.2.70.0060.0329.15
5.2.60.0080.0279.10
5.2.50.0050.0309.07
5.2.40.0090.0279.04
5.2.30.0030.0329.02
5.2.20.0030.0329.01
5.2.10.0090.0318.94
5.2.00.0080.0428.80
5.1.60.0070.0318.09
5.1.50.0040.0278.08
5.1.40.0070.0298.06
5.1.30.0090.0268.41
5.1.20.0070.0348.43
5.1.10.0030.0278.16
5.1.00.0040.0318.16
5.0.50.0060.0246.63
5.0.40.0030.0206.50
5.0.30.0040.0306.30
5.0.20.0010.0286.28
5.0.10.0030.0216.26
5.0.00.0020.0316.25
4.4.90.0030.0164.78
4.4.80.0040.0224.75
4.4.70.0060.0184.75
4.4.60.0030.0204.76
4.4.50.0050.0134.77
4.4.40.0020.0264.70
4.4.30.0020.0164.76
4.4.20.0040.0144.85
4.4.10.0040.0154.85
4.4.00.0020.0264.76
4.3.110.0020.0164.67
4.3.100.0020.0154.67
4.3.90.0020.0154.63
4.3.80.0020.0254.58
4.3.70.0020.0154.63
4.3.60.0020.0214.63
4.3.50.0040.0204.63
4.3.40.0000.0264.54
4.3.30.0020.0153.31
4.3.20.0020.0203.29
4.3.10.0030.0153.24
4.3.00.0100.01733.60

preferences:
39 ms | 401 KiB | 5 Q