3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_POST[1] = 'lolol'; $_POST[2] = '1l1l1l'; $_POST[3] = '<p><p>'; $_POST[4] = '*.*""'; function protect(){ addslashes($_POST); array_map("strip_tags",$_POST); } foreach($_POST as $k => $v){ echo $k,$v; } return $_POST;

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.0000.01116.65
7.3.00.0050.00816.62
7.2.130.0060.00616.88
7.2.120.0060.00616.95
7.2.110.0030.00916.86
7.2.100.0030.01216.79
7.2.90.0050.00816.79
7.2.80.0060.00616.98
7.2.70.0050.01016.84
7.2.60.0040.00616.97
7.2.50.0060.00516.80
7.2.40.0050.00717.00
7.2.30.0050.00917.07
7.2.20.0020.01416.71
7.2.10.0130.00316.86
7.2.00.0070.00717.63
7.1.250.0020.01115.83
7.1.240.0060.00915.71
7.1.230.0030.01015.78
7.1.220.0030.01215.66
7.1.210.0070.00715.85
7.1.200.0070.00715.33
7.1.190.0060.00615.72
7.1.180.0080.00015.77
7.1.170.0070.00715.50
7.1.160.0040.00415.76
7.1.150.0070.00715.57
7.1.140.0070.00715.83
7.1.130.0030.00915.79
7.1.120.0040.00415.90
7.1.110.0070.00715.60
7.1.100.0050.00917.11
7.1.90.0040.01115.70
7.1.80.0070.00715.77
7.1.70.0030.00716.39
7.1.60.0080.01417.58
7.1.50.0090.00916.16
7.1.40.0030.01215.80
7.1.30.0030.01015.85
7.1.20.0080.00015.97
7.1.10.0030.00815.67
7.1.00.0050.04219.04
7.0.330.0030.01015.57
7.0.320.0040.00715.12
7.0.310.0070.00715.22
7.0.300.0000.00915.17
7.0.290.0000.01415.07
7.0.280.0130.00015.25
7.0.270.0040.00715.54
7.0.260.0070.00315.21
7.0.250.0000.00915.33
7.0.240.0060.00815.52
7.0.230.0040.01115.18
7.0.220.0070.00715.47
7.0.210.0000.01315.30
7.0.200.0110.00615.07
7.0.190.0060.00615.51
7.0.180.0040.01115.38
7.0.170.0030.01015.24
7.0.160.0040.01115.07
7.0.150.0070.01015.50
7.0.140.0030.03818.53
7.0.130.0030.00915.18
7.0.120.0070.00715.46
7.0.110.0090.00315.39
7.0.100.0210.02617.59
7.0.90.0170.03917.59
7.0.80.0180.04917.50
7.0.70.0170.02917.64
7.0.60.0300.04317.74
7.0.50.0220.04417.88
7.0.40.0080.04216.67
7.0.30.0060.03316.68
7.0.20.0050.04416.68
7.0.10.0050.04416.55
7.0.00.0060.04416.73
5.6.380.0030.00714.55
5.6.370.0070.01014.48
5.6.360.0070.00714.34
5.6.350.0090.00014.29
5.6.340.0070.00314.32
5.6.330.0070.00714.25
5.6.320.0040.01114.23
5.6.310.0060.00314.30
5.6.300.0140.00314.27
5.6.290.0070.00413.95
5.6.280.0050.03817.47
5.6.270.0000.00914.27
5.6.260.0040.01114.12
5.6.250.0020.04217.36
5.6.240.0110.04117.51
5.6.230.0040.02717.45
5.6.220.0090.04817.45
5.6.210.0050.04417.38
5.6.200.0120.03317.48
5.6.190.0070.04517.71
5.6.180.0080.04317.67
5.6.170.0080.03917.84
5.6.160.0060.04317.89
5.6.150.0080.04317.67
5.6.140.0050.03817.71
5.6.130.0050.04217.81
5.6.120.0090.02717.68
5.6.110.0080.04217.68
5.6.100.0050.03017.64
5.6.90.0080.03817.65
5.6.80.0050.04717.29
5.6.70.0050.04817.41
5.6.60.0050.04217.34
5.6.50.0050.02817.47
5.6.40.0050.04317.35
5.6.30.0100.03117.37
5.6.20.0030.04917.39
5.6.10.0030.04217.42
5.6.00.0030.04317.34
5.5.380.0080.03815.92
5.5.370.0040.04715.84
5.5.360.0070.04215.94
5.5.350.0030.03315.89
5.5.340.0050.04215.89
5.5.330.0100.03715.95
5.5.320.0030.04515.92
5.5.310.0050.03716.04
5.5.300.0070.04215.92
5.5.290.0030.03215.97
5.5.280.0030.04316.11
5.5.270.0050.04515.87
5.5.260.0120.03815.97
5.5.250.0050.04215.93
5.5.240.0080.03515.64
5.5.230.0100.02715.70
5.5.220.0070.04215.61
5.5.210.0080.02315.68
5.5.200.0050.03815.56
5.5.190.0030.04215.49
5.5.180.0090.04015.74
5.5.170.0030.00311.22
5.5.160.0050.03715.48
5.5.150.0050.04415.70
5.5.140.0050.04315.39
5.5.130.0100.03815.52
5.5.120.0020.04015.65
5.5.110.0030.05015.38
5.5.100.0050.04015.73
5.5.90.0070.04015.66
5.5.80.0060.03915.70
5.5.70.0070.02815.45
5.5.60.0030.04415.51
5.5.50.0050.04315.55
5.5.40.0050.04315.57
5.5.30.0020.04515.55
5.5.20.0020.04215.57
5.5.10.0070.04115.61
5.5.00.0040.04115.57
5.4.450.0080.04315.25
5.4.440.0080.04015.20
5.4.430.0050.03015.11
5.4.420.0020.04915.21
5.4.410.0040.04715.17
5.4.400.0060.03415.11
5.4.390.0120.03314.82
5.4.380.0070.04315.09
5.4.370.0070.03715.11
5.4.360.0100.03715.17
5.4.350.0020.04115.02
5.4.340.0050.03615.08
5.4.330.0040.00411.01
5.4.320.0080.02214.97
5.4.310.0030.04414.98
5.4.300.0050.04014.92
5.4.290.0050.04114.92
5.4.280.0100.02214.95
5.4.270.0100.02215.02
5.4.260.0080.03914.95
5.4.250.0050.04114.93
5.4.240.0050.03815.17
5.4.230.0100.03315.08
5.4.220.0030.04114.95
5.4.210.0100.03715.02
5.4.200.0070.03915.05
5.4.190.0030.04015.22
5.4.180.0080.03815.04
5.4.170.0050.04315.13
5.4.160.0070.03715.04
5.4.150.0030.04214.91
5.4.140.0060.03813.83
5.4.130.0070.03913.78
5.4.120.0070.03613.79
5.4.110.0000.03213.64
5.4.100.0030.04013.73
5.4.90.0110.03713.74
5.4.80.0050.02513.75
5.4.70.0030.03913.85
5.4.60.0060.03913.56
5.4.50.0020.04313.71
5.4.40.0060.03013.76
5.4.30.0030.04013.73
5.4.20.0100.03513.77
5.4.10.0020.04313.75
5.4.00.0060.03513.49
5.3.290.0030.04212.64
5.3.280.0050.04312.54
5.3.270.0020.03712.54
5.3.260.0030.02712.63
5.3.250.0040.04212.64
5.3.240.0080.04212.57
5.3.230.0050.04212.59
5.3.220.0040.04212.35
5.3.210.0080.03512.58
5.3.200.0090.03612.52
5.3.190.0010.04012.50
5.3.180.0050.04012.59
5.3.170.0030.04012.51
5.3.160.0030.04312.61
5.3.150.0020.04212.55
5.3.140.0020.04312.56
5.3.130.0070.03712.47
5.3.120.0020.03812.54
5.3.110.0050.04012.61
5.3.100.0110.03312.27
5.3.90.0090.03712.34
5.3.80.0050.03912.18
5.3.70.0060.03712.24
5.3.60.0040.04012.20
5.3.50.0030.02312.13
5.3.40.0100.03512.07
5.3.30.0070.02512.09
5.3.20.0050.03612.11
5.3.10.0060.03512.03
5.3.00.0070.02011.95
5.2.170.0070.02810.97
5.2.160.0020.03310.97
5.2.150.0030.02710.97
5.2.140.0050.02110.97
5.2.130.0080.03010.97
5.2.120.0070.02410.97
5.2.110.0030.03210.97
5.2.100.0020.03810.97
5.2.90.0040.03510.97
5.2.80.0030.03310.97
5.2.70.0030.03310.97
5.2.60.0060.03010.97
5.2.50.0060.02810.97
5.2.40.0050.03010.97
5.2.30.0040.03410.97
5.2.20.0010.03410.97
5.2.10.0050.02810.97
5.2.00.0090.02010.97
5.1.60.0080.02310.97
5.1.50.0030.01810.97
5.1.40.0050.02310.97
5.1.30.0090.02510.97
5.1.20.0040.03210.97
5.1.10.0040.02910.97
5.1.00.0040.02910.97
5.0.50.0000.02910.97
5.0.40.0030.01610.97
5.0.30.0050.03310.97
5.0.20.0020.02410.97
5.0.10.0070.01910.97
5.0.00.0020.03210.97
4.4.90.0020.02110.97
4.4.80.0020.02010.97
4.4.70.0020.02010.97
4.4.60.0000.02010.97
4.4.50.0050.01610.97
4.4.40.0070.02310.97
4.4.30.0020.01910.97
4.4.20.0050.01710.97
4.4.10.0000.01810.97
4.4.00.0030.02010.97
4.3.110.0040.01010.97
4.3.100.0060.01610.97
4.3.90.0030.01310.97
4.3.80.0030.02810.97
4.3.70.0030.01810.97
4.3.60.0020.01810.97
4.3.50.0020.01810.97
4.3.40.0020.02810.97
4.3.30.0070.01510.97
4.3.20.0050.01810.97
4.3.10.0030.02010.97
4.3.00.0020.01810.97