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>/","",$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.0070.01018.56
8.3.50.0110.00821.92
8.3.40.0070.01118.68
8.3.30.0000.01418.84
8.3.20.0040.00420.04
8.3.10.0040.00423.51
8.3.00.0000.00819.05
8.2.180.0110.00416.75
8.2.170.0040.01122.96
8.2.160.0070.00722.03
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00321.10
8.2.110.0070.00322.23
8.2.100.0130.00017.78
8.2.90.0060.00317.88
8.2.80.0040.00418.73
8.2.70.0090.00017.93
8.2.60.0040.00418.22
8.2.50.0050.00319.21
8.2.40.0000.01119.34
8.2.30.0040.00419.32
8.2.20.0000.00717.66
8.2.10.0000.00717.93
8.2.00.0070.00017.62
8.1.280.0110.00425.92
8.1.270.0080.00018.83
8.1.260.0080.00026.35
8.1.250.0000.00928.09
8.1.240.0070.01423.76
8.1.230.0110.00017.83
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.01017.13
8.1.190.0050.00317.10
8.1.180.0040.00419.00
8.1.170.0000.00918.64
8.1.160.0040.00419.01
8.1.150.0020.00518.70
8.1.140.0040.00417.26
8.1.130.0060.00317.82
8.1.120.0000.00717.36
8.1.110.0000.00717.43
8.1.100.0000.00717.41
8.1.90.0000.00717.41
8.1.80.0070.00017.28
8.1.70.0030.00517.39
8.1.60.0040.00417.47
8.1.50.0000.00817.47
8.1.40.0000.00817.45
8.1.30.0040.00417.63
8.1.20.0000.00817.47
8.1.10.0000.00817.39
8.1.00.0030.00517.34
8.0.300.0080.00018.99
8.0.290.0080.00016.75
8.0.280.0030.00318.47
8.0.270.0030.00317.27
8.0.260.0000.00617.32
8.0.250.0040.00416.90
8.0.240.0030.00316.93
8.0.230.0030.00316.93
8.0.220.0000.00716.83
8.0.210.0070.00016.91
8.0.200.0000.00716.80
8.0.190.0000.00816.96
8.0.180.0000.00716.91
8.0.170.0060.00316.80
8.0.160.0040.00416.88
8.0.150.0000.00716.88
8.0.140.0070.00016.80
8.0.130.0050.00013.37
8.0.120.0000.00816.73
8.0.110.0050.00316.89
8.0.100.0040.00416.91
8.0.90.0000.00716.95
8.0.80.0110.00716.89
8.0.70.0000.00716.84
8.0.60.0000.00716.84
8.0.50.0070.00016.84
8.0.30.0060.01616.96
8.0.20.0110.00817.40
8.0.10.0040.00416.89
8.0.00.0100.01416.54
7.4.330.0000.00515.03
7.4.320.0030.00316.53
7.4.300.0030.00316.46
7.4.290.0070.00016.34
7.4.280.0070.00016.47
7.4.270.0060.00016.35
7.4.260.0030.00316.47
7.4.250.0080.00016.42
7.4.240.0000.00716.39
7.4.230.0000.00716.26
7.4.220.0140.01016.40
7.4.210.0000.01416.49
7.4.200.0040.00416.61
7.4.160.0150.00016.73
7.4.150.0160.00317.40
7.4.140.0110.00717.86
7.4.130.0080.01216.55
7.4.120.0060.01116.59
7.4.110.0100.00716.36
7.4.100.0090.01216.64
7.4.90.0110.00716.28
7.4.80.0040.01819.39
7.4.70.0070.01116.53
7.4.60.0090.00616.43
7.4.50.0000.00515.99
7.4.40.0060.00916.62
7.4.30.0090.00916.27
7.4.00.0000.01614.83
7.3.330.0050.00013.06
7.3.320.0000.00513.07
7.3.310.0030.00316.16
7.3.300.0000.00616.18
7.3.290.0040.01116.12
7.3.280.0100.00816.22
7.3.270.0140.00317.40
7.3.260.0120.00616.21
7.3.250.0050.01416.19
7.3.240.0070.01816.27
7.3.230.0150.00616.39
7.3.210.0080.00816.25
7.3.200.0070.01319.39
7.3.190.0080.00816.08
7.3.180.0090.00616.53
7.3.170.0090.00616.27
7.3.160.0140.00416.30
7.2.330.0120.00616.68
7.2.320.0120.00616.38
7.2.310.0120.00616.80
7.2.300.0040.01516.61
7.2.290.0120.00716.37
7.2.60.0060.01016.92
7.2.00.0030.01019.06
7.1.200.0040.00415.62
7.1.100.0030.01018.00
7.1.70.0110.00716.98
7.1.60.0100.01019.22
7.1.50.0130.01016.86
7.1.00.0070.07322.35
7.0.200.0110.00016.80
7.0.140.0070.06722.09
7.0.60.0000.06019.86
7.0.50.0100.07717.81
7.0.40.0030.07020.12
7.0.30.0200.05020.00
7.0.20.0130.05020.31
7.0.10.0100.08720.01
7.0.00.0030.04320.09
5.6.280.0070.07020.86
5.6.210.0130.06720.52
5.6.200.0070.07318.11
5.6.190.0070.05320.40
5.6.180.0170.05020.57
5.6.170.0230.07720.33
5.6.160.0070.08320.38
5.6.150.0100.06318.11
5.6.140.0070.08718.08
5.6.130.0070.08318.17
5.6.120.0070.03720.97
5.6.110.0070.06320.94
5.6.100.0030.04020.96
5.6.90.0070.06020.99
5.6.80.0070.05720.41
5.5.350.0300.07020.42
5.5.340.0170.06717.93
5.5.330.0100.05720.25
5.5.320.0400.05720.24
5.5.310.0200.08020.28
5.5.300.0100.03017.93
5.5.290.0130.07717.95
5.5.280.0000.08320.79
5.5.270.0070.05020.80
5.5.260.0070.05720.64
5.5.250.0070.05720.57
5.5.240.0070.06020.25
5.4.450.0100.08019.54
5.4.440.0700.05719.52
5.4.430.0530.05319.37
5.4.420.0700.05319.57
5.4.410.0830.05019.28
5.4.400.0630.04718.85
5.4.390.0230.07018.67
5.4.380.0230.06718.77
5.4.370.0400.05018.55
5.4.360.0400.05018.62
5.4.350.0230.06718.52
5.4.340.0300.06318.68
5.4.320.0270.06018.45
5.4.310.0370.05318.50
5.4.300.0330.06018.64
5.4.290.0370.07718.44
5.4.280.0330.05018.45
5.4.270.0400.05018.68
5.4.260.0270.06018.77
5.4.250.0430.05318.50
5.4.240.0370.05018.45
5.4.230.0500.05318.67
5.4.220.0330.06318.48
5.4.210.0430.07018.61
5.4.200.0370.05716.42
5.4.190.0230.05718.68
5.4.180.0270.05718.55
5.4.170.0400.04718.50
5.4.160.0370.05718.72
5.4.150.0300.05718.70
5.4.140.0330.05316.09
5.4.130.0330.04716.08
5.4.120.0370.04716.22
5.4.110.0330.05316.14
5.4.100.0400.04316.16
5.4.90.0300.06316.21
5.4.80.0370.04316.34
5.4.70.0330.05016.19
5.4.60.0370.04316.19
5.4.50.0200.06316.28
5.4.40.0300.05316.12
5.4.30.0330.04716.27
5.4.20.0370.03716.00
5.4.10.0270.05716.13
5.4.00.0300.04715.60
5.3.290.0300.05314.66
5.3.280.0270.05314.58
5.3.270.0270.05314.69
5.3.260.0200.06014.69
5.3.250.0270.05314.65
5.3.240.0230.05714.52
5.3.230.0230.05314.63
5.3.220.0270.05714.66
5.3.210.0330.05014.63
5.3.200.0270.05014.54
5.3.190.0270.05314.54
5.3.180.0300.05314.54
5.3.170.0330.07314.63
5.3.160.0270.05314.49
5.3.150.0300.05714.56
5.3.140.0300.05014.45
5.3.130.0300.05314.52
5.3.120.0330.05014.64
5.3.110.0300.05014.64
5.3.100.0230.05314.02
5.3.90.0330.05014.09
5.3.80.0430.04013.98
5.3.70.0330.04713.91
5.3.60.0230.05713.89
5.3.50.0330.04313.86
5.3.40.0230.05314.02
5.3.30.0330.04313.90
5.3.20.0270.05013.67
5.3.10.0370.04013.60
5.3.00.0200.06013.55
5.2.170.0270.06011.29
5.2.160.0230.06011.12
5.2.150.0300.05311.07
5.2.140.0200.06311.11
5.2.130.0270.05311.03
5.2.120.0230.03711.05
5.2.110.0170.04711.01
5.2.100.0300.03711.07
5.2.90.0200.04711.14
5.2.80.0270.04011.05
5.2.70.0170.05011.05
5.2.60.0200.04711.11
5.2.50.0270.03711.02
5.2.40.0170.04011.03
5.2.30.0200.04011.01
5.2.20.0200.03710.99
5.2.10.0130.04310.87
5.2.00.0170.04010.71
5.1.60.0230.02710.00
5.1.50.0230.0279.97
5.1.40.0230.02710.02
5.1.30.0130.04010.44
5.1.20.0130.04010.48
5.1.10.0130.04010.05
5.1.00.0170.04010.04
5.0.50.0100.0308.57
5.0.40.0070.0338.38
5.0.30.0100.0438.20
5.0.20.0070.0308.39
5.0.10.0130.0238.28
5.0.00.0070.0478.34
4.4.90.0100.0236.36
4.4.80.0070.0236.36
4.4.70.0030.0276.36
4.4.60.0100.0206.36
4.4.50.0070.0236.36
4.4.40.0100.0376.36
4.4.30.0130.0176.36
4.4.20.0070.0236.36
4.4.10.0100.0236.36
4.4.00.0100.0376.36
4.3.110.0100.0276.36
4.3.100.0100.0206.36
4.3.90.0170.0136.36
4.3.80.0100.0336.36
4.3.70.0070.0276.36
4.3.60.0030.0276.36
4.3.50.0070.0236.36
4.3.40.0100.0336.36
4.3.30.0100.0176.36
4.3.20.0030.0236.36
4.3.10.0130.0136.36
4.3.00.0170.0207.24

preferences:
48.93 ms | 401 KiB | 5 Q