3v4l.org

run code in 300+ PHP versions simultaneously
<?php $htmlWithScript = "<html><body><div>something></div><script type=\"text/javascript\"> var showShareBarUI_params_e81 = { buttonWithCountTemplate: '<div class=\"sBtnWrap\"><a href=\"#\" onclick=\"\$onClick\"><div class=\"sBtn\">\$text<img src=\"\$iconImg\" /></div><div class=\"sCountBox\">\$count</div></a></div>', } </script></body></html>"; $htmlWithoutScript = preg_replace_callback('~<script.*>.*</script>~Uis', function($matches){ return ''; }, $htmlWithScript); var_dump($htmlWithoutScript);

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.4.120.0030.00522.29
8.4.110.0130.00722.65
8.4.100.0100.01118.03
8.4.90.0090.01220.41
8.4.80.0110.00919.69
8.4.70.0110.00518.02
8.4.60.0110.00818.52
8.4.50.0040.00519.70
8.4.40.0120.00918.05
8.4.30.0130.01019.66
8.4.20.0080.01122.53
8.4.10.0080.00819.65
8.3.250.0050.01118.72
8.3.240.0130.00618.66
8.3.230.0110.00916.75
8.3.220.0070.00118.95
8.3.210.0120.00616.72
8.3.200.0130.00616.77
8.3.190.0060.00416.50
8.3.180.0050.00516.67
8.3.170.0090.00919.01
8.3.160.0100.01016.57
8.3.150.0000.01820.55
8.3.140.0060.01216.79
8.3.130.0040.00418.60
8.3.120.0130.00620.72
8.3.110.0110.00020.94
8.3.100.0060.01016.50
8.3.90.0120.00626.77
8.3.80.0090.00016.63
8.3.70.0120.00616.88
8.3.60.0140.00716.73
8.3.50.0080.01221.98
8.3.40.0110.00418.84
8.3.30.0090.00618.83
8.3.20.0040.00419.02
8.3.10.0040.00421.89
8.3.00.0040.00419.05
8.2.290.0090.01020.24
8.2.280.0110.00720.29
8.2.270.0060.01317.05
8.2.260.0100.00717.07
8.2.250.0040.00416.62
8.2.240.0080.00019.00
8.2.230.0040.00422.58
8.2.220.0060.00324.06
8.2.210.0070.00726.77
8.2.200.0040.00716.75
8.2.190.0100.00716.88
8.2.180.0060.00918.54
8.2.170.0150.00018.95
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0030.00524.66
8.2.130.0030.00626.16
8.2.120.0040.00420.72
8.2.110.0050.00522.11
8.2.100.0090.00318.03
8.2.90.0050.00318.16
8.2.80.0040.00419.15
8.2.70.0050.00317.75
8.2.60.0040.00417.75
8.2.50.0080.00018.10
8.2.40.0040.00420.45
8.2.30.0070.00019.28
8.2.20.0080.00018.08
8.2.10.0000.00818.13
8.2.00.0000.00717.83
8.1.330.0120.00621.95
8.1.320.0120.00616.45
8.1.310.0070.00716.28
8.1.300.0120.00318.54
8.1.290.0060.00318.88
8.1.280.0150.00325.92
8.1.270.0030.00722.19
8.1.260.0060.00326.35
8.1.250.0030.00628.09
8.1.240.0090.00019.20
8.1.230.0090.00320.87
8.1.220.0000.00817.79
8.1.210.0040.00418.79
8.1.200.0030.00517.48
8.1.190.0060.00317.35
8.1.180.0090.00018.10
8.1.170.0050.00318.44
8.1.160.0040.00419.04
8.1.150.0040.00420.29
8.1.140.0000.00819.59
8.1.130.0070.00017.72
8.1.120.0000.00717.53
8.1.110.0040.00417.55
8.1.100.0070.00017.59
8.1.90.0000.00917.54
8.1.80.0040.00417.50
8.1.70.0030.00517.44
8.1.60.0040.00417.72
8.1.50.0040.00417.73
8.1.40.0000.00817.55
8.1.30.0000.00817.80
8.1.20.0000.01217.81
8.1.10.0040.00417.66
8.1.00.0000.00717.58
8.0.300.0000.00820.09
8.0.290.0000.00716.88
8.0.280.0070.00018.32
8.0.270.0030.00318.08
8.0.260.0000.00717.22
8.0.250.0040.00417.02
8.0.240.0000.00717.05
8.0.230.0000.00717.06
8.0.220.0000.00716.88
8.0.210.0000.00817.00
8.0.200.0000.00616.98
8.0.190.0030.00617.00
8.0.180.0100.00016.97
8.0.170.0000.00816.97
8.0.160.0000.00716.97
8.0.150.0040.00417.05
8.0.140.0040.00416.89
8.0.130.0030.00313.47
8.0.120.0000.00816.91
8.0.110.0070.00017.02
8.0.100.0070.00016.82
8.0.90.0000.00717.14
8.0.80.0040.01116.93
8.0.70.0040.00416.93
8.0.60.0000.00716.88
8.0.50.0020.00516.90
8.0.30.0090.00917.08
8.0.20.0130.00617.40
8.0.10.0080.00017.26
8.0.00.0090.00916.84
7.4.330.0000.00515.55
7.4.320.0000.00616.73
7.4.300.0030.00316.85
7.4.290.0040.00416.86
7.4.280.0040.00416.72
7.4.270.0070.00016.58
7.4.260.0030.00316.82
7.4.250.0030.00516.54
7.4.240.0040.00416.84
7.4.230.0000.00716.63
7.4.220.0050.01116.75
7.4.210.0110.01016.84
7.4.200.0050.00216.91
7.4.160.0070.01016.68
7.4.150.0000.01717.40
7.4.140.0070.01117.86
7.4.130.0090.00816.61
7.4.120.0080.00916.72
7.4.110.0140.00416.51
7.4.100.0100.01416.54
7.4.90.0100.01416.69
7.4.80.0130.00816.83
7.4.70.0070.01416.70
7.4.60.0030.01316.62
7.4.50.0090.00616.80
7.4.40.0140.00716.68
7.4.30.0080.00816.66
7.4.00.0060.01015.18
7.3.330.0000.00513.39
7.3.320.0030.00313.20
7.3.310.0030.00316.29
7.3.300.0000.00616.30
7.3.290.0060.00816.35
7.3.280.0140.00816.41
7.3.270.0140.00417.40
7.3.260.0070.01016.53
7.3.250.0100.00716.57
7.3.240.0120.00716.46
7.3.230.0090.00616.57
7.3.210.0030.01416.70
7.3.200.0070.01119.39
7.3.190.0090.00616.88
7.3.180.0090.00616.70
7.3.170.0130.01016.30
7.3.160.0130.00316.58
7.3.120.0070.01015.02
7.3.110.0090.00914.73
7.3.100.0060.01214.72
7.3.90.0090.00915.23
7.3.80.0060.00814.78
7.3.70.0030.01014.97
7.3.60.0030.01014.79
7.3.50.0000.01214.86
7.3.40.0040.01114.57
7.3.30.0090.00615.04
7.3.20.0040.01116.50
7.3.10.0030.01416.99
7.3.00.0070.00716.58
7.2.330.0030.01516.70
7.2.320.0030.01316.85
7.2.310.0130.00316.86
7.2.300.0120.00516.65
7.2.290.0040.01216.65
7.2.250.0100.01015.09
7.2.240.0000.02115.22
7.2.230.0060.00915.34
7.2.220.0040.00715.20
7.2.210.0100.00715.28
7.2.200.0060.00615.07
7.2.190.0040.01115.20
7.2.180.0080.00815.19
7.2.170.0070.01115.21
7.2.60.0060.00717.11
7.1.330.0000.01315.81
7.1.320.0000.01015.43
7.1.310.0150.00315.92
7.1.300.0030.01315.63
7.1.290.0070.01015.65
7.1.280.0090.00015.85
7.1.270.0040.00416.08
7.1.260.0040.01115.75
7.1.200.0110.00315.88
7.1.70.0030.00717.26
7.1.60.0200.01417.32
7.1.00.0030.07722.30
7.0.200.0040.00416.70
7.0.130.0130.06721.97
7.0.120.0130.07322.13
7.0.110.0130.06322.07
7.0.100.0100.05721.96
7.0.90.0100.07022.07
7.0.80.0070.05722.07
7.0.70.0130.05722.04
7.0.60.0070.05722.12
7.0.50.0130.06321.99
7.0.40.0130.05321.99
7.0.30.0030.05722.13
7.0.20.0100.05722.07
7.0.10.0130.05322.11
7.0.00.0070.05722.14
5.6.280.0100.05321.06
5.6.270.0130.06021.12
5.6.260.0100.07321.09
5.6.250.0100.07720.99
5.6.240.0070.06720.84
5.6.230.0070.07721.10
5.6.220.0070.06321.06
5.6.210.0130.06020.94
5.6.200.0070.06021.00
5.6.190.0030.06021.09
5.6.180.0070.06020.95
5.6.170.0100.05320.75
5.6.160.0100.08020.87
5.6.150.0000.07020.86
5.6.140.0100.07021.04
5.6.130.0030.06020.87
5.6.120.0130.07020.75
5.6.110.0170.07020.82
5.6.100.0070.05720.82
5.6.90.0000.06320.99
5.6.80.0130.06720.38
5.6.70.0070.06320.41
5.6.60.0130.06720.21
5.6.50.0070.06720.42
5.6.40.0070.05320.20
5.6.30.0070.05320.36
5.6.20.0030.06320.35
5.6.10.0070.05320.16
5.6.00.0030.05720.36

preferences:
31.24 ms | 403 KiB | 5 Q