3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_replace('/(\s)\s+/u', '$1', html_entity_decode(' &nbsp; ', ENT_QUOTES, 'utf-8')));
based on jiP9W

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.0080.00319.47
7.1.100.0000.01218.33
7.1.70.0000.00817.11
7.1.60.0100.01319.46
7.1.50.0100.01317.13
7.1.00.0070.07322.35
7.0.200.0000.01016.75
7.0.140.0030.06721.92
7.0.60.0030.07719.83
7.0.50.0130.05017.89
7.0.40.0100.07720.23
7.0.30.0270.04720.03
7.0.20.0300.05320.18
7.0.10.0130.08320.03
7.0.00.0130.08320.34
5.6.280.0070.06720.82
5.6.210.0170.07320.62
5.6.200.0070.07318.13
5.6.190.0070.08720.60
5.6.180.3930.04720.49
5.6.170.0230.08320.38
5.6.160.0030.08720.51
5.6.150.0030.05718.12
5.6.140.0200.06718.20
5.6.130.0070.04718.11
5.6.120.0070.06021.13
5.6.110.0100.08320.88
5.6.100.0070.08721.13
5.6.90.0070.08020.96
5.6.80.0170.06320.37
5.6.70.3830.04020.27
5.5.350.0430.06320.32
5.5.340.0030.09017.93
5.5.330.0100.06720.43
5.5.320.0300.05720.29
5.5.310.0230.04720.14
5.5.300.0070.04717.93
5.5.290.0000.04317.95
5.5.280.0230.07020.89
5.5.270.0170.07720.72
5.5.260.0130.08720.71
5.5.250.0100.07720.66
5.5.240.0200.07320.33
5.4.450.0100.06719.48
5.4.440.0230.07319.63
5.4.430.0100.06019.48
5.4.420.0130.05719.63
5.4.410.0030.06719.36
5.4.400.0200.04719.25
5.4.390.0130.05718.57
5.4.380.0170.06018.61
5.4.370.0130.05718.68
5.4.360.0230.04318.50
5.4.350.0200.05018.49
5.4.340.0070.06018.49
5.4.320.0170.05718.65
5.4.310.0170.05718.56
5.4.300.0130.05718.60
5.4.290.0130.05318.56
5.4.280.0270.04318.69
5.4.270.0270.05318.60
5.4.260.0300.04718.61
5.4.250.0270.05018.61
5.4.240.0300.04318.52
5.4.230.0200.05318.45
5.4.220.0170.05718.69
5.4.210.0200.05018.48
5.4.200.0230.05016.55
5.4.190.0070.07018.55
5.4.180.0300.04318.61
5.4.170.0230.05018.68
5.4.160.0300.05718.50
5.4.150.0270.04718.63
5.4.140.0230.04716.26
5.4.130.0230.04316.06
5.4.120.0130.05716.22
5.4.110.0130.05016.21
5.4.100.0170.05016.18
5.4.90.0130.05016.25
5.4.80.0070.05716.19
5.4.70.0100.05716.23
5.4.60.0170.05016.23
5.4.50.0130.05316.11
5.4.40.0130.06016.34
5.4.30.0200.05016.21
5.4.20.0130.05716.16
5.4.10.0130.05716.13
5.4.00.0130.05315.71
5.3.290.0170.05714.57
5.3.280.0170.05314.55
5.3.270.0130.05714.57
5.3.260.0170.05714.67
5.3.250.0170.05314.51
5.3.240.0170.05314.75
5.3.230.0100.06014.75
5.3.220.0200.05314.49
5.3.210.0170.06314.47
5.3.200.0130.06314.49
5.3.190.0270.05314.55
5.3.180.0130.05714.52
5.3.170.0130.05714.46
5.3.160.0100.06314.61
5.3.150.0170.05314.65
5.3.140.0100.06014.51
5.3.130.0130.06314.57
5.3.120.0300.04314.53
5.3.110.0230.05714.53
5.3.100.0200.05713.94
5.3.90.0300.04014.02
5.3.80.0230.05714.00
5.3.70.0230.04713.99
5.3.60.0230.06313.93
5.3.50.0230.04713.91
5.3.40.0170.05713.90
5.3.30.0200.05014.00
5.3.20.0330.03713.68
5.3.10.0270.03713.62
5.3.00.0130.05013.61
5.2.170.0070.04711.20
5.2.160.0200.03011.05
5.2.150.0070.05011.18
5.2.140.0170.04711.05
5.2.130.0170.03711.17
5.2.120.0100.04011.05
5.2.110.0030.04711.09
5.2.100.0130.04711.09
5.2.90.0130.04011.24
5.2.80.0270.03311.31
5.2.70.0100.04311.13
5.2.60.0100.04711.11
5.2.50.0070.05711.05
5.2.40.0170.05011.07
5.2.30.0130.05711.18
5.2.20.0130.04011.00
5.2.10.0130.05010.99
5.2.00.0130.04310.85
5.1.60.0170.02710.02
5.1.50.0070.04010.01
5.1.40.0170.03710.04
5.1.30.0200.02710.43
5.1.20.0070.05710.32
5.1.10.0070.04010.04
5.1.00.0130.03710.16
5.0.50.0130.0238.61
5.0.40.0070.0308.46
5.0.30.0070.0438.25
5.0.20.0130.0308.26
5.0.10.0070.0278.16
5.0.00.0000.0538.19
4.4.90.0030.0275.89
4.4.80.0070.0305.94
4.4.70.0070.0275.90
4.4.60.0070.0235.88
4.4.50.0100.0275.86
4.4.40.0130.0335.87
4.4.30.0170.0175.90
4.4.20.0000.0376.00
4.4.10.0100.0235.96
4.4.00.0130.0275.89
4.3.110.0070.0275.86
4.3.100.0100.0205.81
4.3.90.0030.0235.83
4.3.80.0100.0305.78
4.3.70.0100.0175.81
4.3.60.0100.0205.77
4.3.50.0100.0205.80
4.3.40.0030.0375.73
4.3.30.0000.0274.63
4.3.20.0070.0204.58
4.3.10.0030.0234.43
4.3.00.0030.0209.33