3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $className = 'ma classe'; echo $classname;

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.00.0070.01119.06
7.1.200.0040.00815.69
7.1.100.0070.00717.89
7.1.70.0040.01117.04
7.1.60.0110.01419.22
7.1.50.0070.00416.83
7.1.00.0030.07722.46
7.0.200.0050.00216.55
7.0.140.0100.06022.04
7.0.60.0030.09019.97
7.0.50.0070.08017.81
7.0.40.0100.08720.07
7.0.30.0200.06020.09
7.0.20.0270.05720.20
7.0.10.0100.04320.18
7.0.00.0170.07320.00
5.6.280.0030.07320.89
5.6.210.0100.07720.46
5.6.200.0100.03718.12
5.6.190.0100.08320.60
5.6.180.0270.07720.68
5.6.170.0230.04020.51
5.6.160.0030.07320.46
5.6.150.0030.08318.15
5.6.140.0030.05018.18
5.6.130.0130.08018.21
5.6.120.0130.05320.96
5.6.110.0030.08021.08
5.6.100.0070.04721.13
5.6.90.0100.08320.94
5.6.80.0070.08320.53
5.5.350.0170.08020.41
5.5.340.0000.04018.02
5.5.330.0100.09020.19
5.5.320.0070.08320.24
5.5.310.0330.08020.23
5.5.300.0030.03718.01
5.5.290.0030.08018.01
5.5.280.0030.09320.77
5.5.270.0100.07320.73
5.5.260.0070.05020.86
5.5.250.0030.08320.48
5.5.240.0100.05720.34
5.4.450.0130.05719.11
5.4.440.0630.06019.12
5.4.430.0170.05019.11
5.4.420.0130.05019.39
5.4.410.0070.05719.19
5.4.400.0570.04719.18
5.4.390.0130.05018.89
5.4.380.0900.05318.72
5.4.370.0930.08018.71
5.4.360.0870.05018.65
5.4.350.0870.05018.71
5.4.340.0870.05018.58
5.4.320.1000.04018.44
5.4.310.0830.06718.45
5.4.300.0800.06318.62
5.4.290.1000.04018.70
5.4.280.0900.06018.71
5.4.270.0900.06718.65
5.4.260.0900.05318.48
5.4.250.1130.05718.73
5.4.240.0930.06718.48
5.4.230.0800.06318.55
5.4.220.1030.05018.56
5.4.210.1000.06018.48
5.4.200.0900.05316.48
5.4.190.0830.06018.50
5.4.180.1000.05318.66
5.4.170.0970.05318.70
5.4.160.0900.05318.56
5.4.150.0870.05318.74
5.4.140.1030.04716.30
5.4.130.0970.03316.12
5.4.120.0900.04716.25
5.4.110.0900.04716.21
5.4.100.0830.06016.24
5.4.90.0970.04716.24
5.4.80.0730.06016.24
5.4.70.0800.05716.15
5.4.60.0830.05316.03
5.4.50.0900.05016.13
5.4.40.1070.05316.29
5.4.30.0970.05716.13
5.4.20.0770.06016.19
5.4.10.0930.05316.00
5.4.00.0800.05315.57
5.3.290.0900.06014.75
5.3.280.1030.07014.51
5.3.270.0830.06314.51
5.3.260.0930.05314.53
5.3.250.0930.04714.58
5.3.240.0800.06014.63
5.3.230.0900.04714.52
5.3.220.0900.05014.47
5.3.210.0900.04714.61
5.3.200.0830.05014.52
5.3.190.0900.05014.59
5.3.180.0870.05314.47
5.3.170.0900.06014.51
5.3.160.0970.04014.64
5.3.150.1000.04014.46
5.3.140.0870.05714.46
5.3.130.0930.06714.45
5.3.120.0830.05314.62
5.3.110.0770.07314.47
5.3.100.0900.05313.94
5.3.90.0870.05013.91
5.3.80.0870.04714.00
5.3.70.0770.05313.99
5.3.60.0870.05313.92
5.3.50.0970.05313.85
5.3.40.0970.04313.87
5.3.30.0770.05313.89
5.3.20.0900.05013.68
5.3.10.0800.05313.73
5.3.00.0900.05013.71
5.2.170.0630.05711.10
5.2.160.0830.03311.11
5.2.150.0830.03711.10
5.2.140.0700.04011.17
5.2.130.0900.05011.11
5.2.120.0770.03311.05
5.2.110.0770.05711.17
5.2.100.0970.04711.13
5.2.90.0700.05711.07
5.2.80.0800.04711.05
5.2.70.0700.04311.05
5.2.60.0670.04711.09
5.2.50.0830.04011.05
5.2.40.0530.04711.14
5.2.30.0570.04010.95
5.2.20.0600.04011.09
5.2.10.0630.03710.92
5.2.00.0600.04310.80
5.1.60.0570.0339.97
5.1.50.0570.03710.12
5.1.40.0730.04010.02
5.1.30.0630.03010.29
5.1.20.0670.03010.46
5.1.10.0600.03710.13
5.1.00.0570.03710.13
5.0.50.0300.0308.68
5.0.40.0370.0278.42
5.0.30.0430.0408.36
5.0.20.0270.0308.39
5.0.10.0300.0308.36
5.0.00.0270.0508.32
4.4.90.0270.0236.66
4.4.80.0300.0206.66
4.4.70.0400.0176.66
4.4.60.0330.0206.66
4.4.50.0270.0276.66
4.4.40.0300.0376.66
4.4.30.0270.0236.66
4.4.20.0270.0236.66
4.4.10.0330.0176.66
4.4.00.0300.0336.66
4.3.110.0300.0236.66
4.3.100.0230.0276.66
4.3.90.0230.0306.66
4.3.80.0370.0306.66
4.3.70.0270.0276.66
4.3.60.0300.0206.66
4.3.50.0200.0306.66
4.3.40.0230.0406.66
4.3.30.0170.0236.66
4.3.20.0130.0236.66
4.3.10.0100.0276.66
4.3.00.0170.0237.57