3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doStuff() { $last = 0; $current = 1; yield 1; while (true) { $current = $last + $current; $last = $current - $last; yield $current; } } foreach(doStuff() as $num) echo $num, "\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.0560.01416.58
8.3.60.0590.01516.63
8.3.50.0510.03222.77
8.3.40.0400.03018.68
8.3.30.0370.03118.96
8.3.20.0270.00720.51
8.3.10.0340.00323.82
8.3.00.0210.01419.51
8.2.180.0230.01516.50
8.2.170.0590.01322.96
8.2.160.0610.00620.39
8.2.150.0190.01624.18
8.2.140.0300.00724.66
8.2.130.0110.01126.16
8.2.120.0200.01620.91
8.2.110.0440.00720.54
8.2.100.0280.01418.15
8.2.90.0060.00919.27
8.2.80.0060.00917.97
8.2.70.0200.00717.50
8.2.60.0130.00918.03
8.2.50.0200.00718.07
8.2.40.0140.01018.03
8.2.30.0100.01418.21
8.2.20.0160.01017.75
8.2.10.0190.00318.22
8.2.00.0180.00417.76
8.1.280.0450.01725.92
8.1.270.0210.01423.99
8.1.260.0330.00726.35
8.1.250.0270.00728.09
8.1.240.0240.02122.04
8.1.230.0380.01319.22
8.1.220.0110.01117.76
8.1.210.0200.00318.77
8.1.200.0230.00717.35
8.1.190.0100.01317.25
8.1.180.0130.01018.10
8.1.170.0060.00918.54
8.1.160.0130.00721.96
8.1.150.0170.00718.96
8.1.140.0110.01117.52
8.1.130.0220.00317.77
8.1.120.0140.01017.45
8.1.110.0160.00717.58
8.1.100.0110.01117.52
8.1.90.0140.01417.52
8.1.80.0030.01017.55
8.1.70.0090.01317.52
8.1.60.0110.01417.68
8.1.50.0100.01417.59
8.1.40.0090.01317.61
8.1.30.0180.01117.52
8.1.20.0070.02017.73
8.1.10.0130.01617.60
8.1.00.0150.00917.49
8.0.300.0110.01118.77
8.0.290.0150.00716.75
8.0.280.0100.01318.45
8.0.270.0130.01017.11
8.0.260.0100.01317.21
8.0.250.0070.01417.03
8.0.240.0170.01017.03
8.0.230.0170.00316.96
8.0.220.0120.00916.80
8.0.210.0180.00616.84
8.0.200.0180.00316.97
8.0.190.0180.01116.94
8.0.180.0130.01616.90
8.0.170.0040.01116.88
8.0.160.0170.00717.03
8.0.150.0200.00716.88
8.0.140.0070.00716.66
8.0.130.0100.01013.45
8.0.120.0100.00616.89
8.0.110.0130.01316.69
8.0.100.0100.01016.86
8.0.90.0180.00316.89
8.0.80.0100.02716.85
8.0.70.0110.00316.89
8.0.60.0180.00416.70
8.0.50.0070.01716.85
8.0.30.0870.04616.99
8.0.20.0910.03517.40
8.0.10.0030.00616.91
8.0.00.0900.03616.62
7.4.330.0120.01515.00
7.4.320.0100.01316.51
7.4.300.0170.00316.46
7.4.290.0170.00716.45
7.4.280.0190.00916.41
7.4.270.0130.01016.48
7.4.260.0080.00616.29
7.4.250.0090.01816.45
7.4.240.0150.00416.39
7.4.230.0120.00916.18
7.4.220.0530.05616.44
7.4.210.0340.04416.51
7.4.200.0070.01316.38
7.4.160.0640.03816.36
7.4.150.0680.04917.40
7.4.140.0720.05617.86
7.4.130.0680.05816.41
7.4.120.0890.05416.47
7.4.110.0740.04516.42
7.4.100.1200.05516.54
7.4.90.0860.06416.53
7.4.80.0590.05319.39
7.4.70.0560.07316.35
7.4.60.0520.05516.50
7.4.50.0060.00316.46
7.4.40.0410.05216.38
7.4.30.0320.02116.53
7.4.00.0030.02014.84
7.3.330.0130.01313.21
7.3.320.0130.00713.19
7.3.310.0180.01116.33
7.3.300.0040.00716.25
7.3.290.0260.04916.35
7.3.280.0460.04516.31
7.3.270.0290.04017.40
7.3.260.0740.07416.30
7.3.250.0850.04116.47
7.3.240.0860.03616.47
7.3.230.0750.06116.54
7.3.210.0780.03916.27
7.3.200.0400.06019.39
7.3.190.0520.08216.37
7.3.180.0690.05916.48
7.3.170.0750.06816.43
7.3.160.0470.05616.47
7.2.330.0760.06016.66
7.2.320.0660.04316.66
7.2.310.0660.07016.53
7.2.300.0270.03316.32
7.2.290.0720.05316.39
7.2.60.0300.00916.96
7.2.00.0070.01119.38
7.1.200.0040.00715.48
7.1.100.0200.01318.01
7.1.70.0040.01816.83
7.1.60.0240.00719.40
7.1.50.0100.01017.18
7.0.200.0140.01416.81

preferences:
48.62 ms | 401 KiB | 5 Q