3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! function doStuff() { $last = 0; $current = 1; yield 1; while (true) { $current = $last + $current; $last = $current - $last; yield $current; } } echo doStuff()->key().PHP_EOL;

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.40.0120.00318.54
8.3.30.0080.01218.96
8.3.20.0040.00420.34
8.3.10.0000.00723.48
8.3.00.0050.00322.39
8.2.170.0140.00722.96
8.2.160.0080.00820.71
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00019.36
8.2.110.0060.00320.35
8.2.100.0090.00317.78
8.2.90.0040.00419.27
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0040.00417.92
8.2.50.0080.00018.07
8.2.40.0000.00818.03
8.2.30.0080.00018.12
8.2.20.0040.00417.61
8.2.10.0000.00717.74
8.2.00.0060.00317.69
8.1.270.0000.00823.69
8.1.260.0050.00226.35
8.1.250.0060.00328.09
8.1.240.0060.00323.82
8.1.230.0040.00817.42
8.1.220.0080.00017.79
8.1.210.0060.00318.77
8.1.200.0040.00417.36
8.1.190.0050.00317.53
8.1.180.0040.00418.10
8.1.170.0030.00618.71
8.1.160.0000.00722.05
8.1.150.0000.00818.68
8.1.140.0040.00417.39
8.1.130.0000.00717.84
8.1.120.0040.00417.52
8.1.110.0070.00017.36
8.1.100.0040.00417.36
8.1.90.0040.00417.34
8.1.80.0050.00217.50
8.1.70.0040.00417.38
8.1.60.0000.00917.61
8.1.50.0030.00617.53
8.1.40.0040.00417.42
8.1.30.0060.00317.54
8.1.20.0050.00317.65
8.1.10.0040.00417.59
8.1.00.0080.00017.40
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0030.00318.55
8.0.270.0050.00217.13
8.0.260.0060.00016.73
8.0.250.0030.00316.84
8.0.240.0020.00516.97
8.0.230.0000.00716.98
8.0.220.0030.00316.77
8.0.210.0080.00016.96
8.0.200.0030.00316.88
8.0.190.0070.00016.83
8.0.180.0050.00316.91
8.0.170.0040.00416.84
8.0.160.0040.00417.01
8.0.150.0000.00716.88
8.0.140.0040.00416.79
8.0.130.0000.00613.37
8.0.120.0000.00716.86
8.0.110.0000.00816.94
8.0.100.0000.00716.78
8.0.90.0070.00016.84
8.0.80.0080.00816.78
8.0.70.0040.00416.74
8.0.60.0040.00416.79
8.0.50.0000.00716.80
8.0.30.0170.00716.94
8.0.20.0130.00917.40
8.0.10.0070.00016.80
8.0.00.0100.00916.74
7.4.330.0050.00015.00
7.4.320.0030.00316.54
7.4.300.0060.00316.60
7.4.290.0030.00616.51
7.4.280.0050.00316.41
7.4.270.0000.00716.65
7.4.260.0030.00316.59
7.4.250.0050.00316.57
7.4.240.0050.00216.58
7.4.230.0040.00416.30
7.4.220.0060.00916.54
7.4.210.0060.01016.53
7.4.200.0030.00316.50
7.4.190.0080.00016.48
7.4.160.0150.00616.48
7.4.150.0150.00317.40
7.4.140.0110.00917.86
7.4.130.0110.00616.41
7.4.120.0080.00816.70
7.4.110.0070.01016.39
7.4.100.0060.01316.70
7.4.90.0130.00316.51
7.4.80.0060.01016.61
7.4.70.0100.00616.35
7.4.60.0060.01616.46
7.4.50.0000.00816.50
7.4.40.0070.00722.77
7.4.30.0060.01916.70
7.4.00.0050.01214.96
7.3.330.0000.00513.07
7.3.320.0000.00613.06
7.3.310.0030.00316.14
7.3.300.0040.00316.11
7.3.290.0150.00016.24
7.3.280.0080.00816.25
7.3.270.0060.01117.40
7.3.260.0000.01716.23
7.3.250.0070.01316.43
7.3.240.0120.00316.19
7.3.230.0120.00616.39
7.3.210.0190.00016.27
7.3.200.0060.01619.39
7.3.190.0110.00516.48
7.3.180.0030.01316.45
7.3.170.0090.00616.29
7.3.160.0080.00816.56
7.3.120.0080.01014.70
7.3.110.0100.00714.82
7.3.100.0000.01814.95
7.3.90.0070.01314.84
7.3.80.0080.00314.77
7.3.70.0040.01114.61
7.3.60.0100.00314.92
7.3.50.0110.00414.73
7.3.40.0040.01214.81
7.3.30.0040.00814.87
7.3.20.0030.00716.74
7.3.10.0080.00416.63
7.3.00.0000.01316.65
7.2.330.0120.00616.73
7.2.320.0060.01216.72
7.2.310.0100.00716.30
7.2.300.0130.01316.28
7.2.290.0080.00816.46
7.2.250.0090.00915.09
7.2.240.0040.01214.71
7.2.230.0090.00615.05
7.2.220.0150.00615.23
7.2.210.0040.01214.89
7.2.200.0070.00715.14
7.2.190.0030.00614.81
7.2.180.0030.00715.02
7.2.170.0080.00314.71
7.2.130.0090.00616.60
7.2.120.0100.00616.63
7.2.110.0140.00716.65
7.2.100.0110.00416.59
7.2.90.0030.00916.84
7.2.80.0060.00316.73
7.2.70.0100.00316.93
7.2.60.0040.01117.02
7.2.50.0060.01216.52
7.2.40.0110.00317.02
7.2.30.0000.01516.96
7.2.20.0100.00616.68
7.2.10.0200.00316.76
7.2.00.0050.00918.02
7.1.330.0110.00415.63
7.1.320.0100.01015.75
7.1.310.0110.00415.97
7.1.300.0040.00415.80
7.1.290.0140.00015.87
7.1.280.0070.00715.51
7.1.270.0060.00615.75
7.1.260.0030.00615.32
7.1.250.0040.00815.59
7.1.100.0090.00617.98
7.1.70.0080.00316.96
7.1.60.0110.01519.32
7.1.50.0130.00316.57
7.1.00.0000.08022.33
7.0.200.0060.00616.46
7.0.140.0130.06321.92
7.0.100.0030.04020.00
7.0.90.0070.08019.88
7.0.80.0230.08019.91
7.0.70.0000.04319.92
7.0.60.0100.08319.96
7.0.50.0130.07720.36
7.0.40.0070.08720.10
7.0.30.0030.05720.10
7.0.20.0070.08320.19
7.0.10.0030.08020.12
7.0.00.0100.08020.17
5.6.280.0070.07020.91
5.6.250.0030.04320.54
5.6.240.0030.04320.60
5.6.230.0100.06720.57
5.6.220.0000.07020.71
5.6.210.0000.04320.67
5.6.200.0100.07020.95
5.6.190.0070.09021.04
5.6.180.0070.05021.04
5.6.170.0100.07721.05
5.6.160.0170.07020.95
5.6.150.0070.07721.05
5.6.140.0030.05321.06
5.6.130.0100.07020.93
5.6.120.0070.09021.13
5.6.110.0030.08721.06
5.6.100.0030.06721.16
5.6.90.0100.08021.06
5.6.80.0100.07720.40
5.6.70.0070.08720.34
5.6.60.0070.08320.43
5.6.50.0070.06320.50
5.6.40.0070.06320.32
5.6.30.0100.07720.50
5.6.20.0100.08020.30
5.6.10.0130.07020.43
5.6.00.0070.06720.37
5.5.380.0030.04020.41
5.5.370.0030.05020.37
5.5.360.0100.03720.38
5.5.350.0070.08320.42
5.5.340.0000.05320.90
5.5.330.0100.08020.91
5.5.320.0170.06720.89
5.5.310.0070.04320.91
5.5.300.0270.07020.81
5.5.290.0070.08320.89
5.5.280.0170.07020.93
5.5.270.0070.04720.89
5.5.260.0170.07020.77
5.5.250.0030.04720.60
5.5.240.0100.08020.16
5.5.230.0100.06720.21
5.5.220.0070.07720.11
5.5.210.0070.03720.25
5.5.200.0100.07719.99
5.5.190.0130.07020.11
5.5.180.0000.07720.23
5.5.160.0030.08720.22
5.5.150.0070.08020.28
5.5.140.0170.07020.24
5.5.130.0200.05320.11
5.5.120.0070.04720.17
5.5.110.0100.08320.24
5.5.100.0100.04019.98
5.5.90.0000.06719.97
5.5.80.0070.04320.05
5.5.70.0100.06020.06
5.5.60.0070.08020.09
5.5.50.0000.07720.10
5.5.40.0230.07020.16
5.5.30.0030.08020.07
5.5.20.0100.07320.08
5.5.10.0030.06320.04
5.5.00.0100.07320.03
5.4.450.0070.08719.46
5.4.440.0130.04719.53
5.4.430.0170.06719.46
5.4.420.0130.07319.57
5.4.410.0070.08319.27
5.4.400.0030.05019.13
5.4.390.0100.07719.16
5.4.380.0070.03719.04
5.4.370.0030.04719.11
5.4.360.0200.06719.04
5.4.350.0070.03718.88
5.4.340.0100.07018.88
5.4.320.0000.05019.21
5.4.310.0070.06719.09
5.4.300.0030.05319.04
5.4.290.0200.06719.16
5.4.280.0070.07318.90
5.4.270.0170.06319.09
5.4.260.0100.04719.12
5.4.250.0170.05718.94
5.4.240.0070.07319.12
5.4.230.0130.07019.21
5.4.220.0200.06319.12
5.4.210.0070.06319.16
5.4.200.0070.07718.91
5.4.190.0030.08319.05
5.4.180.0070.08019.08
5.4.170.0030.04718.84
5.4.160.0100.04719.16
5.4.150.0100.04019.03
5.4.140.0030.08016.41
5.4.130.0100.05716.46
5.4.120.0030.04316.19
5.4.110.0170.05316.50
5.4.100.0070.08016.47
5.4.90.0100.07316.51
5.4.80.0070.06716.34
5.4.70.0030.07716.35
5.4.60.0070.07716.41
5.4.50.0100.07716.39
5.4.40.0070.07016.39
5.4.30.0100.04016.38
5.4.20.0030.06716.47
5.4.10.0000.07016.41
5.4.00.0130.05015.63
5.3.290.0030.08314.66
5.3.280.0070.04014.54
5.3.270.0070.07314.54
5.3.260.0130.03714.66
5.3.250.0130.05714.63
5.3.240.0000.05014.59
5.3.230.0000.04314.70
5.3.220.0070.04014.60
5.3.210.0100.05714.56
5.3.200.0100.06714.54
5.3.190.0100.05714.54
5.3.180.0030.05014.53
5.3.170.0030.06314.68
5.3.160.0070.04314.49
5.3.150.0100.04014.67
5.3.140.0070.04014.48
5.3.130.0100.07314.53
5.3.120.0070.04314.58
5.3.110.0100.04714.47
5.3.100.0030.07713.97
5.3.90.0100.03014.16
5.3.80.0030.04014.08
5.3.70.0100.07014.08
5.3.60.0130.06314.11
5.3.50.0070.06713.87
5.3.40.0070.07013.88
5.3.30.0070.04713.94
5.3.20.0100.07313.68
5.3.10.0070.07313.71
5.3.00.0030.07313.74
5.2.170.0030.04311.00
5.2.160.0100.05311.25
5.2.150.0000.06311.13
5.2.140.0030.03311.06
5.2.130.0100.05711.16
5.2.120.0030.03311.19
5.2.110.0000.06311.19
5.2.100.0000.06711.11
5.2.90.0070.03011.01
5.2.80.0070.05711.14
5.2.70.0030.03710.97
5.2.60.0100.05711.13
5.2.50.0130.02311.06
5.2.40.0030.03311.05
5.2.30.0070.04311.07
5.2.20.0000.03310.88
5.2.10.0000.05310.92
5.2.00.0100.03010.77
5.1.60.0070.0509.99
5.1.50.0070.04310.05
5.1.40.0070.05010.06
5.1.30.0030.03010.35
5.1.20.0030.04010.44
5.1.10.0000.0439.90
5.1.00.0100.05010.07
5.0.50.0100.0439.24
5.0.40.0000.0339.24
5.0.30.0000.0439.24
5.0.20.0100.0179.24
5.0.10.0100.0379.24
5.0.00.0030.0539.24
4.4.90.0030.0179.24
4.4.80.0000.0379.24
4.4.70.0000.0379.24
4.4.60.0000.0279.24
4.4.50.0100.0309.24
4.4.40.0030.0439.24
4.4.30.0030.0179.24
4.4.20.0030.0209.24
4.4.10.0070.0209.24
4.4.00.0000.0509.24
4.3.110.0030.0279.24
4.3.100.0030.0309.24
4.3.90.0100.0309.24
4.3.80.0030.0279.24
4.3.70.0030.0339.24
4.3.60.0030.0179.24
4.3.50.0030.0339.24
4.3.40.0000.0509.24
4.3.30.0000.0279.24
4.3.20.0030.0309.24
4.3.10.0030.0339.24
4.3.00.0030.0309.24

preferences:
44.53 ms | 400 KiB | 5 Q