3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xssfilter($inp){ $inp = html_entity_decode(urldecode($inp)); $inp = preg_replace('/!/','',$inp); if (preg_match('/script|on|xmlns|data/iu',$inp)){ while(preg_match('/script|on|xmlns|data/iu',$inp)){ $inp = preg_replace('/(script)|(on)|(xmlns)|(data)/iu','NO!',$inp); } } return $inp; } echo xssfilter("&#x26;&#x23;&#x78;&#x36;&#x41;&#x3B;&#x26;&#x23;&#x78;&#x36;&#x31;&#x3B;&#x26;&#x23;&#x78;&#x37;&#x36;&#x3B;&#x26;&#x23;&#x78;&#x36;&#x31;&#x3B;&#x26;&#x23;&#x78;&#x37;&#x33;&#x3B;&#x26;&#x23;&#x78;&#x36;&#x33;&#x3B;&#x26;&#x23;&#x78;&#x37;&#x32;&#x3B;&#x26;&#x23;&#x78;&#x36;&#x39;&#x3B;&#x26;&#x23;&#x78;&#x37;&#x30;&#x3B;&#x26;&#x23;&#x78;&#x37;&#x34;&#x3B;: alert('XSS');");

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0040.01216.88
8.3.60.0140.00716.75
8.3.50.0110.00921.27
8.3.40.0070.00719.04
8.3.30.0040.01118.75
8.3.20.0050.00318.85
8.3.10.0080.00021.77
8.3.00.0030.00621.02
8.2.190.0000.01416.63
8.2.180.0060.00918.54
8.2.170.0100.01022.96
8.2.160.0140.00019.11
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.10
8.2.120.0060.00326.35
8.2.110.0070.00322.29
8.2.100.0080.00418.08
8.2.90.0000.00818.15
8.2.80.0050.00318.22
8.2.70.0040.00717.63
8.2.60.0060.00317.93
8.2.50.0000.00918.10
8.2.40.0000.00820.60
8.2.30.0040.00420.66
8.2.20.0060.00317.88
8.2.10.0070.00018.05
8.2.00.0050.00218.01
8.1.280.0110.00425.92
8.1.270.0040.00423.67
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00320.84
8.1.230.0080.00420.92
8.1.220.0000.00817.74
8.1.210.0000.00818.98
8.1.200.0030.00617.34
8.1.190.0040.00417.36
8.1.180.0030.00618.10
8.1.170.0040.00418.65
8.1.160.0040.00419.09
8.1.150.0000.00718.82
8.1.140.0040.00419.61
8.1.130.0030.00317.61
8.1.120.0030.00617.62
8.1.110.0000.00717.42
8.1.100.0050.00317.52
8.1.90.0040.00417.45
8.1.80.0000.00717.44
8.1.70.0000.00717.39
8.1.60.0030.00617.64
8.1.50.0000.00917.57
8.1.40.0000.00817.68
8.1.30.0060.00317.66
8.1.20.0040.00417.80
8.1.10.0040.00417.57
8.1.00.0030.00517.49
8.0.300.0030.00519.98
8.0.290.0040.00416.88
8.0.280.0040.00418.46
8.0.270.0070.00017.29
8.0.260.0000.00617.20
8.0.250.0100.00017.17
8.0.240.0050.00317.05
8.0.230.0000.00817.14
8.0.220.0000.00717.13
8.0.210.0000.00716.98
8.0.200.0040.00417.05
8.0.190.0040.00417.00
8.0.180.0030.00317.03
8.0.170.0040.00417.02
8.0.160.0030.00517.02
8.0.150.0000.00816.98
8.0.140.0070.00016.97
8.0.130.0030.00313.46
8.0.120.0000.00917.07
8.0.110.0030.00517.02
8.0.100.0040.00417.00
8.0.90.0040.00416.88
8.0.80.0070.01617.04
8.0.70.0050.00216.97
8.0.60.0040.00417.05
8.0.50.0000.00717.21
8.0.30.0080.01217.46
8.0.20.0110.00717.42
8.0.10.0000.00717.04
8.0.00.0060.01216.93
7.4.330.0000.00515.08
7.4.320.0060.00016.79
7.4.300.0000.00716.79
7.4.290.0030.00316.88
7.4.280.0040.00416.86
7.4.270.0040.00416.79
7.4.260.0040.00416.79
7.4.250.0040.00416.73
7.4.240.0070.00016.92
7.4.230.0030.00316.98
7.4.220.0080.01116.83
7.4.210.0050.01116.75
7.4.200.0030.00316.95
7.4.160.0070.00716.69
7.4.150.0090.00917.40
7.4.140.0110.01417.86
7.4.130.0060.01116.77
7.4.120.0110.00816.72
7.4.110.0070.01017.00
7.4.100.0120.00616.77
7.4.90.0110.00616.70
7.4.80.0120.00619.39
7.4.70.0070.01016.41
7.4.60.0100.00716.58
7.4.50.0070.00716.44
7.4.40.0120.00316.90
7.4.30.0130.00316.97
7.4.00.0070.00715.32
7.3.330.0030.00313.30
7.3.320.0050.00013.52
7.3.310.0030.00316.45
7.3.300.0070.00016.50
7.3.290.0070.00016.31
7.3.280.0070.01416.44
7.3.270.0070.01117.40
7.3.260.0090.00916.36
7.3.250.0110.00616.60
7.3.240.0090.00816.60
7.3.230.0100.00716.65
7.3.210.0040.01216.52
7.3.200.0090.01216.70
7.3.190.0140.00316.49
7.3.180.0070.01416.54
7.3.170.0060.01816.53
7.3.160.0030.01316.67
7.3.10.0100.00316.88
7.3.00.0070.00416.54
7.2.330.0100.00716.88
7.2.320.0060.01516.88
7.2.310.0060.01316.80
7.2.300.0080.01516.68
7.2.290.0140.00716.98
7.2.130.0050.01017.12
7.2.120.0090.00617.06
7.2.110.0030.01216.92
7.2.100.0030.00917.06
7.2.90.0040.00916.99
7.2.80.0050.00916.89
7.2.70.0070.00517.15
7.2.60.0080.00617.19
7.2.50.0060.00717.17
7.2.40.0020.01117.09
7.2.30.0100.00716.99
7.2.20.0040.01017.17
7.2.10.0030.00916.94
7.2.00.0050.00817.88
7.1.250.0070.00715.87
7.1.200.0060.00615.90
7.1.100.0100.00317.88
7.1.70.0030.00617.21
7.1.60.0140.01020.41
7.1.00.0170.06322.28
7.0.200.0080.00415.09
7.0.60.0230.08020.00
7.0.50.0070.05317.89
7.0.40.0330.07020.05
7.0.30.0600.06320.23
7.0.20.0470.06320.08
7.0.10.0530.07020.41
7.0.00.0600.05320.09
5.6.280.0000.07720.93
5.6.210.0130.04320.50
5.6.200.0130.05018.19
5.6.190.0400.06320.67
5.6.180.0400.06720.39
5.6.170.0200.06020.41
5.6.160.0400.06320.40
5.6.150.0500.06020.30
5.6.140.0600.07020.58
5.6.130.0300.09320.35
5.6.120.0100.05720.35
5.6.110.0200.07020.32
5.6.100.0400.05020.39
5.6.90.0500.06020.37
5.6.80.0530.05019.77
5.6.70.0570.05019.78
5.6.60.0500.05019.76
5.6.50.0470.05719.77
5.6.40.0430.05719.75
5.6.30.0570.05319.62
5.6.20.0630.04319.77
5.6.10.0530.06319.75
5.6.00.0530.05319.71
5.5.350.0170.07720.38
5.5.340.0100.07717.99
5.5.330.0700.06320.36
5.5.320.0530.05320.33
5.5.310.0100.06020.24
5.5.300.0600.08020.21
5.5.290.0470.07320.20
5.5.280.0170.05320.19
5.5.270.0070.06720.16
5.5.260.0470.06020.14
5.5.250.0400.06319.98
5.5.240.0100.05719.55
5.5.230.0470.05319.61
5.5.220.0530.05019.54
5.5.210.0470.05719.50
5.5.200.0470.05719.52
5.5.190.0330.07019.55
5.5.180.0570.05019.55
5.5.160.0630.04719.53
5.5.150.0400.06019.34
5.5.140.0470.05019.45
5.5.130.0470.04719.49
5.5.120.0330.06319.41
5.5.110.0530.05019.52
5.5.100.0370.05719.45
5.5.90.0400.06019.46
5.5.80.0500.05319.35
5.5.70.0230.06319.36
5.5.60.0170.06019.43
5.5.50.0330.06319.40
5.5.40.0430.05019.48
5.5.30.0400.05719.43
5.5.20.0370.06019.38
5.5.10.0630.06719.31
5.5.00.0530.05719.41

preferences:
63.19 ms | 401 KiB | 5 Q