3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a .= "xxx"; print_r($a);

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.0080.00716.45
7.3.00.0130.00016.64
7.2.130.0130.00316.82
7.2.120.0000.01416.67
7.2.110.0100.00716.27
7.2.100.0070.00816.58
7.2.90.0140.00516.68
7.2.80.0080.00616.55
7.2.70.0110.00616.89
7.2.60.0100.00816.73
7.2.50.0090.00716.69
7.2.40.0080.00816.85
7.2.30.0110.00716.75
7.2.20.0110.00716.93
7.2.10.0150.00616.82
7.2.00.0060.01117.57
7.1.250.0130.00015.82
7.1.230.0140.00315.86
7.1.220.0110.00715.87
7.1.210.0150.00315.81
7.1.200.0150.00615.47
7.1.190.0100.00715.41
7.1.180.0090.00615.71
7.1.170.0080.00815.88
7.1.160.0090.00615.70
7.1.150.0080.00815.85
7.1.140.0100.00715.63
7.1.130.0120.00515.82
7.1.120.0100.01115.69
7.1.110.0110.00615.59
7.1.100.0130.00516.97
7.1.90.0090.00915.94
7.1.80.0230.00615.81
7.1.70.0050.00716.58
7.1.60.0180.00317.79
7.1.50.0100.01016.41
7.1.40.0170.00216.08
7.1.30.0160.00315.55
7.1.20.0160.00415.57
7.1.10.0150.00015.69
7.1.00.0060.03319.04
7.0.310.0110.00815.54
7.0.300.0090.00415.53
7.0.290.0130.00315.07
7.0.280.0140.01015.29
7.0.270.0120.00815.23
7.0.260.0380.00715.44
7.0.250.0470.00915.58
7.0.240.0270.00915.44
7.0.230.0210.00015.52
7.0.220.0120.00815.55
7.0.210.0150.00015.40
7.0.200.0030.00815.85
7.0.190.0130.00315.57
7.0.180.0110.00615.44
7.0.170.0090.00615.41
7.0.160.0090.00915.12
7.0.150.0120.00515.23
7.0.140.0060.04118.70
7.0.130.0110.00615.49
7.0.120.0070.00715.22
7.0.110.0040.01215.46
7.0.100.0090.00715.41
7.0.90.0040.00915.34
7.0.80.0060.00615.37
7.0.70.0150.00315.54
7.0.60.0110.03817.63
7.0.50.0080.03816.64
7.0.40.0050.02516.64
7.0.30.0150.02516.79
7.0.20.0200.03816.75
7.0.10.0080.03416.82
7.0.00.0090.04416.79
hhvm-3.22.00.0890.14589.98
hhvm-3.21.30.0990.12790.23
hhvm-3.21.00.0920.11689.80
hhvm-3.20.20.0700.12390.14
hhvm-3.19.20.0790.10389.14
hhvm-3.18.50.0730.13788.34
hhvm-3.18.40.0720.12688.63
hhvm-3.17.30.0650.11786.79
hhvm-3.15.40.0710.10285.12
hhvm-3.13.20.0600.12396.23
hhvm-3.12.140.0820.11195.23
hhvm-3.11.10.0690.11387.50
hhvm-3.10.10.0670.10484.46
5.6.380.0130.00513.95
5.6.370.0110.00814.25
5.6.360.0060.01114.36
5.6.350.0070.01114.39
5.6.340.0120.00814.29
5.6.330.0050.00814.39
5.6.320.0090.00514.29
5.6.310.0070.00314.25
5.6.300.0120.00014.43
5.6.290.0080.00414.21
5.6.280.0060.05017.67
5.6.270.0060.01214.57
5.6.260.0070.01114.28
5.6.250.0110.00714.09
5.6.240.0070.01014.33
5.6.230.0100.00814.59
5.6.220.0070.01114.14
5.6.210.0100.04117.32
5.6.200.0110.02916.36
5.6.190.0160.04017.52
5.6.180.1850.02017.57
5.6.170.0180.04217.35
5.6.160.0040.04217.35
5.6.150.0030.04616.22
5.6.140.0080.04316.27
5.6.130.0090.04316.16
5.6.120.0090.04217.65
5.6.110.0080.02117.58
5.6.100.0080.04517.66
5.6.90.0120.04017.54
5.6.80.0080.03617.37
5.6.70.0380.02317.41
5.6.60.0150.00014.04
5.6.50.0050.01014.31
5.6.40.0120.00414.34
5.6.30.0150.00014.04
5.6.20.0190.00614.25
5.6.10.0090.00614.27
5.6.00.0100.01014.16
5.5.380.0090.00612.79
5.5.370.0090.00412.79
5.5.360.0030.01012.79
5.5.350.0180.03516.55
5.5.340.0030.04715.41
5.5.330.0060.05016.50
5.5.320.0180.03416.60
5.5.310.0220.04216.49
5.5.300.0140.03315.40
5.5.290.0050.02315.35
5.5.280.0140.02516.83
5.5.270.0100.04516.77
5.5.260.0110.03816.75
5.5.250.0080.04316.64
5.5.240.0170.03516.57
5.5.230.0070.00712.79
5.5.220.0110.00012.79
5.5.210.0110.00312.79
5.5.200.0110.00212.79
5.5.190.0030.00712.79
5.5.180.0070.00412.79
5.5.170.0170.00713.80
5.5.160.0120.00012.79
5.5.150.0130.00312.79
5.5.140.0150.00312.79
5.5.130.0100.00312.79
5.5.120.0070.00412.79
5.5.110.0060.00612.79
5.5.100.0200.00012.79
5.5.90.0040.00912.79
5.5.80.0090.00412.79
5.5.70.0080.00412.79
5.5.60.0130.00312.79
5.5.50.0170.00312.79
5.5.40.0110.00012.79
5.5.30.0090.00312.79
5.5.20.0130.00312.79
5.5.10.0080.00312.79
5.5.00.0120.00212.79
5.4.450.0140.02321.36
5.4.440.0240.02221.36
5.4.430.0100.02120.54
5.4.420.0180.02320.54
5.4.410.0150.02220.54
5.4.400.0210.02120.54
5.4.390.0200.02520.54
5.4.380.0190.03415.74
5.4.370.0140.03315.74
5.4.360.0160.02315.69
5.4.350.0130.03515.62
5.4.340.0070.03215.75
5.4.330.0040.00812.79
5.4.320.0070.02112.62
5.4.310.0090.02212.62
5.4.300.0080.02112.62
5.4.290.0060.02512.62
5.4.280.0080.02312.57
5.4.270.0120.02012.57
5.4.260.0060.02612.57
5.4.250.0080.02512.57
5.4.240.0100.02312.57
5.4.230.0080.02112.56
5.4.220.0070.02412.56
5.4.210.0080.02212.56
5.4.200.0100.02412.56
5.4.190.0090.02412.56
5.4.180.0060.02312.56
5.4.170.0090.02112.57
5.4.160.0150.01612.57
5.4.150.0100.01812.56
5.4.140.0110.02112.41
5.4.130.0110.02012.40
5.4.120.0100.02012.38
5.4.110.0090.02212.38
5.4.100.0060.02212.38
5.4.90.0090.02412.38
5.4.80.0090.02112.38
5.4.70.0070.02512.37
5.4.60.0090.02012.37
5.4.50.0100.01712.37
5.4.40.0070.02012.37
5.4.30.0040.02512.37
5.4.20.0060.02412.37
5.4.10.0070.02012.37
5.4.00.0090.01712.11
5.3.290.0080.02212.79
5.3.280.0060.02412.75
5.3.270.0060.02412.76
5.3.260.0090.02212.76
5.3.250.0110.02612.75
5.3.240.0090.02212.75
5.3.230.0060.02612.75
5.3.220.0050.02612.74
5.3.210.0100.02012.73
5.3.200.0060.02312.74
5.3.190.0080.02012.73
5.3.180.0060.02412.73
5.3.170.0110.01812.73
5.3.160.0080.02012.73
5.3.150.0070.02012.73
5.3.140.0060.02212.72
5.3.130.0110.01812.72
5.3.120.0090.02012.72
5.3.110.0080.02312.72
5.3.100.0080.02312.45
5.3.90.0070.02012.44
5.3.80.0060.02112.43
5.3.70.0050.02112.43
5.3.60.0050.02112.43
5.3.50.0020.02412.39
5.3.40.0070.02012.39
5.3.30.0080.01912.37
5.3.20.0070.02012.25
5.3.10.0070.02112.24
5.3.00.0050.02312.23
5.2.170.0050.01810.98
5.2.160.0070.01410.98
5.2.150.0060.01510.98
5.2.140.0060.01610.98
5.2.130.0070.01510.96
5.2.120.0030.02010.96
5.2.110.0060.01810.96
5.2.100.0040.01610.96
5.2.90.0080.01610.96
5.2.80.0080.01410.96
5.2.70.0040.01710.96
5.2.60.0070.01410.94
5.2.50.0070.01610.92
5.2.40.0050.01910.91
5.2.30.0040.01810.90
5.2.20.0070.01510.89
5.2.10.0060.01410.85
5.2.00.0050.01610.78
5.1.60.0050.01410.43
5.1.50.0050.01310.42
5.1.40.0040.01610.41
5.1.30.0050.01510.59
5.1.20.0070.01410.60
5.1.10.0050.01410.46
5.1.00.0050.01510.46
5.0.50.0030.0139.70
5.0.40.0050.0119.63
5.0.30.0050.0169.54
5.0.20.0030.0129.52
5.0.10.0050.0109.51
5.0.00.0020.0199.51
4.4.90.0030.0098.78
4.4.80.0010.0108.77
4.4.70.0050.0088.77
4.4.60.0060.0078.77
4.4.50.0010.0118.78
4.4.40.0030.0148.75
4.4.30.0040.0088.77
4.4.20.0030.0098.82
4.4.10.0060.0078.82
4.4.00.0040.0138.78
4.3.110.0070.0058.73
4.3.100.0020.0108.73
4.3.90.0030.0088.71
4.3.80.0050.0138.69
4.3.70.0040.0098.71
4.3.60.0030.0088.71
4.3.50.0070.0078.71
4.3.40.0010.0158.66
4.3.30.0020.0108.03
4.3.20.0010.0138.02
4.3.10.0030.0088.00
4.3.00.0140.01513.56