3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_content = <<<HMX <thumb style="display: none;"><img src="/wp-content/uploads/2014/10/be98dc71560ae864.jpg.jpg"></thumb> <div><div> <span st_url="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%E2%80%93-verdict-long-overdue" st_title="4 Blackwater Contractors Found Guilty In Iraq Massacre &ndash; A Verdict Long Overdue" displaytext="sharethis"></span> <span st_url="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%E2%80%93-verdict-long-overdue" st_title="4 Blackwater Contractors Found Guilty In Iraq Massacre &ndash; A Verdict Long Overdue" displaytext="email"></span> <span st_url="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%E2%80%93-verdict-long-overdue" st_title="4 Blackwater Contractors Found Guilty In Iraq Massacre &ndash; A Verdict Long Overdue" displaytext="reddit"></span> <span st_url="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%E2%80%93-verdict-long-overdue" st_title="4 Blackwater Contractors Found Guilty In Iraq Massacre &ndash; A Verdict Long Overdue #occupy" st_via="occupy" st_username="" displaytext="twitter"></span> <span st_url="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%E2%80%93-verdict-long-overdue" st_title="4 Blackwater Contractors Found Guilty In Iraq Massacre &ndash; A Verdict Long Overdue" displaytext="plusone"></span> <span st_url="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%E2%80%93-verdict-long-overdue" st_title="4 Blackwater Contractors Found Guilty In Iraq Massacre &ndash; A Verdict Long Overdue" displaytext="fblike"></span> </div></div> <a href="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%E2%80%93-verdict-long-overdue"><img src="http://www.occuworld.org/wp-content/uploads/2014/10/be98dc71560ae864.jpg.jpg?itok=Fxb98rUD" width="140" height="140"></a><p>Not simply individual guards should answer for this tragedy &ndash; but the leaders of private security companies and the governments that employ them must also be held to account.</p> <div class="post_source_linkbar"> <a class="post_source_logo" href="http://www.occupy.com/rss"><img class="post_source_logo" src="http://www.occupy.com/sites/default/themes/occupyzen/logo.png"></a><img class="post_source_icon" title="Occupy.com" src="http://www.google.com/s2/favicons?domain=http%3A%2F%2Fwww.occupy.com%2Frss"><a class="post_source" target="_blank" href="http://www.occupy.com/article/4-blackwater-contractors-found-guilty-iraq-massacre-%C3%A2%C2%80%C2%93-verdict-long-overdue">Source</a> </div> HMX; //preg_match("#<span[^>]*st_url[^>]*><\/span>#i",$_content,$matches); preg_match("#<(?:span|div)[^>]*><\/(?:span|div)>#i",$_content,$matches); var_dump($matches); //echo $_content;

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.49
8.3.50.0160.00521.23
8.3.40.0100.00718.79
8.3.30.0110.00719.10
8.3.20.0000.00720.13
8.3.10.0040.00423.66
8.3.00.0080.00019.38
8.2.180.0060.00916.63
8.2.170.0100.01022.96
8.2.160.0180.00020.38
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00022.32
8.2.110.0130.00620.51
8.2.100.0130.00017.75
8.2.90.0040.00419.05
8.2.80.0090.00417.97
8.2.70.0080.00017.75
8.2.60.0030.00617.93
8.2.50.0080.00018.07
8.2.40.0000.00818.22
8.2.30.0050.00518.03
8.2.20.0000.00717.69
8.2.10.0080.00018.02
8.2.00.0040.00417.91
8.1.280.0120.00625.92
8.1.270.0040.00422.05
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00723.83
8.1.230.0030.00919.22
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00817.36
8.1.180.0090.00018.10
8.1.170.0080.00018.71
8.1.160.0060.00321.97
8.1.150.0040.00418.84
8.1.140.0000.00817.46
8.1.130.0050.00217.81
8.1.120.0040.00417.58
8.1.110.0000.00817.51
8.1.100.0030.00517.57
8.1.90.0060.00317.57
8.1.80.0000.00717.48
8.1.70.0000.00717.57
8.1.60.0040.00417.70
8.1.50.0040.00417.65
8.1.40.0040.00417.67
8.1.30.0040.00417.70
8.1.20.0030.00517.76
8.1.10.0000.00717.63
8.1.00.0040.00417.46
8.0.300.0000.00818.77
8.0.290.0070.00216.88
8.0.280.0050.00318.41
8.0.270.0000.00717.11
8.0.260.0000.00617.27
8.0.250.0040.00217.13
8.0.240.0000.00717.12
8.0.230.0000.00717.01
8.0.220.0030.00317.06
8.0.210.0030.00317.00
8.0.200.0000.00817.06
8.0.190.0040.00417.09
8.0.180.0000.00716.96
8.0.170.0000.00917.07
8.0.160.0030.00617.05
8.0.150.0000.00716.98
8.0.140.0040.00417.04
8.0.130.0030.00313.52
8.0.120.0040.00416.99
8.0.110.0000.00817.08
8.0.100.0070.00016.93
8.0.90.0000.01017.01
8.0.80.0100.01016.93
8.0.70.0040.00416.85
8.0.60.0000.00716.82
8.0.50.0070.00017.16
8.0.30.0090.01117.21
8.0.20.0090.00817.40
8.0.10.0040.00417.21
8.0.00.0030.01416.85
7.4.330.0060.00015.00
7.4.320.0060.00016.57
7.4.300.0000.00616.67
7.4.290.0030.00316.66
7.4.280.0040.00416.61
7.4.270.0000.00716.73
7.4.260.0120.00016.79
7.4.250.0040.00416.61
7.4.240.0060.00116.69
7.4.230.0050.00316.66
7.4.220.0150.00416.67
7.4.210.0060.01016.59
7.4.200.0070.00016.79
7.4.160.0070.01416.64
7.4.150.0130.00617.40
7.4.140.0080.01017.86
7.4.130.0130.00716.61
7.4.120.0060.01516.65
7.4.110.0000.01816.67
7.4.100.0060.01516.84
7.4.90.0110.00716.75
7.4.80.0160.00719.39
7.4.70.0100.00716.62
7.4.60.0070.01016.64
7.4.50.0000.00516.55
7.4.40.0150.00916.76
7.4.30.0070.01116.42
7.4.00.0050.01014.98
7.3.330.0000.00513.34
7.3.320.0000.00513.30
7.3.310.0000.00716.52
7.3.300.0050.00216.39
7.3.290.0000.01616.35
7.3.280.0100.01016.38
7.3.270.0170.00717.40
7.3.260.0000.01616.49
7.3.240.0080.01116.25
7.3.230.0150.00316.56
7.3.210.0130.00616.43
7.3.200.0100.01319.39
7.3.190.0100.00716.45
7.3.180.0100.00716.28
7.3.170.0130.00316.57
7.3.160.0160.00316.38
7.3.120.0100.01014.95
7.3.110.0040.01514.86
7.3.100.0100.00314.70
7.3.90.0000.00915.10
7.3.80.0030.00914.73
7.3.70.0060.00614.99
7.3.60.0110.00414.97
7.3.50.0040.01014.75
7.3.40.0070.00714.89
7.3.30.0070.00714.66
7.3.20.0070.00716.59
7.3.10.0090.00616.66
7.3.00.0080.00716.75
7.2.330.0150.00716.58
7.2.320.0090.01216.60
7.2.310.0120.00616.56
7.2.300.0070.01016.58
7.2.290.0100.01316.49
7.2.250.0130.00715.09
7.2.240.0070.01015.00
7.2.230.0040.01114.72
7.2.220.0060.00615.13
7.2.210.0030.01015.12
7.2.200.0000.01314.99
7.2.190.0030.00714.94
7.2.180.0070.00715.15
7.2.170.0120.00314.95
7.2.130.0050.00716.87
7.2.120.0040.01016.92
7.2.110.0030.01016.89
7.2.100.0060.00916.97
7.2.90.0060.00616.76
7.2.80.0030.01116.99
7.2.70.0100.00516.85
7.2.60.0040.00916.86
7.2.50.0050.00916.85
7.2.40.0090.00517.05
7.2.30.0070.00716.98
7.2.20.0050.00916.99
7.2.10.0060.00716.78
7.2.00.0090.00517.74
7.1.330.0060.00615.92
7.1.320.0060.00615.82
7.1.310.0090.00315.90
7.1.300.0100.00315.89
7.1.290.0000.00815.63
7.1.280.0120.00615.92
7.1.270.0120.00015.98
7.1.260.0100.00316.03
7.1.250.0050.00715.84
7.1.100.0200.00018.13
7.1.70.0050.00317.23
7.1.60.0070.01719.32
7.1.50.0060.00917.10
7.1.00.0000.07722.32
7.0.200.0040.00416.59
7.0.140.0030.07322.10
7.0.60.0070.08020.07
7.0.50.0130.07317.88
7.0.40.0100.04320.14
7.0.30.0430.07720.04
7.0.20.0070.05020.21
7.0.10.0030.06320.32
7.0.00.0000.04719.98
5.6.280.0000.07721.07
5.6.210.0100.06320.50
5.6.200.0170.04318.08
5.6.190.0000.04720.41
5.6.180.0330.06720.57
5.6.170.0200.03720.36
5.6.160.0170.08020.45
5.6.150.0070.05318.23
5.6.140.0030.04718.17
5.6.130.0070.07718.10
5.6.120.0070.08320.79
5.6.110.0170.04721.00
5.6.100.0030.04321.00
5.6.90.0100.06020.97
5.6.80.0070.08020.51
5.5.350.0230.07320.43
5.5.340.0100.06717.91
5.5.330.0070.07020.21
5.5.320.0370.08020.24
5.5.310.0230.03320.18
5.5.300.0000.04317.98
5.5.290.0000.04317.89
5.5.280.0000.05320.75
5.5.270.0100.05320.89
5.5.260.0070.08720.95
5.5.250.0130.07320.46
5.5.240.0230.03320.11
5.4.450.0800.05719.13
5.4.440.0930.08019.13
5.4.430.0370.05719.44
5.4.420.0670.00019.42
5.4.410.0670.00019.22
5.4.400.0630.00019.19
5.4.390.0600.00019.05
5.4.380.0670.00019.13
5.4.370.0630.00019.15
5.4.360.0600.00019.16
5.4.350.0700.00019.15
5.4.340.0040.03711.97
5.4.320.0020.03912.46
5.4.310.0090.03512.45
5.4.300.0070.03612.46
5.4.290.0060.04312.46
5.4.280.0090.03412.35
5.4.270.0080.03612.36
5.4.260.0080.03612.36
5.4.250.0110.03612.36
5.4.240.0050.03912.35
5.4.230.0030.04212.34
5.4.220.0050.03912.35
5.4.210.0040.04112.34
5.4.200.0130.05712.35
5.4.190.0070.03912.34
5.4.180.0080.04012.34
5.4.170.0090.03512.35
5.4.160.0120.04012.35
5.4.150.0060.04312.34
5.4.140.0090.04112.03
5.4.130.0080.04212.02
5.4.120.0090.04211.98
5.4.110.0040.04111.97
5.4.100.0060.03711.97
5.4.90.0040.03811.97
5.4.80.0050.03711.97
5.4.70.0060.03411.97
5.4.60.0060.03411.96
5.4.50.0080.03211.97
5.4.40.0070.03211.95
5.4.30.0060.03411.95
5.4.20.0050.03511.96
5.4.10.0060.03411.95
5.4.00.0090.04211.45
5.3.290.0080.03812.80
5.3.280.0080.04512.71
5.3.270.0060.04012.72
5.3.260.0100.04412.71
5.3.250.0100.03512.72
5.3.240.0040.04412.71
5.3.230.0040.04012.71
5.3.220.0090.03512.68
5.3.210.0070.03912.68
5.3.200.0070.03612.68
5.3.190.0060.04012.68
5.3.180.0040.03912.67
5.3.170.0070.04212.67
5.3.160.0030.04012.67
5.3.150.0070.04312.67
5.3.140.0050.03712.66
5.3.130.0080.03612.66
5.3.120.0060.03912.66
5.3.110.0080.03712.66
5.3.100.0060.03612.12
5.3.90.0060.03612.08
5.3.80.0080.03412.07
5.3.70.0030.03812.07
5.3.60.0050.03712.07
5.3.50.0060.03612.00
5.3.40.0050.03712.00
5.3.30.0050.03611.96
5.3.20.0050.03511.74
5.3.10.0060.03711.71
5.3.00.0050.03611.69
5.2.170.0070.0309.20
5.2.160.0040.0309.20
5.2.150.0040.0319.20
5.2.140.0040.0319.20
5.2.130.0070.0289.16
5.2.120.0050.0329.15
5.2.110.0050.0339.16
5.2.100.0050.0309.16
5.2.90.0050.0299.16
5.2.80.0060.0329.15
5.2.70.0030.0349.15
5.2.60.0070.0339.11
5.2.50.0080.0309.07
5.2.40.0060.0309.05
5.2.30.0030.0329.03
5.2.20.0040.0319.15
5.2.10.0040.0299.05
5.2.00.0040.0308.91
5.1.60.0040.0258.20
5.1.50.0070.0298.20
5.1.40.0050.0248.18
5.1.30.0060.0248.53
5.1.20.0070.0258.55
5.1.10.0040.0258.28
5.1.00.0050.0278.29
5.0.50.0030.0216.76
5.0.40.0010.0226.61
5.0.30.0060.0356.43
5.0.20.0060.0196.40
5.0.10.0010.0226.38
5.0.00.0020.0336.37
4.4.90.0040.0144.78
4.4.80.0050.0134.77
4.4.70.0020.0164.76
4.4.60.0020.0174.77
4.4.50.0040.0144.77
4.4.40.0030.0254.76
4.4.30.0030.0144.76
4.4.20.0040.0164.84
4.4.10.0040.0134.85
4.4.00.0020.0254.78
4.3.110.0030.0214.69
4.3.100.0030.0194.68
4.3.90.0010.0164.67
4.3.80.0030.0244.66
4.3.70.0060.0144.66
4.3.60.0030.0144.66
4.3.50.0020.0174.66
4.3.40.0020.0244.61
4.3.30.0020.0163.42
4.3.20.0000.0183.40
4.3.10.0000.0173.25
4.3.00.0070.0237.33

preferences:
41.34 ms | 401 KiB | 5 Q