3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php call_user_func(function($value) { echo (int)$value == 1 ? true : false; }, '1');

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.10.0040.00716.55
7.3.00.0040.00716.62
7.2.130.0080.00216.84
7.2.120.0040.01116.74
7.2.110.0020.01216.79
7.2.100.0030.00916.92
7.2.90.0020.01116.71
7.2.80.0070.00516.98
7.2.70.0090.00716.84
7.2.60.0040.01016.82
7.2.50.0090.00516.82
7.2.40.0090.00416.52
7.2.30.0080.00817.04
7.2.20.0100.00316.79
7.2.10.0080.00716.74
7.2.00.0080.00617.85
7.1.250.0030.01015.76
7.1.200.0000.01315.58
7.1.100.0080.00818.25
7.1.70.0090.00617.01
7.1.60.0170.00719.46
7.1.50.0030.01216.86
7.1.00.0130.06722.57
7.0.200.0040.00416.47
7.0.140.0030.09721.97
7.0.60.0030.07720.02
7.0.50.0000.04317.85
7.0.40.0030.04720.40
7.0.30.0530.06320.33
7.0.20.0230.07720.25
7.0.10.0070.08720.02
7.0.00.0100.08020.13
5.6.280.0000.07721.08
5.6.210.0000.08320.69
5.6.200.0100.03318.29
5.6.190.0000.04720.60
5.6.180.0270.07720.48
5.6.170.0230.06020.50
5.6.160.0030.04320.55
5.6.150.0030.08718.30
5.6.140.0130.07318.15
5.6.130.0070.07318.18
5.6.120.0170.07020.95
5.6.110.0100.07320.99
5.6.100.0100.07020.88
5.6.90.0170.07721.08
5.6.80.0200.07320.54
5.6.70.4600.03320.41
5.5.350.0230.08020.28
5.5.340.0130.04017.95
5.5.330.0170.07020.40
5.5.320.0170.04320.37
5.5.310.0270.07020.36
5.5.300.0030.04018.08
5.5.290.0030.05318.03
5.5.280.0000.09020.75
5.5.270.0030.09020.65
5.5.260.0030.05720.86
5.5.250.0030.08320.78
5.5.240.0270.07020.26
5.4.450.0930.05319.31
5.4.440.0830.06019.34
5.4.430.0100.05319.46
5.4.420.0730.04719.61
5.4.410.0700.03719.35
5.4.400.0200.04319.16
5.4.390.0670.06319.37
5.4.380.0230.06018.75
5.4.370.0170.06018.79
5.4.360.0230.05318.70
5.4.350.0270.05318.50
5.4.340.0400.07018.74
5.4.320.0040.03912.50
5.4.310.0050.03912.50
5.4.300.0050.03712.50
5.4.290.0110.08212.48
5.4.280.0070.08612.38
5.4.270.0070.05912.38
5.4.260.0100.05512.38
5.4.250.0120.05712.38
5.4.240.0140.05112.38
5.4.230.0160.07812.37
5.4.220.0160.07312.37
5.4.210.0090.06412.37
5.4.200.0120.05712.37
5.4.190.0110.05712.37
5.4.180.0120.05712.36
5.4.170.0050.06212.38
5.4.160.0100.05412.37
5.4.150.0110.06812.37
5.4.140.0130.10412.05
5.4.130.0110.07512.04
5.4.120.0120.07512.00
5.4.110.0180.06712.00
5.4.100.0110.07712.00
5.4.90.0090.08112.00
5.4.80.0060.08312.00
5.4.70.0120.07511.99
5.4.60.0090.06411.99
5.4.50.0120.07711.99
5.4.40.0150.08211.98
5.4.30.0160.06311.98
5.4.20.0240.07811.98
5.4.10.0140.07411.98
5.4.00.0120.06711.47
5.3.290.0070.03712.80
5.3.280.0150.07412.71
5.3.270.0210.07212.73
5.3.260.0240.07512.72
5.3.250.0160.05212.72
5.3.240.0110.05612.72
5.3.230.0110.08112.71
5.3.220.0160.07612.68
5.3.210.0120.07412.68
5.3.200.0090.05912.68
5.3.190.0100.06812.68
5.3.180.0180.08112.68
5.3.170.0090.07412.67
5.3.160.0130.07312.68
5.3.150.0130.08712.67
5.3.140.0230.09212.66
5.3.130.0090.05912.66
5.3.120.0070.06012.66
5.3.110.0070.04512.66
5.3.100.0080.04412.12
5.3.90.0110.05412.10
5.3.80.0110.05712.09
5.3.70.0110.06312.09
5.3.60.0100.04912.08
5.3.50.0070.06712.02
5.3.40.0200.04712.02
5.3.30.0120.05211.97
5.3.20.0100.05411.75
5.3.10.0060.06211.73
5.3.00.0140.06811.71
5.2.170.0140.0429.18
5.2.160.0150.0509.18
5.2.150.0160.0609.18
5.2.140.0120.0639.18
5.2.130.0120.0589.14
5.2.120.0070.0449.14
5.2.110.0100.0399.15
5.2.100.0100.0379.14
5.2.90.0050.0399.14
5.2.80.0040.0339.14
5.2.70.0070.0359.14
5.2.60.0130.1029.09
5.2.50.0070.0519.05
5.2.40.0060.0489.03
5.2.30.0150.0679.02
5.2.20.0110.0689.00
5.2.10.0070.0468.93
5.2.00.0120.0668.78
5.1.60.0110.0768.07
5.1.50.0080.0338.06
5.1.40.0040.0378.05
5.1.30.0080.0268.39
5.1.20.0070.0258.41
5.1.10.0070.0258.14
5.1.00.0050.0268.14
5.0.50.0040.0216.63
5.0.40.0020.0216.48
5.0.30.0070.0296.29
5.0.20.0050.0196.26
5.0.10.0050.0216.24
5.0.00.0070.0356.23
4.4.90.0090.0354.78
4.4.80.0060.0204.75
4.4.70.0100.0204.76
4.4.60.0070.0224.75
4.4.50.0040.0234.77
4.4.40.0030.0474.71
4.4.30.0050.0234.76
4.4.20.0050.0224.85
4.4.10.0060.0244.85
4.4.00.0050.0374.76
4.3.110.0050.0244.67
4.3.100.0110.0504.66
4.3.90.0040.0454.63
4.3.80.0060.0444.58
4.3.70.0040.0224.63
4.3.60.0070.0184.63
4.3.50.0030.0284.63
4.3.40.0060.0564.54
4.3.30.0040.0193.29
4.3.20.0020.0423.27
4.3.10.0030.0253.21
4.3.00.0200.01310.54