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>~Uim', function($matches){ var_dump($matches);exit; return ''; }, $htmlWithScript); echo "nic"; 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.3.60.0120.00616.63
8.3.50.0110.00621.99
8.3.40.0110.00418.88
8.3.30.0070.00719.02
8.3.20.0080.00019.20
8.3.10.0070.00721.90
8.3.00.0040.00419.20
8.2.180.0030.01316.63
8.2.170.0090.01222.96
8.2.160.0100.00320.16
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00419.89
8.2.120.0070.00026.35
8.2.110.0060.00320.35
8.2.100.0060.00617.84
8.2.90.0000.00819.24
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0030.00517.93
8.2.50.0040.00418.10
8.2.40.0040.00420.60
8.2.30.0000.00819.33
8.2.20.0000.00818.15
8.2.10.0040.00418.06
8.2.00.0050.00317.96
8.1.280.0070.01425.92
8.1.270.0080.00022.21
8.1.260.0110.00728.09
8.1.250.0090.00028.09
8.1.240.0080.00522.13
8.1.230.0040.00720.94
8.1.220.0080.00017.78
8.1.210.0080.00018.77
8.1.200.0060.00317.48
8.1.190.0030.00517.35
8.1.180.0050.00318.10
8.1.170.0060.00318.79
8.1.160.0040.00418.95
8.1.150.0000.00720.25
8.1.140.0050.00219.55
8.1.130.0070.00017.73
8.1.120.0000.00717.64
8.1.110.0040.00417.66
8.1.100.0040.00417.61
8.1.90.0000.01117.61
8.1.80.0070.00017.64
8.1.70.0030.00317.50
8.1.60.0050.00317.80
8.1.50.0040.00417.63
8.1.40.0000.00817.63
8.1.30.0030.00517.72
8.1.20.0000.01117.74
8.1.10.0040.00417.71
8.1.00.0040.00417.59
8.0.300.0000.00818.77
8.0.290.0070.00016.88
8.0.280.0030.00318.46
8.0.270.0000.00717.32
8.0.260.0060.00017.34
8.0.250.0030.00316.91
8.0.240.0000.00817.03
8.0.230.0070.00016.97
8.0.220.0050.00317.00
8.0.210.0030.00316.95
8.0.200.0050.00217.04
8.0.190.0040.00417.02
8.0.180.0030.00616.97
8.0.170.0040.00416.95
8.0.160.0070.00017.00
8.0.150.0030.00516.89
8.0.140.0000.00716.88
8.0.130.0030.00313.50
8.0.120.0040.00416.98
8.0.110.0000.00716.82
8.0.100.0000.00716.85
8.0.90.0040.00416.92
8.0.80.0030.01017.04
8.0.70.0050.00316.85
8.0.60.0040.00416.97
8.0.50.0040.00416.89
8.0.30.0120.00817.31
8.0.20.0110.00817.45
8.0.10.0000.00817.03
8.0.00.0080.00816.85
7.4.330.0030.00315.55
7.4.320.0030.00316.73
7.4.300.0030.00316.77
7.4.290.0000.00716.71
7.4.280.0030.00616.69
7.4.270.0030.00316.80
7.4.260.0070.00016.74
7.4.250.0040.00416.77
7.4.240.0000.00716.77
7.4.230.0000.00716.93
7.4.220.0120.00916.65
7.4.210.0060.00916.68
7.4.200.0030.00316.71
7.4.160.0040.01216.48
7.4.150.0130.00517.40
7.4.140.0090.01017.86
7.4.130.0070.01116.76
7.4.120.0130.00616.65
7.4.110.0180.00016.66
7.4.100.0030.01516.62
7.4.90.0090.00916.72
7.4.80.0070.01116.82
7.4.70.0070.01116.60
7.4.60.0120.00416.70
7.4.50.0050.01016.82
7.4.40.0130.00616.67
7.4.30.0090.01616.59
7.4.00.0060.01015.03
7.3.330.0030.00313.38
7.3.320.0030.00313.31
7.3.310.0070.00016.38
7.3.300.0070.00016.42
7.3.290.0090.00616.37
7.3.280.0130.00716.38
7.3.270.0160.00417.40
7.3.260.0060.01116.50
7.3.250.0120.00516.41
7.3.240.0090.01116.51
7.3.230.0110.01116.61
7.3.210.0070.01016.58
7.3.200.0110.00716.63
7.3.190.0060.00916.34
7.3.180.0150.00016.50
7.3.170.0110.00616.36
7.3.160.0110.00716.33
7.3.120.0090.00914.83
7.3.110.0060.00915.00
7.3.100.0100.00714.49
7.3.90.0030.01214.57
7.3.80.0110.00314.60
7.3.70.0070.00714.96
7.3.60.0060.00914.91
7.3.50.0040.01114.69
7.3.40.0150.00014.63
7.3.30.0030.01314.68
7.3.20.0060.00616.87
7.3.10.0000.00916.55
7.3.00.0110.00016.74
7.2.330.0140.00416.77
7.2.320.0110.00716.99
7.2.310.0130.00416.55
7.2.300.0150.00316.80
7.2.290.0170.00016.70
7.2.250.0120.00015.21
7.2.240.0060.01215.04
7.2.230.0060.00914.96
7.2.220.0060.00615.12
7.2.210.0000.01315.04
7.2.200.0030.01214.95
7.2.190.0070.01015.00
7.2.180.0060.00315.05
7.2.170.0000.01515.21
7.2.60.0040.00817.12
7.2.50.0030.01317.05
7.2.00.0040.00719.58
7.1.330.0060.00915.96
7.1.320.0040.00716.04
7.1.310.0030.00615.84
7.1.300.0040.00415.79
7.1.290.0030.01015.64
7.1.280.0090.00015.54
7.1.270.0060.00615.46
7.1.260.0070.01015.99
7.1.200.0120.00315.88
7.1.70.0060.00617.01
7.1.60.0280.00833.43
7.1.00.0030.07322.32
7.0.200.0030.01016.83
7.0.130.0130.05322.06
7.0.120.0130.07022.18
7.0.110.0100.05721.94
7.0.100.0100.05722.01
7.0.90.0170.05022.07
7.0.80.0070.06322.11
7.0.70.0070.06322.06
7.0.60.0100.05322.02
7.0.50.0170.05022.13
7.0.40.0130.05022.04
7.0.30.0130.05022.15
7.0.20.0070.06022.07
7.0.10.0130.05022.11
7.0.00.0070.05722.15
5.6.280.0130.06020.98
5.6.270.0000.07720.91
5.6.260.0030.07721.04
5.6.250.0100.05720.80
5.6.240.0130.07020.86
5.6.230.0100.05721.07
5.6.220.0070.06320.92
5.6.210.0100.08321.06
5.6.200.0070.07020.93
5.6.190.0100.06321.00
5.6.180.0170.05021.02
5.6.170.0100.05720.80
5.6.160.0070.05720.75
5.6.150.0170.05021.02
5.6.140.0100.05720.99
5.6.130.0100.05720.94
5.6.120.0130.05320.75
5.6.110.0100.05720.79
5.6.100.0170.06320.91
5.6.90.0070.07720.84
5.6.80.0030.05720.14
5.6.70.0070.05320.18
5.6.60.0070.05320.18
5.6.50.0100.05020.48
5.6.40.0130.04720.39
5.6.30.0070.06020.37
5.6.20.0030.06320.45
5.6.10.0030.05720.20
5.6.00.0100.05020.17

preferences:
41.4 ms | 401 KiB | 5 Q