3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $userId = null; $moduleId = 5; if(!$userId || !$moduleId) { echo 'sdfsdf'; }
based on evZqq

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.3.0rc40.0350.00798.97
7.3.0rc30.0060.00616.24
7.3.0beta10.0040.00712.46
7.3.0alpha10.0060.00612.75
7.2.60.0170.00016.91
7.1.200.0000.01015.55
7.1.70.0090.00317.00
7.1.60.0110.01519.32
7.1.50.0120.00916.89
7.1.00.0170.06022.29
7.0.200.0000.00716.70
7.0.140.0070.07022.08
7.0.60.0030.09020.03
7.0.50.0100.08317.88
7.0.40.0100.08020.04
7.0.30.0330.07720.21
7.0.20.0270.09020.01
7.0.10.0030.06020.12
7.0.00.0000.04320.00
5.6.280.0000.07720.98
5.6.210.0130.07720.50
5.6.200.0030.04318.09
5.6.190.0070.06720.67
5.6.180.0570.06720.64
5.6.170.0170.05020.50
5.6.160.0130.07720.40
5.6.150.0100.04718.21
5.6.140.0070.05018.16
5.6.130.0030.05318.16
5.6.120.0100.04320.75
5.6.110.0130.07721.13
5.6.100.0170.07721.10
5.6.90.0070.04721.00
5.6.80.0100.04720.34
5.5.350.0130.04020.40
5.5.340.0030.05717.97
5.5.330.0130.07020.23
5.5.320.0330.05020.13
5.5.310.0270.03720.50
5.5.300.0070.03317.88
5.5.290.0030.05017.89
5.5.280.0000.05320.75
5.5.270.0100.06020.73
5.5.260.0070.05320.86
5.5.250.0070.08320.58
5.5.240.0230.06720.11
5.4.450.0130.05019.63
5.4.440.0700.05719.12
5.4.430.0730.04019.34
5.4.420.0670.06319.57
5.4.410.0770.05719.19
5.4.400.0930.04319.07
5.4.390.0930.04719.22
5.4.380.0430.05018.52
5.4.370.0200.06018.68
5.4.360.0170.06318.72
5.4.350.0400.05318.59
5.4.340.0530.05718.70
5.4.320.0040.04712.45
5.4.310.0080.03612.45
5.4.300.0070.03712.45
5.4.290.0090.04912.45
5.4.280.0100.04712.34
5.4.270.0040.04112.35
5.4.260.0090.03812.34
5.4.250.0090.03512.34
5.4.240.0110.04812.35
5.4.230.0090.03712.34
5.4.220.0090.03612.34
5.4.210.0090.04812.34
5.4.200.0070.04812.34
5.4.190.0080.03412.34
5.4.180.0080.03412.34
5.4.170.0100.03212.34
5.4.160.0080.03412.34
5.4.150.0040.03712.34
5.4.140.0060.03612.02
5.4.130.0100.03112.01
5.4.120.0080.03411.96
5.4.110.0090.03211.96
5.4.100.0090.03711.96
5.4.90.0050.03811.96
5.4.80.0040.03811.97
5.4.70.0050.03511.96
5.4.60.0060.03411.96
5.4.50.0060.03411.96
5.4.40.0070.03211.95
5.4.30.0030.03711.95
5.4.20.0040.03811.95
5.4.10.0070.03811.95
5.4.00.0070.03511.43
5.3.290.0070.04612.80
5.3.280.0070.03612.71
5.3.270.0090.03512.73
5.3.260.0090.03512.72
5.3.250.0050.03712.71
5.3.240.0090.03612.72
5.3.230.0130.04412.71
5.3.220.0080.03912.68
5.3.210.0030.04412.68
5.3.200.0060.03612.68
5.3.190.0060.04812.68
5.3.180.0090.04012.67
5.3.170.0070.03512.67
5.3.160.0100.04012.67
5.3.150.0060.03712.67
5.3.140.0070.03612.66
5.3.130.0070.03812.66
5.3.120.0070.03712.66
5.3.110.0040.04212.66
5.3.100.0060.03712.12
5.3.90.0050.03712.09
5.3.80.0060.03612.08
5.3.70.0080.03512.07
5.3.60.0050.03812.07
5.3.50.0060.03712.00
5.3.40.0070.03512.00
5.3.30.0090.03111.94
5.3.20.0080.03311.72
5.3.10.0120.03311.69
5.3.00.0070.03511.68
5.2.170.0030.0319.18
5.2.160.0050.0299.18
5.2.150.0070.0279.18
5.2.140.0050.0299.17
5.2.130.0060.0289.14
5.2.120.0030.0319.13
5.2.110.0040.0299.14
5.2.100.0040.0329.13
5.2.90.0060.0299.14
5.2.80.0080.0359.13
5.2.70.0070.0299.13
5.2.60.0070.0309.09
5.2.50.0070.0289.05
5.2.40.0060.0319.03
5.2.30.0020.0329.01
5.2.20.0130.0229.00
5.2.10.0070.0258.91
5.2.00.0050.0308.77
5.1.60.0060.0218.06
5.1.50.0040.0248.06
5.1.40.0060.0238.04
5.1.30.0050.0258.39
5.1.20.0050.0278.41
5.1.10.0080.0218.13
5.1.00.0010.0288.13
5.0.50.0060.0176.61
5.0.40.0030.0206.47
5.0.30.0010.0346.29
5.0.20.0030.0196.26
5.0.10.0050.0176.23
5.0.00.0040.0306.22
4.4.90.0050.0134.77
4.4.80.0050.0124.75
4.4.70.0010.0174.75
4.4.60.0040.0134.76
4.4.50.0010.0174.77
4.4.40.0020.0264.71
4.4.30.0020.0224.76
4.4.20.0040.0144.85
4.4.10.0020.0164.85
4.4.00.0060.0214.76
4.3.110.0020.0164.67
4.3.100.0040.0134.66
4.3.90.0030.0144.63
4.3.80.0020.0294.59
4.3.70.0060.0184.63
4.3.60.0040.0204.62
4.3.50.0030.0224.63
4.3.40.0030.0244.54
4.3.30.0020.0163.28
4.3.20.0040.0203.25
4.3.10.0030.0143.21
4.3.00.0000.0236.76