3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ' hello'; echo $a.PHP_EOL; echo trim($a);
based on BQPsJ

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.60.0040.01116.83
7.2.00.0040.00819.14
7.1.200.0080.00415.41
7.1.100.0090.00318.11
7.1.70.0000.00717.20
7.1.60.0000.02519.46
7.1.50.0130.01016.93
7.1.00.0070.08722.43
7.0.200.1080.01014.94
7.0.140.0070.07022.12
7.0.60.0030.07319.82
7.0.50.0100.04717.90
7.0.40.0170.03320.23
7.0.30.0400.05720.13
7.0.20.0200.08320.09
7.0.10.0070.09320.17
7.0.00.0070.03720.08
5.6.280.0100.06721.11
5.6.210.0000.05320.55
5.6.200.0170.07018.15
5.6.190.0030.04720.63
5.6.180.0400.06320.33
5.6.170.0270.08020.61
5.6.160.0070.08320.48
5.6.150.0130.06718.20
5.6.140.0030.08318.20
5.6.130.0070.05318.09
5.6.120.0170.07721.10
5.6.110.0070.03721.12
5.6.100.0100.06021.02
5.6.90.0070.05721.09
5.6.80.0070.07720.44
5.5.350.0300.06720.34
5.5.340.0070.08317.91
5.5.330.0030.05720.06
5.5.320.0030.08720.24
5.5.310.0270.06720.16
5.5.300.0070.07317.98
5.5.290.0070.06017.89
5.5.280.0030.08020.96
5.5.270.0070.08720.82
5.5.260.0100.07720.79
5.5.250.0070.06720.68
5.5.240.0030.03320.25
5.4.450.0200.06019.32
5.4.440.0770.05019.63
5.4.430.0070.06019.46
5.4.420.0170.04719.48
5.4.410.0230.06719.52
5.4.400.0200.05019.22
5.4.390.0170.06018.49
5.4.380.0270.04718.60
5.4.370.0200.05018.71
5.4.360.0170.05318.52
5.4.350.0270.04718.65
5.4.340.0130.05718.49
5.4.320.0070.07718.48
5.4.310.0200.05318.65
5.4.300.0170.05318.45
5.4.290.0200.05318.70
5.4.280.0100.06318.76
5.4.270.0230.06018.52
5.4.260.0270.05718.70
5.4.250.0200.05318.71
5.4.240.0130.06018.62
5.4.230.0200.05318.48
5.4.220.0270.07018.68
5.4.210.0230.04718.69
5.4.200.0230.05016.65
5.4.190.0300.04318.61
5.4.180.0230.05318.64
5.4.170.0370.05718.63
5.4.160.0170.05718.71
5.4.150.0170.06018.68
5.4.140.0230.05016.02
5.4.130.0230.04716.06
5.4.120.0270.06316.20
5.4.110.0200.07016.18
5.4.100.0200.06716.24
5.4.90.0200.05716.05
5.4.80.0270.05016.33
5.4.70.0230.05016.05
5.4.60.0170.06016.07
5.4.50.0130.05316.20
5.4.40.0270.04716.32
5.4.30.0370.04316.19
5.4.20.0130.06716.12
5.4.10.0370.03316.27
5.4.00.0130.05015.68
5.3.290.0230.05014.68
5.3.280.0130.06314.52
5.3.270.0100.06714.65
5.3.260.0200.05314.55
5.3.250.0230.04714.53
5.3.240.0200.05014.53
5.3.230.0200.05714.59
5.3.220.0200.06014.56
5.3.210.0130.08014.46
5.3.200.0230.05714.46
5.3.190.0230.07014.64
5.3.180.0330.05714.51
5.3.170.0270.04714.54
5.3.160.0170.05714.54
5.3.150.0230.06314.53
5.3.140.0230.05014.50
5.3.130.0200.05714.45
5.3.120.0230.05714.61
5.3.110.0230.05314.53
5.3.100.0230.06014.00
5.3.90.0230.06013.99
5.3.80.0200.07014.04
5.3.70.0230.05713.91
5.3.60.0330.05313.90
5.3.50.0200.06314.03
5.3.40.0170.06313.97
5.3.30.0170.06013.93
5.3.20.0200.06313.72
5.3.10.0270.06313.59
5.3.00.0170.07713.54
5.2.170.0130.06011.12
5.2.160.0100.05311.14
5.2.150.0070.06011.18
5.2.140.0200.05011.16
5.2.130.0170.04011.07
5.2.120.0170.03711.10
5.2.110.0170.05311.07
5.2.100.0230.04011.13
5.2.90.0470.04311.03
5.2.80.0230.05311.11
5.2.70.0130.05011.22
5.2.60.0130.05011.00
5.2.50.0230.03710.98
5.2.40.0130.04010.89
5.2.30.0130.04311.00
5.2.20.0130.04310.99
5.2.10.0170.04010.86
5.2.00.0200.03710.67
5.1.60.0200.02310.08
5.1.50.0100.0409.94
5.1.40.0170.03010.10
5.1.30.0130.03710.34
5.1.20.0170.03710.32
5.1.10.0170.04010.07
5.1.00.0200.03010.12
5.0.50.0130.0338.61
5.0.40.0130.0338.41
5.0.30.0130.0538.18
5.0.20.0130.0238.18
5.0.10.0100.0308.34
5.0.00.0070.0438.27
4.4.90.0070.0306.75
4.4.80.0100.0176.75
4.4.70.0070.0236.75
4.4.60.0070.0206.75
4.4.50.0130.0136.75
4.4.40.0030.0376.75
4.4.30.0100.0176.75
4.4.20.0070.0306.75
4.4.10.0070.0236.75
4.4.00.0030.0406.75
4.3.110.0030.0276.75
4.3.100.0030.0336.75
4.3.90.0170.0206.75
4.3.80.0070.0436.75
4.3.70.0030.0336.75
4.3.60.0130.0276.75
4.3.50.0000.0276.75
4.3.40.0030.0376.75
4.3.30.0070.0276.75
4.3.20.0270.0176.75
4.3.10.0070.0206.75
4.3.00.0070.0209.24