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.00316.75
8.3.50.0100.00821.13
8.3.40.0150.00019.00
8.3.30.0070.01019.01
8.3.20.0040.00420.38
8.3.10.0000.00823.64
8.3.00.0030.00619.50
8.2.180.0110.00716.63
8.2.170.0120.00922.96
8.2.160.0150.00020.52
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00322.18
8.2.110.0060.00319.16
8.2.100.0040.00817.84
8.2.90.0050.00319.05
8.2.80.0000.00817.97
8.2.70.0030.00517.73
8.2.60.0060.00617.77
8.2.50.0100.00018.07
8.2.40.0030.00619.95
8.2.30.0080.00418.07
8.2.20.0000.00717.78
8.2.10.0090.00018.00
8.2.00.0040.00417.70
8.1.280.0140.00425.92
8.1.270.0000.00822.10
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00622.14
8.1.230.0040.00818.89
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0050.00318.78
8.1.160.0030.00521.94
8.1.150.0000.00718.86
8.1.140.0080.00017.50
8.1.130.0070.00017.91
8.1.120.0030.00517.53
8.1.110.0040.00417.45
8.1.100.0040.00417.61
8.1.90.0000.00717.62
8.1.80.0080.00017.54
8.1.70.0030.00317.52
8.1.60.0090.00017.71
8.1.50.0040.00417.62
8.1.40.0000.00817.61
8.1.30.0080.00017.74
8.1.20.0050.00317.77
8.1.10.0040.00417.68
8.1.00.0000.00717.62
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.41
8.0.270.0030.00317.22
8.0.260.0050.00317.22
8.0.250.0030.00317.07
8.0.240.0000.00717.07
8.0.230.0000.00717.12
8.0.220.0000.00717.05
8.0.210.0040.00416.98
8.0.200.0040.00417.08
8.0.190.0040.00417.07
8.0.180.0040.00417.00
8.0.170.0040.00417.08
8.0.160.0030.00617.01
8.0.150.0030.00317.03
8.0.140.0000.00716.95
8.0.130.0000.00513.41
8.0.120.0040.00417.00
8.0.110.0020.00516.96
8.0.100.0040.00416.98
8.0.90.0040.00416.92
8.0.80.0100.00717.03
8.0.70.0040.00417.02
8.0.60.0070.00016.92
8.0.50.0050.00317.04
8.0.30.0130.00817.28
8.0.20.0080.01117.40
8.0.10.0050.00517.20
8.0.00.0120.00716.92
7.4.330.0000.00515.00
7.4.320.0050.00216.66
7.4.300.0060.00016.62
7.4.290.0000.00716.67
7.4.280.0030.00616.64
7.4.270.0030.00316.76
7.4.260.0000.00816.65
7.4.250.0000.00816.75
7.4.240.0020.00616.70
7.4.230.0000.00716.81
7.4.220.0150.01316.85
7.4.210.0070.01216.61
7.4.200.0030.00316.66
7.4.160.0130.01016.73
7.4.150.0130.00617.40
7.4.140.0160.00617.86
7.4.130.0080.01316.78
7.4.120.0120.00716.73
7.4.110.0090.01316.68
7.4.100.0090.01216.83
7.4.90.0030.01416.52
7.4.80.0070.01119.39
7.4.70.0100.01016.52
7.4.60.0030.01516.57
7.4.50.0030.00316.66
7.4.40.0170.00616.45
7.4.30.0070.01016.68
7.4.00.0030.01414.93
7.3.330.0020.00213.27
7.3.320.0000.00513.23
7.3.310.0000.00716.45
7.3.300.0030.00316.27
7.3.290.0110.00616.40
7.3.280.0110.00716.37
7.3.270.0120.00417.40
7.3.260.0070.01116.65
7.3.240.0080.01116.37
7.3.230.0190.00316.74
7.3.210.0150.00316.74
7.3.200.0060.01819.39
7.3.190.0090.00816.36
7.3.180.0030.01316.57
7.3.170.0110.00616.41
7.3.160.0140.00316.29
7.3.120.0090.00314.73
7.3.110.0130.00614.90
7.3.100.0130.00314.63
7.3.90.0030.00914.83
7.3.80.0040.00714.86
7.3.70.0060.00914.97
7.3.60.0070.00714.79
7.3.50.0130.00614.94
7.3.40.0090.00914.86
7.3.30.0090.00614.57
7.3.20.0070.00716.66
7.3.10.0060.01016.66
7.3.00.0100.00616.73
7.2.330.0090.01616.73
7.2.320.0150.00316.62
7.2.310.0130.01016.52
7.2.300.0110.00716.38
7.2.290.0130.00916.57
7.2.240.0030.01615.01
7.2.230.0040.01115.07
7.2.220.0090.00315.05
7.2.210.0070.00715.09
7.2.200.0060.01014.87
7.2.190.0030.00915.09
7.2.180.0070.00714.82
7.2.170.0100.00715.07
7.2.160.0110.00415.21
7.2.150.0120.00616.66
7.2.140.0060.01316.94
7.2.130.0060.01216.70
7.2.120.0070.01016.74
7.2.110.0060.00616.89
7.2.100.0030.00916.56
7.2.90.0060.00916.72
7.2.80.0110.00716.84
7.2.70.0110.00316.90
7.2.60.0080.00816.98
7.2.50.0030.00716.92
7.2.40.0030.00916.90
7.2.30.0060.01016.96
7.2.20.0090.00616.67
7.2.10.0070.00416.91
7.2.00.0070.00716.94
7.1.330.0100.00716.12
7.1.320.0110.00316.07
7.1.310.0070.01016.02
7.1.300.0100.00715.88
7.1.290.0000.01316.02
7.1.280.0100.00615.80
7.1.270.0060.00615.71
7.1.260.0030.01215.87
7.1.250.0040.01415.84
7.1.70.0040.00417.18
7.1.60.0070.01519.32
7.1.50.0070.01017.04
7.1.00.0070.09322.50
7.0.200.0030.00716.82
7.0.140.0030.07721.97
7.0.60.0000.05319.79
7.0.50.0070.08017.91
7.0.40.0100.07320.43
7.0.30.0400.04020.05
7.0.20.0170.04020.05
7.0.10.0100.08020.02
7.0.00.0030.04320.10
5.6.280.0000.07720.87
5.6.210.0130.08020.50
5.6.200.0130.07318.22
5.6.190.0130.05020.41
5.6.180.0430.05720.32
5.6.170.0230.03320.47
5.6.160.0070.08020.34
5.6.150.0030.08018.11
5.6.140.0030.06718.05
5.6.130.0100.07318.16
5.6.120.0070.06720.84
5.6.110.0070.07721.13
5.6.100.0070.04020.97
5.6.90.0070.06721.00
5.6.80.0070.07320.37
5.5.350.0130.04720.30
5.5.340.0100.07717.98
5.5.330.0070.06020.34
5.5.320.0300.06320.13
5.5.310.0130.04020.30
5.5.300.0030.03717.95
5.5.290.0000.04317.89
5.5.280.0100.04320.88
5.5.270.0000.10020.89
5.5.260.0130.05720.87
5.5.250.0170.07320.54
5.5.240.0170.04020.36
5.4.450.0730.06319.49
5.4.440.0900.06719.57
5.4.430.0070.06019.45
5.4.420.0630.00019.25
5.4.410.0630.00019.04
5.4.400.0630.00019.01
5.4.390.0600.00019.02
5.4.380.0900.00019.05
5.4.370.0630.00019.06
5.4.360.0700.00019.26
5.4.350.0730.00019.00
5.4.340.0090.03811.97
5.4.320.0070.04112.46
5.4.310.0060.03912.46
5.4.300.0110.04112.46
5.4.290.0070.04312.46
5.4.280.0090.03512.35
5.4.270.0090.04212.36
5.4.260.0060.04312.35
5.4.250.0070.03612.36
5.4.240.0110.03512.35
5.4.230.0090.03812.34
5.4.220.0100.03512.35
5.4.210.0060.03512.35
5.4.200.0070.04112.35
5.4.190.0060.03512.34
5.4.180.0040.03812.34
5.4.170.0040.03712.36
5.4.160.0060.03512.35
5.4.150.0040.04312.34
5.4.140.0080.03912.03
5.4.130.0040.03612.02
5.4.120.0060.03411.97
5.4.110.0060.04211.97
5.4.100.0070.03911.97
5.4.90.0070.03611.97
5.4.80.0080.03411.98
5.4.70.0040.03611.96
5.4.60.0120.03111.97
5.4.50.0080.03311.97
5.4.40.0030.03711.96
5.4.30.0100.03111.95
5.4.20.0020.04011.96
5.4.10.0050.04611.96
5.4.00.0090.03611.44
5.3.290.0060.04612.80
5.3.280.0050.03812.71
5.3.270.0080.04112.73
5.3.260.0080.03712.71
5.3.250.0060.03912.71
5.3.240.0090.03612.72
5.3.230.0030.04912.71
5.3.220.0070.03612.68
5.3.210.0120.03412.68
5.3.200.0050.03812.68
5.3.190.0080.03512.68
5.3.180.0040.03812.68
5.3.170.0080.03312.67
5.3.160.0040.03812.67
5.3.150.0060.04012.68
5.3.140.0080.03712.66
5.3.130.0050.04012.66
5.3.120.0050.03912.65
5.3.110.0080.03712.66
5.3.100.0080.03412.12
5.3.90.0070.03412.08
5.3.80.0030.03812.08
5.3.70.0070.03612.07
5.3.60.0070.03512.06
5.3.50.0100.03212.00
5.3.40.0080.03312.00
5.3.30.0070.03311.96
5.3.20.0090.03811.73
5.3.10.0090.03211.70
5.3.00.0090.03311.69
5.2.170.0040.0329.19
5.2.160.0030.0319.20
5.2.150.0040.0319.20
5.2.140.0050.0309.20
5.2.130.0050.0289.15
5.2.120.0050.0279.15
5.2.110.0040.0309.16
5.2.100.0080.0319.16
5.2.90.0020.0339.16
5.2.80.0050.0349.16
5.2.70.0070.0309.16
5.2.60.0060.0339.11
5.2.50.0060.0299.07
5.2.40.0050.0309.05
5.2.30.0040.0349.03
5.2.20.0040.0339.15
5.2.10.0040.0289.05
5.2.00.0030.0318.91
5.1.60.0050.0288.20
5.1.50.0050.0288.20
5.1.40.0030.0268.18
5.1.30.0040.0278.53
5.1.20.0040.0308.55
5.1.10.0040.0278.28
5.1.00.0040.0258.28
5.0.50.0070.0216.75
5.0.40.0040.0196.61
5.0.30.0040.0306.44
5.0.20.0040.0196.40
5.0.10.0020.0226.38
5.0.00.0030.0356.37
4.4.90.0040.0154.79
4.4.80.0020.0204.77
4.4.70.0020.0164.77
4.4.60.0030.0194.77
4.4.50.0030.0154.77
4.4.40.0030.0254.76
4.4.30.0030.0154.75
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0020.0254.78
4.3.110.0010.0174.69
4.3.100.0020.0164.68
4.3.90.0020.0144.67
4.3.80.0030.0274.66
4.3.70.0020.0154.65
4.3.60.0040.0184.66
4.3.50.0050.0184.65
4.3.40.0030.0254.62
4.3.30.0020.0203.42
4.3.20.0020.0183.40
4.3.10.0050.0143.25
4.3.00.0030.0207.33

preferences:
41.06 ms | 401 KiB | 5 Q