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; } } for($i=0;$i<10;$i++){ var_dump(doStuff()); }

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.0070.01416.50
8.3.50.0100.01321.98
8.3.40.0080.01218.71
8.3.30.0140.00718.87
8.3.20.0180.00020.34
8.3.10.0100.01023.51
8.3.00.0160.00319.00
8.2.180.0120.00918.17
8.2.170.0160.00322.96
8.2.160.0150.00720.52
8.2.150.0110.00724.18
8.2.140.0180.00024.66
8.2.130.0110.00826.16
8.2.120.0100.00722.27
8.2.110.0040.00721.90
8.2.100.0110.00017.78
8.2.90.0080.00017.63
8.2.80.0040.00418.98
8.2.70.0050.00317.93
8.2.60.0040.00417.80
8.2.50.0080.00018.10
8.2.40.0030.00622.18
8.2.30.0040.00418.12
8.2.20.0040.00417.73
8.2.10.0070.00017.93
8.2.00.0070.00317.56
8.1.280.0100.01025.92
8.1.270.0090.00923.99
8.1.260.0120.00626.35
8.1.250.0000.00928.09
8.1.240.0090.00023.81
8.1.230.0070.00419.01
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.01117.13
8.1.180.0030.00518.10
8.1.170.0080.00018.54
8.1.160.0080.00022.07
8.1.150.0040.00418.49
8.1.140.0080.00317.50
8.1.130.0000.00717.89
8.1.120.0040.00417.43
8.1.110.0050.00317.37
8.1.100.0000.00717.41
8.1.90.0000.00717.45
8.1.80.0080.00017.43
8.1.70.0000.00717.35
8.1.60.0030.00517.60
8.1.50.0060.00317.55
8.1.40.0040.00717.45
8.1.30.0060.00317.70
8.1.20.0040.00417.68
8.1.10.0000.00817.52
8.1.00.0080.00017.34
8.0.300.0040.00421.38
8.0.290.0000.00716.61
8.0.280.0040.00418.39
8.0.270.0040.00417.20
8.0.260.0000.00717.20
8.0.250.0040.00416.87
8.0.240.0000.00816.86
8.0.230.0000.00716.81
8.0.220.0000.00816.82
8.0.210.0040.00416.74
8.0.200.0040.00416.88
8.0.190.0000.00816.89
8.0.180.0040.00416.86
8.0.170.0000.00816.82
8.0.160.0040.00316.87
8.0.150.0000.00716.75
8.0.140.0050.00316.79
8.0.130.0000.00613.26
8.0.120.0040.00416.82
8.0.110.0050.00316.90
8.0.100.0040.00416.90
8.0.90.0040.00416.75
8.0.80.0140.00816.88
8.0.70.0040.00416.75
8.0.60.0070.00016.68
8.0.50.0040.00416.93
8.0.30.0100.01217.20
8.0.20.0110.00917.40
8.0.10.0040.00417.01
8.0.00.0110.00916.91
7.4.330.0000.00515.00
7.4.320.0060.00316.45
7.4.300.0070.00016.52
7.4.290.0000.00816.51
7.4.280.0030.00316.41
7.4.270.0070.00016.41
7.4.260.0030.00716.49
7.4.250.0030.00616.53
7.4.240.0060.00216.60
7.4.230.0040.00416.47
7.4.220.0180.00016.64
7.4.210.0070.01116.55
7.4.200.0080.00016.50
7.4.190.0000.00716.75
7.4.160.0100.00716.63
7.4.150.0110.00917.40
7.4.140.0100.00717.86
7.4.130.0070.00916.43
7.4.120.0070.01116.38
7.4.110.0100.00716.50
7.4.100.0140.00616.63
7.4.90.0090.00916.29
7.4.80.0060.01919.39
7.4.70.0160.00016.45
7.4.60.0060.01016.29
7.4.50.0000.00816.34
7.4.40.0030.01316.55
7.4.30.0110.00516.50
7.4.00.0050.01214.93
7.3.330.0050.00013.16
7.3.320.0000.00613.34
7.3.310.0030.00416.19
7.3.300.0070.00016.27
7.3.290.0030.01216.28
7.3.280.0110.00516.24
7.3.270.0150.00617.40
7.3.260.0120.00616.49
7.3.250.0110.01116.45
7.3.240.0060.01216.36
7.3.230.0090.00616.39
7.3.210.0110.00716.38
7.3.200.0100.01019.39
7.3.190.0110.00716.58
7.3.180.0030.01316.30
7.3.170.0100.00716.52
7.3.160.0060.01016.40
7.3.120.0030.01514.74
7.3.110.0030.01314.74
7.3.100.0080.00815.01
7.3.90.0030.01214.86
7.3.80.0130.00314.97
7.3.70.0070.01114.85
7.3.60.0040.01114.75
7.3.50.0090.00614.68
7.3.40.0000.01414.94
7.3.30.0030.00714.53
7.3.20.0000.01116.42
7.3.10.0000.01116.72
7.3.00.0030.00916.55
7.2.330.0090.00916.78
7.2.320.0110.00716.43
7.2.310.0040.01416.66
7.2.300.0090.00916.52
7.2.290.0130.00616.81
7.2.250.0070.01314.96
7.2.240.0040.01514.97
7.2.230.0060.01214.91
7.2.220.0050.00515.11
7.2.210.0060.01315.16
7.2.200.0000.01315.15
7.2.190.0000.01315.06
7.2.180.0090.00614.95
7.2.170.0100.00714.86
7.2.00.0070.00719.36
7.1.330.0110.00015.71
7.1.320.0050.00315.70
7.1.310.0060.00815.84
7.1.300.0000.01015.68
7.1.290.0100.00315.42
7.1.280.0090.00615.71
7.1.270.0030.01015.77
7.1.260.0090.00615.53
7.1.200.0030.00315.89
7.1.100.0040.01017.95
7.1.70.0040.01217.06
7.1.60.0090.01519.46
7.1.50.0120.00416.72
7.1.00.0130.06722.54
7.0.200.0000.00716.67
7.0.140.0030.07722.13
7.0.70.0070.04721.67
7.0.60.0100.08021.68
7.0.50.0030.08022.20
7.0.40.0070.07020.12
7.0.30.0070.08320.08
7.0.20.0100.07320.03
7.0.10.0000.08020.09
7.0.00.0030.07720.02
5.6.280.0000.07721.10
5.6.220.0100.06320.62
5.6.210.0070.07720.46
5.6.200.0030.04720.95
5.6.190.0030.05721.04
5.6.180.0000.08021.09
5.6.170.0030.04320.96
5.6.160.0030.08021.18
5.6.150.0030.08021.02
5.6.140.0000.09021.01
5.6.130.0100.08021.07
5.6.120.0000.07721.02
5.6.110.0130.07721.05
5.6.100.0070.04321.01
5.6.90.0000.08321.04
5.6.80.0000.07720.56
5.6.70.0030.04020.40
5.6.60.0030.07020.41
5.6.50.0130.07320.43
5.6.40.0000.07320.49
5.6.30.0070.07020.54
5.6.20.0030.07720.37
5.6.10.0070.07320.41
5.6.00.0070.07720.28
5.5.360.0000.08320.35
5.5.350.0070.08320.41
5.5.340.0070.06020.83
5.5.330.0070.08020.90
5.5.320.0070.08020.73
5.5.310.0100.06320.92
5.5.300.0030.04720.90
5.5.290.0030.08020.73
5.5.280.0000.07020.86
5.5.270.0070.07720.89
5.5.260.0000.08720.86
5.5.250.0100.07720.61
5.5.240.0030.07720.16
5.5.230.0030.04720.20
5.5.220.0070.07020.14
5.5.210.0030.06320.31
5.5.200.0100.08320.28
5.5.190.0030.07720.13
5.5.180.0070.08020.24
5.5.160.0030.08020.26
5.5.150.0030.06719.99
5.5.140.0000.08320.11
5.5.130.0030.08019.99
5.5.120.0100.06320.18
5.5.110.0000.08020.24
5.5.100.0030.07720.08
5.5.90.0070.07720.07
5.5.80.0070.07720.10
5.5.70.0070.06320.00
5.5.60.0030.07720.15
5.5.50.0030.07320.14
5.5.40.0000.08020.08
5.5.30.0070.07720.00
5.5.20.0170.07020.04
5.5.10.0030.07319.98
5.5.00.0000.07719.95
5.4.450.0030.06019.42
5.4.440.0030.08019.45
5.4.430.0000.07719.17
5.4.420.0070.07019.37
5.4.410.0070.07319.07
5.4.400.0000.05319.26
5.4.390.0070.07319.05
5.4.380.0030.08019.21
5.4.370.0030.07319.05
5.4.360.0030.07718.88
5.4.350.0000.06019.03
5.4.340.0030.07318.95
5.4.320.0030.05019.13
5.4.310.0030.07319.13
5.4.300.0030.07019.07
5.4.290.0030.04019.23
5.4.280.0100.07319.16
5.4.270.0000.08019.13
5.4.260.0030.06719.04
5.4.250.0070.06719.13
5.4.240.0070.06718.94
5.4.230.0000.08019.04
5.4.220.0070.07319.03
5.4.210.0030.07719.15
5.4.200.0000.07319.08
5.4.190.0100.07019.13
5.4.180.0100.05718.83
5.4.170.0170.05319.20
5.4.160.0000.06719.11
5.4.150.0100.07019.18
5.4.140.0030.07016.19
5.4.130.0000.07716.19
5.4.120.0000.05716.51
5.4.110.0070.05716.47
5.4.100.0100.06016.51
5.4.90.0000.07716.35
5.4.80.0000.06716.37
5.4.70.0030.06716.33
5.4.60.0070.05016.46
5.4.50.0070.07316.25
5.4.40.0000.04016.35
5.4.30.0100.04716.31
5.4.20.0070.06316.40
5.4.10.0030.03716.26
5.4.00.0000.03715.69
5.3.290.0030.05714.59
5.3.280.0100.07014.56
5.3.270.0030.06314.60
5.3.260.0070.07314.58
5.3.250.0000.07314.62
5.3.240.0000.07714.68
5.3.230.0030.07314.57
5.3.220.0030.07314.63
5.3.210.0000.06314.58
5.3.200.0070.07314.52
5.3.190.0030.05314.69
5.3.180.0030.06014.63
5.3.170.0030.06714.58
5.3.160.0030.04314.54
5.3.150.0000.04014.59
5.3.140.0070.07014.52
5.3.130.0000.07714.47
5.3.120.0000.07014.47
5.3.110.0070.05014.49
5.3.100.0030.07014.13
5.3.90.0000.07013.99
5.3.80.0070.07014.02
5.3.70.0030.05714.08
5.3.60.0030.07013.99
5.3.50.0030.06014.08
5.3.40.0030.07314.00
5.3.30.0030.05714.04
5.3.20.0000.06313.66
5.3.10.0000.03313.58
5.3.00.0070.03013.77
5.2.170.0000.06711.20
5.2.160.0030.04711.26
5.2.150.0030.05311.20
5.2.140.0030.06311.23
5.2.130.0070.03711.10
5.2.120.0030.03711.10
5.2.110.0030.02311.00
5.2.100.0000.03011.13
5.2.90.0030.05311.11
5.2.80.0000.06311.18
5.2.70.0000.05711.02
5.2.60.0070.05311.16
5.2.50.0000.05311.07
5.2.40.0000.06011.11
5.2.30.0000.06311.03
5.2.20.0070.05010.87
5.2.10.0000.06010.89
5.2.00.0000.06010.77
5.1.60.0070.03710.76
5.1.50.0030.04710.76
5.1.40.0070.04710.76
5.1.30.0000.05710.76
5.1.20.0000.04710.76
5.1.10.0030.05310.76
5.1.00.0070.05310.76
5.0.50.0030.03710.76
5.0.40.0000.04310.76
5.0.30.0070.06010.76
5.0.20.0000.04310.76
5.0.10.0030.03710.76
5.0.00.0030.05710.76
4.4.90.0030.03010.76
4.4.80.0030.03010.76
4.4.70.0030.03310.76
4.4.60.0000.02710.76
4.4.50.0030.02310.76
4.4.40.0000.04010.76
4.4.30.0030.03310.76
4.4.20.0000.04010.76
4.4.10.0030.03710.76
4.4.00.0000.04710.76
4.3.110.0070.02710.76
4.3.100.0030.03310.76
4.3.90.0000.03310.76
4.3.80.0030.05310.76
4.3.70.0030.02710.76
4.3.60.0000.03710.76
4.3.50.0000.03310.76
4.3.40.0030.03310.76
4.3.30.0000.02710.76
4.3.20.0000.03010.76
4.3.10.0030.03310.76
4.3.00.0070.03010.76

preferences:
45.48 ms | 401 KiB | 5 Q