3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $old = 30; $name ='翔太'; for ($count = 0; $count < 10; $count++){ if ($old >= 20){ print '年齢は20才以上です'; echo $name¥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).
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.60.0060.00916.79
7.2.00.0040.00719.43
7.1.200.0100.00315.74
7.1.100.0000.01317.81
7.1.70.0000.01216.96
7.1.60.0100.01319.33
7.1.50.0060.01616.53
7.1.00.0030.07722.57
7.0.200.0000.01016.80
7.0.140.0030.06721.95
7.0.60.0100.08019.91
7.0.50.0070.06017.87
7.0.40.0070.08320.18
7.0.30.0430.06320.32
7.0.20.0330.05019.99
7.0.10.0030.08020.02
7.0.00.0100.08020.03
5.6.280.0000.07721.11
5.6.210.0270.07320.60
5.6.200.0070.05718.18
5.6.190.0000.04720.41
5.6.180.0300.04320.77
5.6.170.0300.07320.51
5.6.160.0030.04720.33
5.6.150.0030.07318.14
5.6.140.0100.03318.15
5.6.130.0100.08018.21
5.6.120.0130.07721.01
5.6.110.0130.08021.00
5.6.100.0100.08321.02
5.6.90.0030.08721.09
5.6.80.0130.07320.28
5.6.70.4630.03320.41
5.5.350.0100.06720.48
5.5.340.0070.08717.98
5.5.330.0070.03720.22
5.5.320.0070.07720.21
5.5.310.0200.03720.31
5.5.300.0100.04318.01
5.5.290.0070.08318.02
5.5.280.0070.04720.86
5.5.270.0000.04720.96
5.5.260.0170.06320.78
5.5.250.0030.04320.68
5.5.240.0070.07320.02
5.4.450.1100.05019.39
5.4.440.0930.03019.54
5.4.430.0130.04719.57
5.4.420.0430.03719.45
5.4.410.1030.03319.34
5.4.400.0300.03019.09
5.4.390.0300.03319.08
5.4.380.0400.07318.73
5.4.370.0300.07718.49
5.4.360.0570.06718.59
5.4.350.0400.04718.72
5.4.340.0470.05018.56
5.4.320.0070.03812.45
5.4.310.0090.05212.45
5.4.300.0080.04112.45
5.4.290.0060.04312.45
5.4.280.0120.03312.32
5.4.270.0060.04112.32
5.4.260.0070.04012.32
5.4.250.0130.03512.32
5.4.240.0080.03812.32
5.4.230.0040.04312.31
5.4.220.0060.03812.31
5.4.210.0090.03412.31
5.4.200.0070.03912.31
5.4.190.0120.05112.31
5.4.180.0120.06812.31
5.4.170.0110.05512.32
5.4.160.0080.05312.31
5.4.150.0090.06012.30
5.4.140.0120.05411.99
5.4.130.0090.04811.98
5.4.120.0100.05711.94
5.4.110.0120.05111.93
5.4.100.0100.04611.93
5.4.90.0090.05111.94
5.4.80.0130.04511.93
5.4.70.0110.03711.93
5.4.60.0060.03811.93
5.4.50.0100.03611.93
5.4.40.0080.03411.92
5.4.30.0080.03511.92
5.4.20.0080.03611.92
5.4.10.0070.04911.92
5.4.00.0110.04611.41
5.3.290.0060.04512.80
5.3.280.0140.03712.70
5.3.270.0070.04212.73
5.3.260.0060.04212.72
5.3.250.0090.03712.72
5.3.240.0090.05112.72
5.3.230.0100.04912.71
5.3.220.0090.03812.68
5.3.210.0070.04712.68
5.3.200.0090.05112.68
5.3.190.0160.05812.68
5.3.180.0120.04812.67
5.3.170.0100.05912.67
5.3.160.0080.03912.68
5.3.150.0100.03812.68
5.3.140.0100.03712.66
5.3.130.0110.05512.66
5.3.120.0120.05312.66
5.3.110.0120.05612.66
5.3.100.0120.05512.12
5.3.90.0110.05012.08
5.3.80.0090.03712.07
5.3.70.0100.03912.08
5.3.60.0090.06212.07
5.3.50.0100.04112.00
5.3.40.0120.03912.00
5.3.30.0060.04111.94
5.3.20.0110.03411.70
5.3.10.0120.03511.66
5.3.00.0090.03811.65
5.2.170.0060.0339.15
5.2.160.0050.0499.15
5.2.150.0130.0379.15
5.2.140.0090.0369.14
5.2.130.0120.0469.11
5.2.120.0060.0319.11
5.2.110.0150.0599.12
5.2.100.0130.0409.11
5.2.90.0060.0469.11
5.2.80.0100.0289.11
5.2.70.0040.0329.11
5.2.60.0100.0509.06
5.2.50.0130.0379.03
5.2.40.0090.0469.00
5.2.30.0090.0418.98
5.2.20.0130.0598.97
5.2.10.0100.0468.89
5.2.00.0110.0388.76
5.1.60.0100.0318.04
5.1.50.0070.0338.04
5.1.40.0100.0498.03
5.1.30.0150.0408.38
5.1.20.0120.0298.40
5.1.10.0090.0458.13
5.1.00.0110.0388.12
5.0.50.0100.0306.59
5.0.40.0140.0496.46
5.0.30.0060.0586.27
5.0.20.0090.0276.25
5.0.10.0100.0326.22
5.0.00.0120.0686.21
4.4.90.0050.0554.78
4.4.80.0090.0204.75
4.4.70.0070.0254.75
4.4.60.0050.0244.76
4.4.50.0040.0254.77
4.4.40.0070.0384.70
4.4.30.0130.0294.76
4.4.20.0070.0224.84
4.4.10.0050.0234.85
4.4.00.0050.0344.76
4.3.110.0020.0194.67
4.3.100.0060.0154.66
4.3.90.0060.0134.63
4.3.80.0050.0264.58
4.3.70.0050.0154.63
4.3.60.0020.0174.63
4.3.50.0020.0184.63
4.3.40.0040.0254.54
4.3.30.0020.0183.27
4.3.20.0020.0173.25
4.3.10.0010.0183.22
4.3.00.0300.02713.47