3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo() { static $x = 1; $x += 10; yield $x; $x += 100; yield $x; $x += 1000; yield $x; } $x = foo(); $x->rewind(); $x->rewind(); $x->rewind(); $x->rewind();
based on Q05YV

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.00.0030.00919.39
7.1.100.0040.00718.36
7.1.70.0030.00517.17
7.1.60.0110.01419.46
7.1.50.0090.01216.86
7.1.00.0100.07022.45
7.0.200.0030.00616.87
7.0.140.0070.05021.98
7.0.60.0070.03719.93
7.0.50.0070.06717.89
7.0.40.0100.05320.20
7.0.30.0300.05720.11
7.0.20.0370.06020.29
7.0.10.0070.04020.24
7.0.00.0070.06020.12
5.6.280.0030.07320.89
5.6.210.0000.04320.61
5.6.200.0000.04318.19
5.6.190.0070.04320.61
5.6.180.0370.08020.50
5.6.170.0230.04720.39
5.6.160.0000.04320.50
5.6.150.0070.07718.15
5.6.140.0170.06718.14
5.6.130.0100.07018.28
5.6.120.0070.03721.02
5.6.110.0130.07720.98
5.6.100.0000.05021.13
5.6.90.0070.08720.97
5.6.80.0030.08320.38
5.5.350.0370.08020.52
5.5.340.0030.07317.99
5.5.330.0170.04020.57
5.5.320.0030.04020.36
5.5.310.0200.07320.41
5.5.300.0130.07718.07
5.5.290.0070.04017.98
5.5.280.0070.04720.77
5.5.270.0100.08320.75
5.5.260.0070.07320.68
5.5.250.0170.07020.58
5.5.240.0070.07320.36
5.4.450.0400.05719.34
5.4.440.0130.06019.20
5.4.430.0170.05319.62
5.4.420.0100.05319.43
5.4.410.0070.05719.43
5.4.400.0100.05319.22
5.4.390.0900.07318.68
5.4.380.1000.06718.67
5.4.370.0900.07718.50
5.4.360.0930.07318.55
5.4.350.0900.07718.46
5.4.340.0770.05318.64
5.4.320.0800.05318.77
5.4.310.1200.05318.68
5.4.300.1030.05018.77
5.4.290.1030.04718.55
5.4.280.0830.05318.68
5.4.270.1000.05718.67
5.4.260.1030.05318.73
5.4.250.0900.05018.57
5.4.240.0830.05718.45
5.4.230.0800.06018.49
5.4.220.0830.05318.58
5.4.210.0730.05018.77
5.4.200.1000.06016.68
5.4.190.0700.06018.48
5.4.180.0770.06318.62
5.4.170.0800.05018.66
5.4.160.0770.06018.72
5.4.150.0830.05718.47
5.4.140.0830.05716.17
5.4.130.0870.06316.34
5.4.120.0970.06316.30
5.4.110.0830.05016.18
5.4.100.0870.06316.33
5.4.90.0830.05716.29
5.4.80.0900.05316.25
5.4.70.0770.06016.42
5.4.60.0970.05316.27
5.4.50.1000.04316.26
5.4.40.0930.05016.18
5.4.30.1030.04716.20
5.4.20.0870.05016.26
5.4.10.0830.07016.28
5.4.00.0900.06715.68
5.3.290.1030.07014.76
5.3.280.1070.05314.70
5.3.270.1070.06014.63
5.3.260.0930.05314.83
5.3.250.0830.05314.73
5.3.240.0630.06314.74
5.3.230.1000.07014.60
5.3.220.0970.08014.61
5.3.210.0970.05014.63
5.3.200.0300.05714.67
5.3.190.0200.05714.60
5.3.180.0370.04714.59
5.3.170.0170.05714.70
5.3.160.0300.04314.61
5.3.150.0330.04314.59
5.3.140.0200.05014.69
5.3.130.0270.05014.73
5.3.120.0330.06014.66
5.3.110.0200.07314.68
5.3.100.0330.06014.07
5.3.90.0400.05314.05
5.3.80.0300.04714.04
5.3.70.0230.06014.04
5.3.60.0300.04314.06
5.3.50.0270.05013.95
5.3.40.0200.05714.02
5.3.30.0230.06013.96
5.3.20.0400.05013.91
5.3.10.0330.04713.73
5.3.00.0400.05313.68
5.2.170.0200.05311.16
5.2.160.0370.05311.14
5.2.150.0270.04011.21
5.2.140.0430.03311.21
5.2.130.0330.05311.11
5.2.120.0230.06311.17
5.2.110.0600.03711.14
5.2.100.0470.04711.20
5.2.90.0330.05011.20
5.2.80.0470.05711.14
5.2.70.0270.04011.11
5.2.60.0100.04711.17
5.2.50.0370.03011.04
5.2.40.0230.04010.99
5.2.30.0330.03311.09
5.2.20.0270.03711.07
5.2.10.0130.04710.92
5.2.00.0330.03310.77
5.1.60.0170.04710.01
5.1.50.0200.03310.00
5.1.40.0200.03010.05
5.1.30.0230.03710.34
5.1.20.0230.04010.35
5.1.10.0230.03010.24
5.1.00.0200.03310.05
5.0.50.0070.0338.65
5.0.40.0070.0308.43
5.0.30.0200.0378.32
5.0.20.0100.0308.29
5.0.10.0230.0378.19
5.0.00.0130.0538.20
4.4.90.0100.0305.93
4.4.80.0100.0305.86
4.4.70.0130.0336.00
4.4.60.0130.0235.90
4.4.50.0170.0235.88
4.4.40.0070.0435.99
4.4.30.0070.0275.89
4.4.20.0170.0306.07
4.4.10.0130.0205.98
4.4.00.0170.0405.94
4.3.110.0130.0305.81
4.3.100.0130.0335.81
4.3.90.0130.0275.78
4.3.80.0070.0475.82
4.3.70.0070.0305.80
4.3.60.0130.0275.77
4.3.50.0200.0275.81
4.3.40.0100.0405.89
4.3.30.0130.0234.56
4.3.20.0130.0204.63
4.3.10.0070.0234.49
4.3.00.0130.0206.71