3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() {   for ($i = 0; $i < 10 ; $i++) {       yield $i;   }}; echo count(foo());

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)
5.4.310.1800.03319.22
5.4.300.2130.04319.08
5.4.290.1900.04019.28
5.4.280.1670.04019.15
5.4.270.1700.04719.31
5.4.260.1870.05019.13
5.4.250.1900.03318.94
5.4.240.1770.04719.19
5.4.230.1930.04019.19
5.4.220.1770.04319.07
5.4.210.1870.04318.86
5.4.200.1800.04319.21
5.4.190.1900.04018.94
5.4.180.1630.04719.30
5.4.170.0070.04019.23
5.4.160.0000.04719.19
5.4.150.0670.04319.07
5.4.140.1870.04016.39
5.4.130.1770.04016.51
5.4.120.1630.03316.45
5.4.110.1570.03716.61
5.4.100.1530.03716.58
5.4.90.1600.03316.29
5.4.80.1670.03716.25
5.4.70.1530.03716.54
5.4.60.1800.04016.22
5.4.50.1830.04016.22
5.4.40.1700.03316.22
5.4.30.1770.04716.37
5.4.20.1700.04016.16
5.4.10.1770.04716.51
5.4.00.1830.04315.84
5.3.280.1800.04014.73
5.3.270.1900.04314.53
5.3.260.1500.04714.68
5.3.250.1730.04314.54
5.3.240.1830.04314.51
5.3.230.1530.04014.61
5.3.220.1930.04014.47
5.3.210.1870.04314.54
5.3.200.1800.04714.55
5.3.190.1830.04314.48
5.3.180.1630.04314.58
5.3.170.1670.04314.59
5.3.160.1670.03314.57
5.3.150.1800.05014.56
5.3.140.1830.05014.54
5.3.130.1900.05014.56
5.3.120.1770.04014.48
5.3.110.1630.03714.63
5.3.100.1870.04313.96
5.3.90.1700.03714.13
5.3.80.1900.04014.23
5.3.70.1630.03713.92
5.3.60.1430.04013.92
5.3.50.1600.04313.96
5.3.40.1700.03014.17
5.3.30.1700.03313.91
5.3.20.1670.04013.79
5.3.10.1630.03013.67
5.3.00.1570.03713.71
5.2.170.1630.03011.12
5.2.160.1530.03311.20
5.2.150.1630.03711.06
5.2.140.1530.02711.19
5.2.130.1500.02311.18
5.2.120.1400.03311.10
5.2.110.1730.03011.01
5.2.100.1330.03311.25
5.2.90.1430.02011.02
5.2.80.1370.02711.20
5.2.70.1570.03011.21
5.2.60.1470.03011.27
5.2.50.1670.03710.94
5.2.40.1030.02710.89
5.2.30.1230.03310.97
5.2.20.1300.03710.96
5.2.10.1230.04010.91
5.2.00.1030.02710.77
5.1.60.1070.0279.87
5.1.50.1130.0209.93
5.1.40.1100.0209.88
5.1.30.1330.03310.32
5.1.20.1070.02710.43
5.1.10.1270.03010.30
5.1.00.1270.04310.29
5.0.50.0600.0178.68
5.0.40.0770.0208.48
5.0.30.0530.0308.11
5.0.20.0600.0238.19
5.0.10.0770.0308.14
5.0.00.0530.0408.03
4.4.90.0600.0206.71
4.4.80.0630.0206.71
4.4.70.0570.0206.71
4.4.60.0600.0176.71
4.4.50.0630.0176.71
4.4.40.0570.0336.71
4.4.30.0700.0276.71
4.4.20.0700.0206.71
4.4.10.0600.0236.71
4.4.00.0600.0306.71
4.3.110.0630.0176.71
4.3.100.0770.0306.71
4.3.90.0570.0206.71
4.3.80.0700.0436.71
4.3.70.0800.0206.71
4.3.60.0630.0336.71
4.3.50.0700.0236.71
4.3.40.0600.0276.71
4.3.30.0330.0176.71
4.3.20.0330.0176.71
4.3.10.0370.0306.71
4.3.00.0330.0306.71

preferences:
143.45 ms | 1394 KiB | 7 Q