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.*>.*~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.70.0100.01018.68
8.3.60.0140.00416.63
8.3.50.0080.01021.97
8.3.40.0030.01219.01
8.3.30.0040.01118.92
8.3.20.0080.00019.20
8.3.10.0070.00721.89
8.3.00.0000.00819.19
8.2.190.0070.01016.63
8.2.180.0110.00416.63
8.2.170.0110.00422.96
8.2.160.0030.01020.27
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0040.00419.95
8.2.120.0030.00526.35
8.2.110.0070.00321.00
8.2.100.0090.00317.84
8.2.90.0000.00819.21
8.2.80.0040.00817.97
8.2.70.0030.00517.75
8.2.60.0030.00617.93
8.2.50.0000.00918.10
8.2.40.0030.00620.63
8.2.30.0070.00019.18
8.2.20.0040.00418.07
8.2.10.0070.00018.12
8.2.00.0000.00817.84
8.1.280.0140.00725.92
8.1.270.0060.00322.05
8.1.260.0180.00028.09
8.1.250.0090.00028.09
8.1.240.0070.00323.92
8.1.230.0040.00817.71
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0070.00317.48
8.1.190.0030.00617.36
8.1.180.0040.00418.10
8.1.170.0000.00818.88
8.1.160.0000.00718.94
8.1.150.0000.00720.28
8.1.140.0000.00719.65
8.1.130.0000.00717.78
8.1.120.0040.00417.65
8.1.110.0000.00717.60
8.1.100.0040.00417.60
8.1.90.0070.00517.54
8.1.80.0000.00817.66
8.1.70.0030.00317.49
8.1.60.0000.00817.78
8.1.50.0030.00517.59
8.1.40.0040.00417.58
8.1.30.0050.00317.71
8.1.20.0030.00917.76
8.1.10.0000.00817.57
8.1.00.0000.00717.60
8.0.300.0000.00818.85
8.0.290.0000.00916.88
8.0.280.0030.00318.32
8.0.270.0040.00417.13
8.0.260.0030.00317.17
8.0.250.0030.00317.12
8.0.240.0000.00717.08
8.0.230.0000.00717.13
8.0.220.0040.00416.90
8.0.210.0070.00017.05
8.0.200.0040.00417.02
8.0.190.0040.00417.17
8.0.180.0000.00917.02
8.0.170.0000.00717.14
8.0.160.0040.00417.09
8.0.150.0080.00017.07
8.0.140.0070.00017.07
8.0.130.0030.00313.55
8.0.120.0000.00816.96
8.0.110.0050.00216.96
8.0.100.0000.00716.99
8.0.90.0000.00817.12
8.0.80.0060.01017.10
8.0.70.0050.00317.16
8.0.60.0040.00417.16
8.0.50.0050.00317.11
8.0.30.0080.01117.38
8.0.20.0110.00917.44
8.0.10.0070.00017.02
8.0.00.0060.01217.20
7.4.330.0000.00515.55
7.4.320.0000.00616.82
7.4.300.0000.00716.70
7.4.290.0030.00316.70
7.4.280.0050.00316.70
7.4.270.0070.00016.69
7.4.260.0040.00416.84
7.4.250.0000.00716.59
7.4.240.0000.00716.82
7.4.230.0070.00016.56
7.4.220.0150.00216.85
7.4.210.0120.00616.72
7.4.200.0040.00416.82
7.4.160.0110.00516.66
7.4.150.0070.01017.40
7.4.140.0110.01017.86
7.4.130.0100.00916.66
7.4.120.0090.00916.67
7.4.110.0080.01216.61
7.4.100.0110.00616.99
7.4.90.0070.01016.75
7.4.80.0120.00416.49
7.4.70.0140.00316.84
7.4.60.0090.00616.58
7.4.50.0100.00716.44
7.4.40.0070.01016.62
7.4.30.0120.01316.77
7.4.00.0030.01015.22
7.3.330.0060.00013.30
7.3.320.0050.00013.27
7.3.310.0040.00416.48
7.3.300.0030.00316.50
7.3.290.0080.00816.48
7.3.280.0090.01016.46
7.3.270.0030.01317.40
7.3.260.0130.00416.63
7.3.250.0060.01116.51
7.3.240.0070.01116.45
7.3.230.0040.01416.51
7.3.210.0080.00816.62
7.3.200.0140.00419.39
7.3.190.0070.01016.52
7.3.180.0120.00316.63
7.3.170.0070.01316.63
7.3.160.0000.01716.50
7.2.330.0150.00316.77
7.2.320.0120.00616.69
7.2.310.0070.01016.79
7.2.300.0130.00916.61
7.2.290.0090.00816.84
7.2.60.0090.00616.91
7.2.50.0040.00817.09
7.2.00.0060.00619.48
7.1.200.0090.00315.76
7.1.70.0040.00817.16
7.1.60.0470.00333.02
7.1.00.0070.07722.37
7.0.200.0030.00616.90
7.0.130.0100.07321.97
7.0.120.0200.04322.18
7.0.110.0100.06022.11
7.0.100.0100.05322.12
7.0.90.0100.05322.04
7.0.80.0000.06022.14
7.0.70.0100.05022.19
7.0.60.0130.05322.07
7.0.50.0030.05722.07
7.0.40.0170.04722.05
7.0.30.0100.04722.14
7.0.20.0000.06022.14
7.0.10.0100.05022.14
7.0.00.0000.06022.11
5.6.280.0200.04720.86
5.6.270.0130.05321.09
5.6.260.0100.05321.11
5.6.250.0100.05721.07
5.6.240.0030.06021.04
5.6.230.0070.05720.99
5.6.220.0030.05720.86
5.6.210.0000.07020.95
5.6.200.0070.05721.10
5.6.190.0070.05721.04
5.6.180.0030.05720.86
5.6.170.0070.05321.04
5.6.160.0070.05320.84
5.6.150.0130.04721.02
5.6.140.0070.05720.80
5.6.130.0100.05021.02
5.6.120.0030.06021.03
5.6.110.0030.06020.94
5.6.100.0030.06021.00
5.6.90.0030.05321.01
5.6.80.0230.03320.25
5.6.70.0130.04320.39
5.6.60.0070.05320.21
5.6.50.0030.05320.32
5.6.40.0030.05320.39
5.6.30.0070.05320.45
5.6.20.0030.05320.16
5.6.10.0000.05720.21
5.6.00.0070.05020.40

preferences:
52.84 ms | 401 KiB | 5 Q