3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace something; $a = new \stdClass;

Here you find the average performance (time & memory) of each version. A greyed 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.0040.00718.90
7.1.100.0030.00717.77
7.1.70.0070.00016.68
7.1.60.0070.01719.70
7.1.50.0140.00716.87
7.1.00.0030.07722.40
7.0.200.0710.00014.62
7.0.140.0070.07022.00
7.0.60.0070.09019.90
7.0.50.0130.06717.85
7.0.40.0100.04020.40
7.0.30.0400.06320.09
7.0.20.0200.04720.30
7.0.10.0100.08720.19
7.0.00.0070.08720.13
5.6.280.0030.07321.08
5.6.210.0070.05320.74
5.6.200.0030.08318.11
5.6.190.0070.04020.77
5.6.180.0200.08320.27
5.6.170.0130.04320.47
5.6.160.0100.08720.61
5.6.150.0030.08018.18
5.6.140.0000.05718.22
5.6.130.0070.05018.16
5.6.120.0030.04021.01
5.6.110.0070.06720.95
5.6.100.0170.07721.09
5.6.90.0130.06721.13
5.6.80.0030.03720.52
5.5.350.2500.03720.31
5.5.340.0070.05717.97
5.5.330.0130.04720.46
5.5.320.0170.04320.20
5.5.310.0230.03720.32
5.5.300.0070.07017.95
5.5.290.0070.03717.91
5.5.280.0030.08720.84
5.5.270.0070.07720.67
5.5.260.0100.08320.95
5.5.250.0070.08720.70
5.5.240.0130.07020.11
5.4.450.0000.05319.43
5.4.440.0000.03719.24
5.4.430.0230.05019.57
5.4.420.0100.04319.55
5.4.410.0200.04019.26
5.4.400.0130.04319.22
5.4.390.0330.04719.24
5.4.380.0300.06018.79
5.4.370.0370.05018.64
5.4.360.0370.04718.74
5.4.350.0300.06718.77
5.4.340.0400.04318.56
5.4.320.0090.04712.45
5.4.310.0110.03212.45
5.4.300.0080.03612.45
5.4.290.0040.04012.45
5.4.280.0050.03812.34
5.4.270.0090.03612.35
5.4.260.0080.04212.35
5.4.250.0030.04512.35
5.4.240.0060.05012.35
5.4.230.0110.04512.34
5.4.220.0100.05112.34
5.4.210.0100.06312.34
5.4.200.0080.05412.34
5.4.190.0090.07412.33
5.4.180.0120.04912.33
5.4.170.0100.05112.35
5.4.160.0060.03912.34
5.4.150.0090.03512.34
5.4.140.0050.04112.02
5.4.130.0130.04512.01
5.4.120.0070.05411.96
5.4.110.0060.05311.96
5.4.100.0070.04911.96
5.4.90.0110.05111.96
5.4.80.0060.05411.96
5.4.70.0100.03611.96
5.4.60.0060.04411.96
5.4.50.0030.03811.96
5.4.40.0050.03511.95
5.4.30.0040.03611.94
5.4.20.0040.04111.95
5.4.10.0090.04111.94
5.4.00.0060.04111.44
5.3.290.0110.04012.80
5.3.280.0070.04012.71
5.3.270.0120.08012.73
5.3.260.0070.03912.72
5.3.250.0090.03612.72
5.3.240.0180.07912.72
5.3.230.0160.09912.71
5.3.220.0090.05012.68
5.3.210.0140.06912.68
5.3.200.0050.04212.68
5.3.190.0060.04312.67
5.3.180.0070.03912.67
5.3.170.0100.03912.67
5.3.160.0080.03812.67
5.3.150.0070.03912.68
5.3.140.0110.03312.66
5.3.130.0110.04712.66
5.3.120.0070.05312.66
5.3.110.0070.05312.66
5.3.100.0090.05912.12
5.3.90.0110.04812.09
5.3.80.0120.06212.08
5.3.70.0090.05812.07
5.3.60.0080.06512.06
5.3.50.0090.04612.00
5.3.40.0050.05312.00
5.3.30.0070.05211.95
5.3.20.0080.03811.73
5.3.10.0140.04511.70
5.3.00.0080.04411.69
5.2.170.0070.0349.18
5.2.160.0050.0329.18
5.2.150.0050.0329.18
5.2.140.0080.0309.18
5.2.130.0080.0289.14
5.2.120.0020.0349.14
5.2.110.0040.0319.14
5.2.100.0050.0309.14
5.2.90.0060.0289.14
5.2.80.0050.0309.14
5.2.70.0120.0589.14
5.2.60.0090.0359.09
5.2.50.0050.0319.06
5.2.40.0040.0309.04
5.2.30.0070.0339.02
5.2.20.0110.0369.00
5.2.10.0080.0588.92
5.2.00.0090.0368.78
5.1.60.0070.0338.07
5.1.50.0110.0568.06
5.1.40.0050.0368.05
5.1.30.0120.0328.40
5.1.20.0140.0358.42
5.1.10.0220.0478.14
5.1.00.0120.0308.14
5.0.50.0080.0526.62
5.0.40.0060.0206.48
5.0.30.0060.0306.29
5.0.20.0020.0226.27
5.0.10.0060.0306.24
5.0.00.0050.0326.23
4.4.90.0030.0184.78
4.4.80.0060.0194.76
4.4.70.0030.0164.75
4.4.60.0020.0194.75
4.4.50.0050.0194.77
4.4.40.0020.0284.71
4.4.30.0030.0164.75
4.4.20.0010.0194.84
4.4.10.0030.0174.84
4.4.00.0040.0254.76
4.3.110.0040.0164.66
4.3.100.0030.0164.66
4.3.90.0050.0184.64
4.3.80.0030.0294.58
4.3.70.0020.0224.63
4.3.60.0120.0364.63
4.3.50.0110.0304.62
4.3.40.0050.0304.53
4.3.30.0080.0283.28
4.3.20.0020.0223.26
4.3.10.0040.0253.22
4.3.00.0070.01316.97