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.60.0160.01316.63
8.3.50.0170.01421.95
8.3.40.0290.01319.02
8.3.30.0110.01819.22
8.3.20.0090.00320.46
8.3.10.0060.00623.64
8.3.00.0030.00920.77
8.2.180.0040.02216.75
8.2.170.0450.01722.96
8.2.160.0170.00722.27
8.2.150.0120.00324.18
8.2.140.0090.00624.66
8.2.130.0110.00326.16
8.2.120.0090.00322.31
8.2.110.0130.00322.02
8.2.100.0170.00717.72
8.2.90.0140.01119.22
8.2.80.0110.00017.97
8.2.70.0160.01017.49
8.2.60.0030.01217.80
8.2.50.0070.00318.07
8.2.40.0030.00719.09
8.2.30.0070.00318.13
8.2.20.0070.00317.88
8.2.10.0040.01117.81
8.2.00.0080.00317.76
8.1.280.0170.01025.92
8.1.270.0120.00323.96
8.1.260.0130.00026.35
8.1.250.0140.00028.09
8.1.240.0130.00323.96
8.1.230.0150.00018.97
8.1.220.0030.00717.74
8.1.210.0040.00718.77
8.1.200.0080.00417.35
8.1.190.0070.00317.40
8.1.180.0030.00618.10
8.1.170.0140.00018.48
8.1.160.0060.00322.13
8.1.150.0030.00618.62
8.1.140.0000.00917.59
8.1.130.0000.00817.82
8.1.120.0100.00317.45
8.1.110.0000.00917.42
8.1.100.0030.01017.59
8.1.90.0000.01017.59
8.1.80.0090.00017.51
8.1.70.0040.00417.45
8.1.60.0030.01017.69
8.1.50.0000.00917.61
8.1.40.0030.00617.66
8.1.30.0030.00917.70
8.1.20.0000.01017.64
8.1.10.0060.00317.51
8.1.00.0060.00317.35
8.0.300.0030.00718.77
8.0.290.0090.00317.05
8.0.280.0060.00318.39
8.0.270.0170.00017.19
8.0.260.0110.00016.83
8.0.250.0070.00316.86
8.0.240.0050.00516.89
8.0.230.0000.01016.94
8.0.220.0030.00716.94
8.0.210.0100.00016.95
8.0.200.0040.00416.97
8.0.190.0000.01016.84
8.0.180.0080.00416.91
8.0.170.0070.00316.79
8.0.160.0100.00316.85
8.0.150.0140.00716.75
8.0.140.0100.00016.75
8.0.130.0000.00913.40
8.0.120.0060.00316.88
8.0.110.0000.01016.79
8.0.100.0070.00716.90
8.0.90.0050.00516.82
8.0.80.0120.01816.86
8.0.70.0030.00616.88
8.0.60.0060.00316.78
8.0.50.0200.00316.87
8.0.30.0350.04617.03
8.0.20.0280.03717.40
8.0.10.0090.00316.96
8.0.00.0460.04416.73
7.4.330.0060.00315.07
7.4.320.0000.00816.48
7.4.300.0050.00316.40
7.4.290.0000.01016.43
7.4.280.0070.00416.30
7.4.270.0070.00416.52
7.4.260.0090.00016.41
7.4.250.0130.00716.25
7.4.240.0050.00416.43
7.4.230.0000.00916.55
7.4.220.0310.05616.48
7.4.210.0160.02816.45
7.4.200.0050.01416.32
7.4.190.0070.00316.44
7.4.160.0230.03816.44
7.4.150.0690.03917.40
7.4.140.0470.06217.86
7.4.130.0420.06116.48
7.4.120.0440.03416.38
7.4.110.0660.04116.44
7.4.100.0590.05916.51
7.4.90.0580.03816.41
7.4.80.0440.03616.50
7.4.70.0500.04716.31
7.4.60.0470.05016.51
7.4.50.0040.00716.23
7.4.40.0140.01122.77
7.4.30.0330.04016.54
7.3.330.0030.00513.45
7.3.320.0100.00313.44
7.3.310.0070.00316.34
7.3.300.0040.00716.26
7.3.290.0130.01716.28
7.3.280.0140.01816.26
7.3.270.0510.03717.40
7.3.260.0880.06216.35
7.3.250.0560.04316.56
7.3.240.0230.02016.46
7.3.230.0180.01216.46
7.3.210.0610.04216.41
7.3.200.0160.02319.39
7.3.190.0480.04916.53
7.3.180.0510.04316.36
7.3.170.0110.03016.68
7.3.160.0370.04816.15
7.2.330.0540.05816.63
7.2.320.0300.04916.67
7.2.310.0760.05216.73
7.2.300.0140.02916.57
7.2.290.0330.03616.72
7.2.100.0860.01314.39
7.2.90.0320.02314.62
7.2.80.0490.03214.49
7.2.70.1460.01814.68
7.2.60.0200.01215.01
7.2.50.1360.00914.56
7.2.40.0210.03614.88
7.2.30.0530.03214.59
7.2.20.0250.02214.80
7.2.10.0630.01314.77
7.2.00.0210.01114.95
7.1.220.0190.03213.84
7.1.210.0790.01113.51
7.1.200.1480.01313.84
7.1.190.0190.01613.86
7.1.180.0540.01913.65
7.1.170.0520.01313.95
7.1.160.1350.01013.73
7.1.150.0490.01513.79
7.1.140.0860.00313.72
7.1.130.0580.00713.64
7.1.120.0230.03113.65
7.1.110.1070.01013.73
7.1.100.0130.00913.78
7.1.90.0230.01514.09
7.1.80.1380.01313.66
7.1.70.0270.01313.82
7.1.60.0440.00332.04
7.1.50.1340.01331.75
7.1.40.1510.03631.95
7.1.30.1970.01631.85
7.1.20.0290.02231.54
7.1.10.0290.02913.74
7.1.00.0380.02313.57
7.0.310.1230.00713.44
7.0.300.1170.00613.44
7.0.290.0630.01013.48
7.0.280.1310.00713.44
7.0.270.0190.01913.44
7.0.260.0460.01013.48
7.0.250.0510.00413.44
7.0.240.0200.00413.60
7.0.230.0430.02313.45
7.0.220.0730.03213.55
7.0.210.0390.03613.44
7.0.200.0590.01113.47
7.0.190.1360.02413.44
7.0.180.0390.02613.52
7.0.170.1670.01313.68
7.0.160.0540.01413.59
7.0.150.1170.01013.44
7.0.140.0150.01213.44
7.0.130.1820.00913.47
7.0.120.1420.02813.54
7.0.110.1670.02913.70
7.0.100.1680.01413.44
7.0.90.0520.02313.61
7.0.80.1730.02113.50
7.0.70.1210.01613.52
7.0.60.0480.02413.44
7.0.50.0830.01513.66
7.0.40.0150.01113.68
7.0.30.1590.01013.62
7.0.20.1550.01013.50
7.0.10.1620.02713.72
7.0.00.0320.00613.44
5.6.380.0100.01314.44
5.6.370.0450.01514.16
5.6.360.0160.00614.13
5.6.350.0330.03813.86
5.6.340.0400.02514.24
5.6.330.0220.02914.00
5.6.320.0270.02414.36
5.6.310.0270.03114.29
5.6.300.0180.01114.15
5.6.290.0150.04114.56
5.6.280.0320.02814.33
5.6.270.0110.01414.38
5.6.260.0470.02014.27
5.6.250.0300.02014.17
5.6.240.0120.01214.08
5.6.230.0220.00914.57
5.6.220.0140.00314.09
5.6.210.0390.02214.25
5.6.200.0340.01914.22
5.6.190.0260.01914.13
5.6.180.0310.02114.14
5.6.170.0120.00814.13
5.6.160.0260.02313.68
5.6.150.0460.00713.82
5.6.140.0350.04214.12
5.6.130.0300.02614.05
5.6.120.0160.01213.92
5.6.110.0200.03113.96
5.6.100.0140.02114.07
5.6.90.0310.03914.38
5.6.80.0070.02014.04
5.6.70.0200.02014.07
5.6.60.0180.02414.07
5.6.50.0140.00914.12
5.6.40.0390.01814.25
5.6.30.0130.02514.21
5.6.20.0420.02413.96
5.5.380.0500.03013.44
5.5.370.0050.00913.44
5.5.360.0180.01113.44
5.5.350.0140.00713.44
5.5.340.0200.02713.44
5.5.330.0510.02313.44
5.5.320.0250.03913.44
5.5.310.0260.01913.44
5.5.300.0280.02713.44
5.5.290.0380.01213.44
5.5.280.0450.02113.44
5.5.270.0090.00913.44
5.5.260.0390.01713.44
5.5.250.0410.01813.44
5.5.240.0160.00413.44
5.5.230.0000.02113.44
5.5.220.0270.00713.44
5.5.210.0470.01313.44
5.5.200.0050.01513.44
5.5.190.0100.00613.44
5.4.450.0060.00313.44
5.4.440.0090.00013.44
5.4.430.0070.00313.44
5.4.420.0070.00213.44
5.4.410.0000.01013.44
5.4.400.0070.00513.44
5.4.390.0040.00413.44
5.4.380.0030.00813.44
5.4.370.0090.00313.44
5.4.360.0060.00313.44
5.4.350.0060.00613.44

preferences:
40.3 ms | 401 KiB | 5 Q