3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<!doctype html> <html> <head> <script type="text/javascript">alert(fasdfsd)</script> <meta charset="utf-8"> <script type="text/javascript"> var fasdfsd="fasdfsd"; </script> <script type="text/javascript" src="http://google.adv.js" /> <title> hey </title> <link rel="stylesheet" href="fdsa.css" /> <script type="text/javascript" src="http://google.adv.js" /> <script type="text/javascript" src="http://google.adv.js"/> <script> alert("hello"); </script> <script type="text/javascript" src="lfasd.js"></script> </head> <body> hey </body> </html>'; $str = preg_replace("@<script[^>]*?>.*?/>@siu", "", $str); $str = preg_replace("@<script[^>]*?>.*?</script>@siu","",$str); echo html_entity_decode($str);

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.60.0090.00618.68
8.3.50.0070.01422.04
8.3.40.0160.00618.96
8.3.30.0110.00419.22
8.3.20.0040.00420.16
8.3.10.0000.00823.61
8.3.00.0040.00419.02
8.2.180.0040.01116.88
8.2.170.0140.00022.96
8.2.160.0030.01020.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00021.13
8.2.110.0110.00022.31
8.2.100.0060.00618.16
8.2.90.0050.00318.02
8.2.80.0040.00417.97
8.2.70.0070.00317.93
8.2.60.0040.00418.16
8.2.50.0070.00019.18
8.2.40.0030.00619.48
8.2.30.0040.00419.41
8.2.20.0000.00818.02
8.2.10.0080.00018.18
8.2.00.0040.00417.88
8.1.280.0150.00325.92
8.1.270.0030.00518.87
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0130.01022.42
8.1.230.0030.00922.82
8.1.220.0040.00417.79
8.1.210.0000.00918.90
8.1.200.0060.00317.48
8.1.190.0000.00817.22
8.1.180.0040.00418.89
8.1.170.0030.00518.71
8.1.160.0000.01119.11
8.1.150.0040.00418.80
8.1.140.0000.00717.50
8.1.130.0030.00317.94
8.1.120.0000.00717.41
8.1.110.0050.00317.57
8.1.100.0050.00217.47
8.1.90.0040.00417.46
8.1.80.0000.00717.51
8.1.70.0000.00717.61
8.1.60.0040.00417.60
8.1.50.0060.00317.65
8.1.40.0030.00517.50
8.1.30.0040.00417.75
8.1.20.0060.00317.75
8.1.10.0080.00017.57
8.1.00.0040.00417.62
8.0.300.0000.00820.03
8.0.290.0040.00416.88
8.0.280.0030.00518.44
8.0.270.0000.00717.21
8.0.260.0070.00017.30
8.0.250.0050.00217.18
8.0.240.0000.00717.19
8.0.230.0040.00417.18
8.0.220.0030.00317.07
8.0.210.0040.00417.07
8.0.200.0030.00317.13
8.0.190.0040.00417.07
8.0.180.0040.00417.04
8.0.170.0040.00417.07
8.0.160.0000.00717.08
8.0.150.0050.00316.96
8.0.140.0030.00616.93
8.0.130.0080.00013.46
8.0.120.0000.00816.99
8.0.110.0000.00717.14
8.0.100.0000.00717.00
8.0.90.0000.00817.08
8.0.80.0140.00317.15
8.0.70.0000.00716.93
8.0.60.0000.00816.96
8.0.50.0070.00016.98
8.0.30.0160.00817.11
8.0.20.0110.00917.40
8.0.10.0040.00416.98
8.0.00.0120.00717.01
7.4.330.0000.00515.03
7.4.320.0030.00316.80
7.4.300.0040.00416.87
7.4.290.0000.00816.83
7.4.280.0050.00316.72
7.4.270.0000.00816.83
7.4.260.0040.00416.75
7.4.250.0050.00316.72
7.4.240.0050.00316.70
7.4.230.0070.00016.78
7.4.220.0070.01016.90
7.4.210.0060.00916.69
7.4.200.0030.00316.83
7.4.160.0140.00816.89
7.4.150.0030.01617.40
7.4.140.0120.00817.86
7.4.130.0100.01016.71
7.4.120.0130.00716.81
7.4.110.0140.00716.91
7.4.100.0130.00716.56
7.4.90.0070.01416.48
7.4.80.0110.00619.39
7.4.70.0070.01016.76
7.4.60.0140.00316.64
7.4.50.0000.00716.68
7.4.40.0060.00916.85
7.4.30.0160.00616.59
7.4.00.0070.00915.07
7.3.330.0020.00413.34
7.3.320.0000.00513.13
7.3.310.0070.00016.27
7.3.300.0000.00716.32
7.3.290.0050.01116.44
7.3.280.0080.01016.32
7.3.270.0130.00317.40
7.3.260.0060.01216.43
7.3.250.0090.00916.66
7.3.240.0100.00716.61
7.3.230.0030.01616.42
7.3.210.0100.00716.42
7.3.200.0170.00019.39
7.3.190.0120.00316.37
7.3.180.0110.00716.52
7.3.170.0130.00316.48
7.3.160.0130.00916.47
7.3.120.0100.01015.14
7.3.110.0060.01314.68
7.3.100.0080.01114.74
7.3.90.0070.00714.73
7.3.80.0110.00314.87
7.3.70.0160.00015.00
7.3.60.0140.00314.85
7.3.50.0030.01014.64
7.3.40.0100.00314.74
7.3.30.0040.00414.82
7.3.20.0100.00316.77
7.3.10.0080.00416.75
7.3.00.0080.00616.73
7.2.330.0070.01016.64
7.2.320.0090.00916.66
7.2.310.0060.01316.88
7.2.300.0030.01416.50
7.2.290.0060.01316.68
7.2.250.0040.01515.29
7.2.240.0030.01315.32
7.2.230.0040.01215.21
7.2.220.0030.01615.37
7.2.210.0060.01014.82
7.2.200.0030.01015.19
7.2.190.0060.00615.39
7.2.180.0110.00415.02
7.2.170.0090.00615.12
7.2.60.0070.00717.16
7.2.00.0070.00719.44
7.1.330.0070.01015.99
7.1.320.0100.00316.06
7.1.310.0030.00915.68
7.1.300.0080.00815.91
7.1.290.0030.01016.09
7.1.280.0030.00916.01
7.1.270.0070.00715.91
7.1.260.0080.00016.02
7.1.200.0070.00415.94
7.1.100.0110.00318.25
7.1.70.0130.01017.12
7.1.60.0040.01219.22
7.1.50.0160.00617.12
7.1.00.0170.06022.29
7.0.200.0070.00416.88
7.0.140.0070.03022.11
7.0.60.0030.04320.02
7.0.50.0030.04017.83
7.0.40.0000.09320.00
7.0.30.0570.06720.11
7.0.20.0330.07720.01
7.0.10.0100.09320.02
7.0.00.0030.09020.18
5.6.280.0030.07321.12
5.6.210.0070.03720.64
5.6.200.0070.04318.19
5.6.190.0130.08020.56
5.6.180.0370.05320.56
5.6.170.0370.06720.44
5.6.160.0070.05720.51
5.6.150.0170.07318.16
5.6.140.0130.07318.07
5.6.130.0130.07318.14
5.6.120.0100.06321.02
5.6.110.0070.08320.88
5.6.100.0270.06321.12
5.6.90.0070.04021.11
5.6.80.0030.06020.50
5.6.70.4070.03720.52
5.5.350.0100.08320.33
5.5.340.0000.04017.98
5.5.330.0070.04320.37
5.5.320.0470.06720.27
5.5.310.0270.07320.23
5.5.300.0000.04317.88
5.5.290.0100.05718.02
5.5.280.0070.07320.86
5.5.270.0100.07320.95
5.5.260.0070.04320.83
5.5.250.0030.04720.49
5.5.240.0030.04020.11
5.4.450.0630.06319.55
5.4.440.0900.04719.62
5.4.430.0700.06019.57
5.4.420.0670.05019.53
5.4.410.0500.05019.12
5.4.400.0270.05019.22
5.4.390.0300.05018.70
5.4.380.0270.06018.73
5.4.370.0400.04718.49
5.4.360.0400.05318.56
5.4.350.0300.05718.47
5.4.340.0300.05318.50
5.4.320.0330.05018.67
5.4.310.0330.05018.52
5.4.300.0370.05318.50
5.4.290.0370.05018.62
5.4.280.0400.04318.62
5.4.270.0330.05318.68
5.4.260.0370.06718.76
5.4.250.0400.05718.49
5.4.240.0400.06718.73
5.4.230.0400.05018.76
5.4.220.0230.06318.66
5.4.210.0300.05318.59
5.4.200.0400.05316.63
5.4.190.0370.05718.68
5.4.180.0370.05018.50
5.4.170.0500.04018.66
5.4.160.0270.06018.50
5.4.150.0470.04318.47
5.4.140.0300.06016.36
5.4.130.0330.04716.24
5.4.120.0330.04716.23
5.4.110.0370.05316.08
5.4.100.0270.06016.07
5.4.90.0270.05316.16
5.4.80.0330.05316.01
5.4.70.0300.05716.05
5.4.60.0370.04716.12
5.4.50.0300.05016.21
5.4.40.0330.05016.21
5.4.30.0500.05316.03
5.4.20.0370.05016.15
5.4.10.0300.05016.23
5.4.00.0270.05015.65
5.3.290.0330.06714.71
5.3.280.0470.03714.64
5.3.270.0370.04714.75
5.3.260.0370.04714.55
5.3.250.0270.05314.56
5.3.240.0300.05314.58
5.3.230.0430.05314.63
5.3.220.0370.04714.62
5.3.210.0300.05314.47
5.3.200.0270.05314.52
5.3.190.0300.05314.64
5.3.180.0330.04714.61
5.3.170.0300.05014.54
5.3.160.0230.05314.52
5.3.150.0230.05714.54
5.3.140.0400.04314.60
5.3.130.0270.05714.47
5.3.120.0300.05014.47
5.3.110.0330.06014.52
5.3.100.0430.06313.99
5.3.90.0300.05314.00
5.3.80.0330.05014.09
5.3.70.0370.05014.02
5.3.60.0300.05314.00
5.3.50.0400.04014.09
5.3.40.0430.04713.92
5.3.30.0300.05013.90
5.3.20.0370.04313.62
5.3.10.0300.05013.81
5.3.00.0230.06013.62
5.2.170.0300.04711.07
5.2.160.0270.04011.28
5.2.150.0330.03311.28
5.2.140.0270.04011.12
5.2.130.0200.04311.16
5.2.120.0300.03711.04
5.2.110.0300.03311.07
5.2.100.0270.04011.16
5.2.90.0200.04311.15
5.2.80.0270.03711.07
5.2.70.0170.05011.08
5.2.60.0170.04711.08
5.2.50.0200.05011.16
5.2.40.0200.04010.91
5.2.30.0270.04310.94
5.2.20.0230.04010.99
5.2.10.0230.03711.01
5.2.00.0170.04310.75
5.1.60.0170.0379.95
5.1.50.0230.03010.03
5.1.40.0170.0379.93
5.1.30.0300.02310.29
5.1.20.0170.04310.39
5.1.10.0200.03310.13
5.1.00.0230.03010.10
5.0.50.0170.0238.56
5.0.40.0070.0308.54
5.0.30.0100.0438.32
5.0.20.0170.0238.22
5.0.10.0070.0308.19
5.0.00.0130.0438.24
4.4.90.0200.0175.91
4.4.80.0130.0205.86
4.4.70.0100.0275.92
4.4.60.0170.0135.88
4.4.50.0100.0205.91
4.4.40.0100.0335.82
4.4.30.0100.0205.92
4.4.20.0070.0235.98
4.4.10.0170.0135.88
4.4.00.0100.0335.93
4.3.110.0030.0305.85
4.3.100.0070.0235.83
4.3.90.0170.0135.82
4.3.80.0130.0305.80
4.3.70.0100.0205.83
4.3.60.0100.0235.80
4.3.50.0130.0205.87
4.3.40.0070.0375.80
4.3.30.0000.0274.95
4.3.20.0030.0234.95
4.3.10.0100.0174.95
4.3.00.0130.0207.21

preferences:
44.87 ms | 401 KiB | 5 Q