3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a[1] = 'lolol'; $a[2] = '1l1l1l'; $a[3] = '<p></p>'; $a[4] = 'assa"".**&'; function protect(){ addslashes($a); array_map("strip_tags",$a); } foreach($a as $k => $v){ echo $k,$v; } return $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.2.00.0030.01019.07
7.1.100.0000.00918.11
7.1.70.0000.00817.18
7.1.60.0110.01419.46
7.1.50.0030.01716.93
7.1.00.0100.07022.36
7.0.200.0160.01014.95
7.0.140.0070.07022.09
7.0.60.0100.05319.95
7.0.50.0070.08017.87
7.0.40.0030.04720.20
7.0.30.0330.07320.21
7.0.20.0230.05720.15
7.0.10.0070.08720.25
7.0.00.0070.08020.24
5.6.280.0070.07020.91
5.6.210.0000.07320.61
5.6.200.0030.07018.20
5.6.190.0130.07720.47
5.6.180.0270.03320.64
5.6.170.0470.06320.39
5.6.160.0030.08020.71
5.6.150.0100.05318.13
5.6.140.0030.05318.24
5.6.130.0130.08018.14
5.6.120.0130.07721.01
5.6.110.0070.06021.05
5.6.100.0200.07020.96
5.6.90.0070.08320.99
5.6.80.0030.07020.38
5.6.70.4570.04320.52
5.5.350.0200.08020.40
5.5.340.0100.08018.08
5.5.330.0130.06020.13
5.5.320.0200.04320.27
5.5.310.0230.06720.30
5.5.300.0000.08718.08
5.5.290.0130.04017.99
5.5.280.0170.07320.73
5.5.270.0100.08020.89
5.5.260.0070.08320.77
5.5.250.0000.07720.46
5.5.240.0330.06720.18
5.4.450.0100.04319.57
5.4.440.0100.04019.41
5.4.430.0170.04019.54
5.4.420.0130.03719.40
5.4.410.0100.04019.19
5.4.400.0230.04019.25
5.4.390.0370.03719.09
5.4.380.0230.03318.87
5.4.370.0200.08019.03
5.4.360.0130.05319.22
5.4.350.0200.06719.19
5.4.340.0170.05319.13
5.4.320.0270.04318.87
5.4.310.0270.05719.09
5.4.300.0100.04319.05
5.4.290.0230.03319.14
5.4.280.0200.08019.08
5.4.270.0330.06719.21
5.4.260.0200.05718.99
5.4.250.0300.05718.94
5.4.240.0270.06319.08
5.4.230.0270.04319.23
5.4.220.0200.03718.86
5.4.210.0330.05319.18
5.4.200.0300.06319.05
5.4.190.0230.07718.86
5.4.180.0200.05019.08
5.4.170.0200.07019.20
5.4.160.0400.06019.00
5.4.150.0270.05019.20
5.4.140.0270.04316.39
5.4.130.0270.05716.34
5.4.120.0170.07316.66
5.4.110.0230.07316.35
5.4.100.0200.07716.46
5.4.90.0230.04016.51
5.4.80.0270.06316.35
5.4.70.0230.04016.36
5.4.60.0270.02716.25
5.4.50.0230.06316.43
5.4.40.0130.04016.51
5.4.30.0130.04016.51
5.4.20.0230.06316.50
5.4.10.0170.07316.53
5.4.00.0270.06715.85
5.3.290.0200.07314.56
5.3.280.0230.07314.81
5.3.270.0170.06314.52
5.3.260.0200.05014.51
5.3.250.0130.07714.47
5.3.240.0230.07314.60
5.3.230.0370.03714.68
5.3.220.0230.07714.78
5.3.210.0270.07314.78
5.3.200.0170.07314.64
5.3.190.0200.07014.66
5.3.180.0230.06314.63
5.3.170.0270.06014.56
5.3.160.0230.07014.64
5.3.150.0230.04314.46
5.3.140.0130.04014.60
5.3.130.0230.07314.53
5.3.120.0170.04714.70
5.3.110.0070.04314.46
5.3.100.0230.06714.05
5.3.90.0100.05313.93
5.3.80.0230.05714.24
5.3.70.0200.06714.18
5.3.60.0170.04313.91
5.3.50.0270.05314.17
5.3.40.0300.06013.93
5.3.30.0300.06713.81
5.3.20.0200.04313.60
5.3.10.0130.06713.73
5.3.00.0200.04013.65
5.2.170.0200.06311.70
5.2.160.0270.05311.70
5.2.150.0230.05311.70
5.2.140.0200.03311.70
5.2.130.0130.04311.70
5.2.120.0200.03711.70
5.2.110.0100.06311.70
5.2.100.0200.05311.70
5.2.90.0200.05711.70
5.2.80.0130.05011.70
5.2.70.0230.03011.70
5.2.60.0170.04711.70
5.2.50.0170.06011.70
5.2.40.0130.04711.70
5.2.30.0100.06011.70
5.2.20.0170.04711.70
5.2.10.0170.03711.70
5.2.00.0100.04011.70
5.1.60.0130.03311.70
5.1.50.0200.05011.70
5.1.40.0170.04011.70
5.1.30.0170.04011.70
5.1.20.0200.04011.70
5.1.10.0200.05011.70
5.1.00.0130.06011.70
5.0.50.0000.03011.70
5.0.40.0070.02011.70
5.0.30.0100.06311.70
5.0.20.0030.04711.70
5.0.10.0130.02011.70
5.0.00.0070.06711.70
4.4.90.0100.03011.70
4.4.80.0100.03011.70
4.4.70.0030.03711.70
4.4.60.0030.03311.70
4.4.50.0100.03011.70
4.4.40.0130.02711.70
4.4.30.0070.03711.70
4.4.20.0070.03711.70
4.4.10.0070.02011.70
4.4.00.0030.02711.70
4.3.110.0130.02711.70
4.3.100.0100.02311.70
4.3.90.0070.02311.70
4.3.80.0070.05311.70
4.3.70.0100.02311.70
4.3.60.0100.03311.70
4.3.50.0100.03311.70
4.3.40.0100.04711.70
4.3.30.0030.03711.70
4.3.20.0070.02711.70
4.3.10.0030.02711.70
4.3.00.0000.03011.70