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"></script> <title> hey </title> <script> alert("hello"); </script> <script type="text/javascript" src="lfasd.js"></script> </head> <body> hey </body> </html>'; $str = preg_replace("@<script[^>]*?>.*?</script>@siu","\n",$str); $str = preg_replace("/(\n)+/","\n",$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.0110.00418.31
8.3.50.0120.00622.05
8.3.40.0110.00418.71
8.3.30.0110.00418.94
8.3.20.0080.00020.34
8.3.10.0080.00023.53
8.3.00.0040.00419.02
8.2.180.0120.00317.00
8.2.170.0140.00322.96
8.2.160.0070.00720.16
8.2.150.0030.00524.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00421.08
8.2.110.0000.00920.48
8.2.100.0060.00617.97
8.2.90.0000.00918.09
8.2.80.0030.00617.97
8.2.70.0030.00617.80
8.2.60.0030.00618.16
8.2.50.0040.00419.34
8.2.40.0000.01119.39
8.2.30.0000.00719.40
8.2.20.0040.00418.05
8.2.10.0040.00418.09
8.2.00.0000.00818.10
8.1.280.0060.00925.92
8.1.270.0090.00018.79
8.1.260.0030.00726.35
8.1.250.0070.00028.09
8.1.240.0090.00022.65
8.1.230.0060.00622.73
8.1.220.0050.00317.74
8.1.210.0090.00018.77
8.1.200.0030.00617.48
8.1.190.0040.00417.48
8.1.180.0000.00919.04
8.1.170.0040.00418.73
8.1.160.0080.00319.11
8.1.150.0030.00618.94
8.1.140.0000.00917.63
8.1.130.0030.00317.92
8.1.120.0040.00417.49
8.1.110.0060.00317.46
8.1.100.0040.00417.57
8.1.90.0040.00417.56
8.1.80.0040.00417.45
8.1.70.0000.00717.52
8.1.60.0000.00817.57
8.1.50.0050.00317.69
8.1.40.0040.00417.52
8.1.30.0040.00417.69
8.1.20.0070.00017.70
8.1.10.0050.00317.62
8.1.00.0000.00817.64
8.0.300.0070.00020.03
8.0.290.0040.00416.88
8.0.280.0000.00718.46
8.0.270.0030.00317.30
8.0.260.0000.00617.24
8.0.250.0030.00317.20
8.0.240.0030.00317.15
8.0.230.0000.00717.04
8.0.220.0030.00317.00
8.0.210.0000.00717.14
8.0.200.0050.00316.98
8.0.190.0040.00417.05
8.0.180.0000.00717.02
8.0.170.0050.00317.12
8.0.160.0030.00317.10
8.0.150.0040.00417.00
8.0.140.0000.00817.05
8.0.130.0060.00013.57
8.0.120.0040.00417.05
8.0.110.0080.00017.13
8.0.100.0000.00717.18
8.0.90.0040.00417.02
8.0.80.0030.01617.16
8.0.70.0000.00717.07
8.0.60.0070.00016.93
8.0.50.0070.00017.14
8.0.30.0060.00617.24
8.0.20.0090.01017.46
8.0.10.0050.00517.13
8.0.00.0100.00816.82
7.4.330.0000.00515.04
7.4.320.0040.00416.76
7.4.300.0070.00016.82
7.4.290.0000.00716.75
7.4.280.0030.00516.78
7.4.270.0030.00316.74
7.4.260.0000.00716.80
7.4.250.0000.00716.80
7.4.240.0050.00216.69
7.4.230.0030.00316.72
7.4.220.0120.00416.69
7.4.210.0050.01016.84
7.4.200.0000.00716.85
7.4.160.0090.00616.77
7.4.150.0140.00317.40
7.4.140.0100.01217.86
7.4.130.0080.01016.59
7.4.120.0100.01016.74
7.4.110.0100.01316.73
7.4.100.0080.00816.89
7.4.90.0090.00916.78
7.4.80.0080.01119.39
7.4.70.0080.01216.64
7.4.60.0070.01616.65
7.4.50.0030.00616.59
7.4.40.0110.00616.74
7.4.30.0130.00316.63
7.4.00.0100.00615.23
7.3.330.0050.00213.35
7.3.320.0030.00213.29
7.3.310.0030.00316.20
7.3.300.0080.00016.38
7.3.290.0080.00816.36
7.3.280.0110.00716.34
7.3.270.0070.01017.40
7.3.260.0140.00316.39
7.3.250.0080.01016.52
7.3.240.0030.01416.36
7.3.230.0120.00616.44
7.3.210.0110.00716.52
7.3.200.0030.01519.39
7.3.190.0060.01016.52
7.3.180.0110.00716.47
7.3.170.0030.01416.54
7.3.160.0070.01116.44
7.3.10.0050.00916.78
7.3.00.0090.00616.71
7.2.330.0120.00616.67
7.2.320.0090.01116.73
7.2.310.0030.01316.70
7.2.300.0050.01316.66
7.2.290.0070.01516.51
7.2.130.0080.00716.87
7.2.120.0060.00616.99
7.2.110.0040.01117.01
7.2.100.0030.01116.84
7.2.90.0080.00716.92
7.2.80.0050.00816.96
7.2.70.0080.00616.99
7.2.60.0060.01016.89
7.2.50.0050.00717.01
7.2.40.0070.00517.06
7.2.30.0100.00516.88
7.2.20.0060.00917.01
7.2.10.0040.01117.10
7.2.00.0070.00717.62
7.1.250.0000.01215.81
7.1.240.0080.00615.64
7.1.230.0070.00515.88
7.1.220.0050.00715.96
7.1.210.0060.00815.79
7.1.200.0070.00515.94
7.1.190.0060.00615.96
7.1.180.0050.01016.01
7.1.170.0100.00515.94
7.1.160.0020.01215.94
7.1.150.0090.00416.05
7.1.140.0040.00915.75
7.1.130.0080.00715.87
7.1.120.0050.00615.67
7.1.110.0040.00516.03
7.1.100.0020.01116.79
7.1.90.0110.00416.03
7.1.80.0080.00515.71
7.1.70.0090.00616.41
7.1.60.0090.00717.04
7.1.50.0070.01016.14
7.1.40.0100.00516.03
7.1.30.0040.00515.99
7.1.20.0070.00915.85
7.1.10.0070.00515.86
7.1.00.0030.03018.15
7.0.330.0040.01115.52
7.0.320.0040.01215.45
7.0.310.0020.01015.53
7.0.300.0070.00715.32
7.0.290.0010.00715.55
7.0.280.0000.00815.44
7.0.270.0030.00715.23
7.0.260.0030.01015.62
7.0.250.0040.00915.34
7.0.240.0050.00515.64
7.0.230.0050.00515.52
7.0.220.0020.01115.36
7.0.210.0050.01015.37
7.0.200.0110.00215.95
7.0.190.0020.00715.49
7.0.180.0070.00515.50
7.0.170.0070.00515.52
7.0.160.0060.00815.35
7.0.150.0060.00815.31
7.0.140.0070.01517.75
7.0.130.0070.00315.55
7.0.120.0060.00615.62
7.0.110.0100.00215.45
7.0.100.0050.00815.54
7.0.90.0100.00315.46
7.0.80.0050.00415.39
7.0.70.0070.00815.44
7.0.60.0030.02517.09
7.0.50.0080.03216.28
7.0.40.0050.03115.84
7.0.30.0100.02615.77
7.0.20.0140.02915.85
7.0.10.0070.03015.79
7.0.00.0100.03115.76
5.6.380.0060.00414.43
5.6.370.0050.00614.51
5.6.360.0080.00314.36
5.6.350.0060.00914.55
5.6.340.0080.00514.37
5.6.330.0050.00914.45
5.6.320.0030.01014.29
5.6.310.0020.01214.28
5.6.300.0040.00614.15
5.6.290.0080.00514.38
5.6.280.0040.02816.60
5.6.270.0080.00614.43
5.6.260.0080.00314.37
5.6.250.0020.00914.46
5.6.240.0050.00614.25
5.6.230.0020.01114.28
5.6.220.0050.00714.46
5.6.210.0060.03016.31
5.6.200.0060.02415.48
5.6.190.0060.03216.31
5.6.180.0150.03216.40
5.6.170.0100.03116.29
5.6.160.0030.02016.42
5.6.150.0070.02015.55
5.6.140.0040.03315.54
5.6.130.0070.03215.51
5.6.120.0070.02616.59
5.6.110.0070.01916.55
5.6.100.0040.01916.37
5.6.90.0120.02616.59
5.6.80.0080.03116.26
5.6.70.0020.00914.18
5.6.60.0130.00314.41
5.6.50.0000.01314.41
5.6.40.0040.01014.21
5.6.30.0030.01014.36
5.6.20.0080.00614.18
5.6.10.0050.01014.25
5.6.00.0030.00813.99
5.5.380.0000.00610.96
5.5.370.0000.00510.93
5.5.360.0020.00711.35
5.5.350.0100.03114.31
5.5.340.0070.03013.39
5.5.330.0070.02014.05
5.5.320.0180.02414.13
5.5.310.0080.03414.26
5.5.300.0040.02413.41
5.5.290.0050.02713.38
5.5.280.0050.02014.39
5.5.270.0060.03014.25
5.5.260.0060.03014.38
5.5.250.0050.03014.12
5.5.240.0040.01713.92
5.5.230.0000.01110.89
5.5.220.0070.00410.89
5.5.210.0070.00310.92
5.5.200.0040.00811.10
5.5.190.0050.00610.96
5.5.180.0060.00510.87
5.5.170.0030.00912.55
5.5.160.0050.00710.91
5.5.150.0050.00710.98
5.5.140.0060.00311.03
5.5.130.0020.00410.96
5.5.120.0000.01011.05
5.5.110.0020.01010.99
5.5.100.0050.00610.88
5.5.90.0080.00010.78
5.5.80.0060.00510.98
5.5.70.0040.00410.89
5.5.60.0050.00511.02
5.5.50.0060.00511.05
5.5.40.0030.00910.95
5.5.30.0060.00610.84
5.5.20.0030.00811.02
5.5.10.0030.00610.97
5.5.00.0040.00311.04
5.4.450.0160.02013.79
5.4.440.0200.02413.82
5.4.430.0070.02513.76
5.4.420.0290.02213.77
5.4.410.0080.02113.79
5.4.400.0220.02113.59
5.4.390.0180.02113.52
5.4.380.0160.02113.40
5.4.370.0130.02313.53
5.4.360.0190.02713.53
5.4.350.0110.02613.35
5.4.340.0180.01813.32
5.4.330.0040.00810.98
5.4.320.0180.02413.56
5.4.310.0130.02313.54
5.4.300.0140.01913.54
5.4.290.0200.01713.47
5.4.280.0120.02213.48
5.4.270.0160.02113.56
5.4.260.0120.02313.45
5.4.250.0090.02613.53
5.4.240.0150.02213.58
5.4.230.0180.01713.36
5.4.220.0170.01713.39
5.4.210.0170.01913.61
5.4.200.0120.02112.72
5.4.190.0160.02013.58
5.4.180.0130.02013.38
5.4.170.0120.02313.29
5.4.160.0150.02613.48
5.4.150.0130.01913.45
5.4.140.0130.02212.74
5.4.130.0100.02012.80
5.4.120.0140.01912.84
5.4.110.0130.01812.70
5.4.100.0110.02312.60
5.4.90.0090.02312.66
5.4.80.0130.02212.66
5.4.70.0110.02212.70
5.4.60.0180.02312.77
5.4.50.0170.01812.58
5.4.40.0130.02012.74
5.4.30.0120.01912.66
5.4.20.0140.02012.82
5.4.10.0120.02012.80
5.4.00.0120.02012.50
5.3.290.0090.02211.94
5.3.280.0090.02311.91
5.3.270.0100.02411.90
5.3.260.0140.01711.90
5.3.250.0140.02011.91
5.3.240.0150.01711.84
5.3.230.0110.02111.91
5.3.220.0090.02311.83
5.3.210.0120.02011.85
5.3.200.0120.02211.85
5.3.190.0140.01911.86
5.3.180.0110.02211.85
5.3.170.0120.02611.84
5.3.160.0140.01911.88
5.3.150.0140.02211.82
5.3.140.0150.02011.88
5.3.130.0120.02411.84
5.3.120.0190.01911.92
5.3.110.0160.02011.83
5.3.100.0140.02011.67
5.3.90.0110.02211.75
5.3.80.0120.02011.58
5.3.70.0120.02611.63
5.3.60.0170.02111.70
5.3.50.0110.02111.60
5.3.40.0120.02011.61
5.3.30.0140.01911.60
5.3.20.0120.02211.60
5.3.10.0140.01711.51
5.3.00.0090.02411.51
5.2.170.0100.01710.65
5.2.160.0140.01410.63
5.2.150.0070.02010.65
5.2.140.0090.01710.65
5.2.130.0090.01710.63
5.2.120.0060.01810.64
5.2.110.0090.01810.62
5.2.100.0070.01910.61
5.2.90.0100.01810.64
5.2.80.0090.01910.70
5.2.70.0130.01410.62
5.2.60.0110.01810.58
5.2.50.0110.01710.59
5.2.40.0110.01310.59
5.2.30.0110.01510.66
5.2.20.0140.01210.55
5.2.10.0100.01710.55
5.2.00.0070.01810.50
5.1.60.0090.01410.25
5.1.50.0080.01510.27
5.1.40.0080.01410.28
5.1.30.0100.01610.38
5.1.20.0090.01410.40
5.1.10.0080.01510.30
5.1.00.0070.01610.30
5.0.50.0090.01110.06
5.0.40.0060.01310.06
5.0.30.0040.01810.06
5.0.20.0080.01210.06
5.0.10.0060.01410.06
5.0.00.0040.01710.06
4.4.90.0090.00810.06
4.4.80.0060.00810.06
4.4.70.0050.01010.06
4.4.60.0030.01210.06
4.4.50.0040.01010.06
4.4.40.0060.01310.06
4.4.30.0030.01010.06
4.4.20.0040.01010.06
4.4.10.0040.00910.06
4.4.00.0030.01710.06
4.3.110.0040.01110.06
4.3.100.0070.00910.06
4.3.90.0050.00910.06
4.3.80.0030.01510.06
4.3.70.0060.00810.06
4.3.60.0040.00910.06
4.3.50.0070.00810.06
4.3.40.0060.01210.06
4.3.30.0020.01210.06
4.3.20.0010.01210.06
4.3.10.0000.01310.06
4.3.00.0080.0109.33

preferences:
48.55 ms | 401 KiB | 5 Q