3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fibonacci() { $last = 0; $current = 1; yield 1; while (true) { $current = $last + $current; $last = $current - $last; yield $current; } } foreach (fibonacci() as $number) { echo $number . "\n"; }

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.0160.01016.73
8.3.60.0240.03616.75
8.3.50.0200.01222.00
8.3.40.0190.01618.62
8.3.30.0270.00719.16
8.3.20.0120.00020.32
8.3.10.0070.00723.78
8.3.00.0070.00720.69
8.2.190.0110.01118.23
8.2.180.0210.01416.50
8.2.170.0250.00322.96
8.2.160.0100.01720.52
8.2.150.0130.00024.18
8.2.140.0070.00724.66
8.2.130.0150.00026.16
8.2.120.0090.00322.44
8.2.110.0040.01222.16
8.2.100.0110.01117.84
8.2.90.0070.00319.04
8.2.80.0030.00617.97
8.2.70.0090.00317.38
8.2.60.0070.00317.93
8.2.50.0040.00718.07
8.2.40.0030.00718.22
8.2.30.0070.00318.12
8.2.20.0080.00317.71
8.2.10.0000.01017.87
8.2.00.0040.00717.76
8.1.280.0200.01325.92
8.1.270.0060.00622.02
8.1.260.0070.00726.35
8.1.250.0100.00328.09
8.1.240.0030.01023.97
8.1.230.0120.00619.22
8.1.220.0050.00517.74
8.1.210.0000.01018.77
8.1.200.0150.00317.35
8.1.190.0060.00617.52
8.1.180.0000.01018.10
8.1.170.0110.01118.22
8.1.160.0110.00722.05
8.1.150.0030.00718.58
8.1.140.0100.00017.53
8.1.130.0000.00917.89
8.1.120.0030.00617.45
8.1.110.0030.00717.54
8.1.100.0000.00917.42
8.1.90.0070.00317.49
8.1.80.0030.00617.39
8.1.70.0030.00617.43
8.1.60.0070.00317.66
8.1.50.0030.00617.55
8.1.40.0070.00317.59
8.1.30.0060.00317.65
8.1.20.0060.00317.56
8.1.10.0100.00317.54
8.1.00.0000.00917.49
8.0.300.0000.00918.77
8.0.290.0030.00716.91
8.0.280.0000.00918.30
8.0.270.0090.00017.20
8.0.260.0130.00016.84
8.0.250.0030.00716.98
8.0.240.0070.00416.97
8.0.230.0100.00016.91
8.0.220.0100.00016.93
8.0.210.0060.00316.80
8.0.200.0000.01016.95
8.0.190.0030.00616.92
8.0.180.0070.00316.83
8.0.170.0060.00316.82
8.0.160.0060.00316.93
8.0.150.0030.00616.75
8.0.140.0030.00616.92
8.0.130.0030.00913.43
8.0.120.0090.00616.90
8.0.110.0090.00016.82
8.0.100.0070.00316.85
8.0.90.0050.00516.79
8.0.80.0230.01616.91
8.0.70.0000.01016.89
8.0.60.0000.01016.81
8.0.50.0000.01516.86
8.0.30.0380.02717.07
8.0.20.0270.04017.40
8.0.10.0030.00616.94
8.0.00.0440.04116.64
7.4.330.0050.00315.02
7.4.320.0000.01216.29
7.4.300.0130.00916.39
7.4.290.0040.00816.42
7.4.280.0040.00716.35
7.4.270.0040.00416.53
7.4.260.0000.00916.46
7.4.250.0060.00316.30
7.4.240.0020.00716.42
7.4.230.0050.00316.54
7.4.220.0100.01716.28
7.4.210.0100.02216.43
7.4.200.0000.00816.54
7.4.190.0100.00316.42
7.4.160.0570.04416.59
7.4.150.0360.06617.40
7.4.140.0500.04917.86
7.4.130.0550.04916.53
7.4.120.0450.04716.43
7.4.110.0300.04016.52
7.4.100.0560.05016.42
7.4.90.0490.04716.30
7.4.80.0100.01916.48
7.4.70.0410.04916.49
7.4.60.0520.04416.56
7.4.50.0050.00516.24
7.4.40.0070.01822.77
7.4.30.0310.02516.45
7.4.00.0330.01515.00
7.3.330.0100.00013.45
7.3.320.0060.01313.23
7.3.310.0030.00616.35
7.3.300.0000.00916.43
7.3.290.0140.01716.36
7.3.280.0130.02316.33
7.3.270.0650.05317.40
7.3.260.0340.02116.32
7.3.250.0340.03916.28
7.3.240.0330.01716.41
7.3.230.0740.03116.39
7.3.210.0720.04216.59
7.3.200.0320.03316.32
7.3.190.0490.04816.34
7.3.180.0720.05016.52
7.3.170.0390.03616.32
7.3.160.0470.03816.29
7.3.120.0030.01614.86
7.3.10.0110.03416.44
7.3.00.0160.00816.36
7.2.330.0510.06316.39
7.2.320.0470.05616.78
7.2.310.0360.04916.41
7.2.300.0140.01416.66
7.2.290.0410.03516.40
7.2.130.0180.00716.54
7.2.120.0160.00816.25
7.2.110.0170.00616.36
7.2.100.0200.00416.48
7.2.90.0080.00816.36
7.2.80.0180.00416.72
7.2.70.0160.01016.84
7.2.60.0170.01316.53
7.2.50.0090.00616.38
7.2.40.0130.00316.75
7.2.30.0180.00616.65
7.2.20.0060.01316.36
7.2.10.0120.00616.34
7.2.00.0140.00716.64
7.1.250.0170.00315.57
7.1.70.0060.00617.05
7.1.60.0170.01019.29
7.1.50.0130.01616.79
7.0.200.0110.00716.84
5.4.250.0100.06318.94
5.4.240.0070.07318.97
5.4.230.0000.07718.87
5.4.220.0030.05319.34
5.4.210.0100.06319.30
5.4.200.0100.03319.15
5.4.190.0070.07319.18
5.4.180.0100.07018.97
5.4.170.0030.04019.18
5.4.160.0070.04019.04
5.4.150.0000.04019.07
5.4.140.0100.05016.36
5.4.130.0100.06716.28
5.4.120.0000.06316.32
5.4.110.0030.06016.39
5.4.100.0000.07016.48
5.4.90.0070.07016.54
5.4.80.0030.07716.54
5.4.70.0070.06716.25
5.4.60.0000.04316.29
5.4.50.0030.06316.38
5.4.40.0030.06316.25
5.4.30.0030.07716.53
5.4.20.0100.06316.25
5.4.10.0070.06316.23
5.4.00.0030.07315.79
5.3.280.0100.07014.82
5.3.270.0030.07714.82
5.3.260.0030.05314.82
5.3.250.0100.05314.82
5.3.240.0030.07314.82
5.3.230.0030.05714.82
5.3.220.0030.07014.82
5.3.210.0030.07314.82
5.3.200.0070.04714.82
5.3.190.0000.07014.82
5.3.180.0130.05714.82
5.3.170.0030.07314.82
5.3.160.0000.04314.82
5.3.150.0000.04014.82
5.3.140.0070.06014.82
5.3.130.0070.07714.82
5.3.120.0070.06314.82
5.3.110.0030.06314.82
5.3.100.0070.07014.82
5.3.90.0030.07314.82
5.3.80.0130.05014.82
5.3.70.0030.06014.82
5.3.60.0170.06014.82
5.3.50.0030.07014.82
5.3.40.0030.05714.82
5.3.30.0070.07014.82
5.3.20.0100.04714.82
5.3.10.0030.07014.82
5.3.00.0030.06314.82

preferences:
44.76 ms | 401 KiB | 5 Q