3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = ' <!doctype html> <!--[if lt IE 7]> <html xmlns="http://www.w3.org/1999/xhtml" class="no-js ie6 oldie" xml:lang="en" lang="en"> <![endif]--> <!--[if IE 7]> <html xmlns="http://www.w3.org/1999/xhtml" class="no-js ie7 oldie" xml:lang="en" lang="en"> <![endif]--> <!--[if IE 8]> <html xmlns="http://www.w3.org/1999/xhtml" class="no-js ie8 oldie" xml:lang="en" lang="en"> <![endif]--> <!-- Consider adding an manifest.appcache: h5bp.com/d/Offline --> <!--[if gt IE 8]><!--> <html xmlns="http://www.w3.org/1999/xhtml" class="no-js" xml:lang="en" lang="en"> <body> <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ player = $("#jquery_jplayer_1").jPlayer({ swfPath: "/scripts/jplayer/jplayer", solution: "html, flash", wmode: "window", useStateClassSkin: true, autoBlur: false, smoothPlayBar: true, keyEnabled: true, remainingDuration: true, toggleDuration: true, ready: function (event) { $(this).jPlayer("setMedia", { title: "", mp3: "http://example.mp3", }); } }); }); //]]> </script> </body></html>'; $Pattern = '/((https?:\/\/)?(\w+?\.)+?(\w+?\/)+\w+?.(mp3|ogg))/im'; preg_match_all($Pattern,htmlentities($html),$Matches); var_dump($Matches);

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.5.10.0140.00616.83
8.5.00.0120.01019.92
8.4.150.0020.00014.05
8.4.140.0160.00517.37
8.4.130.0100.00618.14
8.4.120.0080.01220.57
8.4.110.0120.00920.76
8.4.100.0100.01217.94
8.4.90.0120.00920.35
8.4.80.0110.00920.53
8.4.70.0120.00819.17
8.4.60.0070.01420.38
8.4.50.0120.00818.48
8.4.40.0030.00619.27
8.4.30.0100.01017.63
8.4.20.0040.00818.80
8.4.10.0050.00517.70
8.3.280.0130.00820.91
8.3.270.0110.01316.50
8.3.260.0140.00616.49
8.3.250.0110.00718.75
8.3.240.0100.00816.79
8.3.230.0130.00516.50
8.3.220.0090.00718.63
8.3.210.0050.00316.62
8.3.200.0060.00316.71
8.3.190.0110.00716.90
8.3.180.0120.00718.77
8.3.170.0130.00317.18
8.3.160.0080.00018.73
8.3.150.0060.00916.91
8.3.140.0090.00916.70
8.3.130.0000.00816.86
8.3.120.0110.00018.82
8.3.110.0100.01016.61
8.3.100.0030.00624.06
8.3.90.0000.00826.77
8.3.80.0000.00917.97
8.3.70.0110.01116.50
8.3.60.0040.01518.30
8.3.50.0160.00218.32
8.3.40.0090.00618.96
8.3.30.0120.00318.67
8.3.20.0090.00020.60
8.3.10.0040.00421.73
8.3.00.0000.00723.61
8.2.290.0100.00917.18
8.2.280.0100.00520.05
8.2.270.0160.00316.85
8.2.260.0030.00617.08
8.2.250.0040.00418.41
8.2.240.0130.00317.12
8.2.230.0130.00720.94
8.2.220.0050.00337.54
8.2.210.0110.00726.77
8.2.200.0030.00618.54
8.2.190.0040.01116.63
8.2.180.0070.01016.75
8.2.170.0120.00322.96
8.2.160.0110.00422.24
8.2.150.0000.00724.18
8.2.140.0000.00724.66
8.2.130.0080.00017.72
8.2.120.0000.00826.35
8.2.110.0030.00722.38
8.2.100.0060.00617.96
8.2.90.0040.00417.88
8.2.80.0080.00018.85
8.2.70.0000.00917.63
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0070.00018.10
8.2.30.0000.00817.96
8.2.20.0040.00418.00
8.2.10.0050.00319.13
8.2.00.0000.00718.07
8.1.330.0100.00916.21
8.1.320.0130.00716.34
8.1.310.0040.00416.68
8.1.300.0060.00316.09
8.1.290.0060.00330.84
8.1.280.0110.00325.92
8.1.270.0030.00718.88
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0030.00620.98
8.1.230.0040.00822.20
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0030.00618.67
8.1.160.0040.00418.75
8.1.150.0020.00518.75
8.1.140.0000.00718.75
8.1.130.0050.00220.10
8.1.120.0040.00417.43
8.1.110.0020.00517.44
8.1.100.0040.00417.51
8.1.90.0030.00617.55
8.1.80.0000.00817.36
8.1.70.0090.00017.53
8.1.60.0080.00017.57
8.1.50.0030.00617.52
8.1.40.0030.00517.49
8.1.30.0040.00817.73
8.1.20.0040.00417.73
8.1.10.0070.00017.54
8.1.00.0030.00617.48
8.0.300.0000.00719.78
8.0.290.0080.00016.75
8.0.280.0000.00818.27
8.0.270.0040.00416.88
8.0.260.0030.00318.41
8.0.250.0000.00717.02
8.0.240.0000.00817.07
8.0.230.0030.00317.05
8.0.220.0050.00317.01
8.0.210.0030.00316.88
8.0.200.0000.00717.07
8.0.190.0080.00017.05
8.0.180.0000.00816.89
8.0.170.0000.00817.00
8.0.160.0040.00416.95
8.0.150.0040.00416.96
8.0.140.0040.00416.98
8.0.130.0000.00613.43
8.0.120.0070.00016.93
8.0.110.0050.00216.95
8.0.100.0000.00816.91
8.0.90.0040.00417.01
8.0.80.0110.00516.95
8.0.70.0030.00516.83
8.0.60.0070.00016.86
8.0.50.0000.00817.08
8.0.30.0090.00717.07
8.0.20.0030.01717.17
8.0.10.0050.00317.13
8.0.00.0120.01116.95
7.4.330.0050.00015.55
7.4.320.0050.00216.79
7.4.300.0060.00016.64
7.4.290.0030.00316.54
7.4.280.0000.00716.76
7.4.270.0000.00816.55
7.4.260.0040.00416.62
7.4.250.0030.00316.61
7.4.240.0030.00616.70
7.4.230.0040.00316.55
7.4.220.0050.00316.77
7.4.210.0050.00916.68
7.4.200.0000.00716.77
7.4.160.0080.00916.66
7.4.140.0100.01117.86
7.4.130.0000.01816.61
7.4.120.0100.00716.40
7.4.110.0110.00616.51
7.4.100.0100.01316.64
7.4.90.0100.00716.53
7.4.80.0080.01319.39
7.4.70.0120.00516.44
7.4.60.0050.01116.48
7.4.50.0140.00416.36
7.4.40.0080.00816.50
7.4.00.0030.01314.96
7.3.330.0050.00013.26
7.3.320.0060.00013.13
7.3.310.0000.00716.36
7.3.300.0070.00016.29
7.3.290.0000.00716.32
7.3.280.0050.01116.26
7.3.260.0100.01116.34
7.3.240.0120.00816.36
7.3.230.0180.00016.31
7.3.210.0140.00916.57
7.3.200.0080.00916.50
7.3.190.0090.00916.64
7.3.180.0100.00616.60
7.3.170.0130.00916.30
7.3.160.0100.00916.43
7.3.10.4770.00714.61
7.3.00.2490.00314.59
7.2.330.0100.01016.59
7.2.320.0030.01516.72
7.2.310.0080.00816.62
7.2.300.0150.00916.60
7.2.290.0220.00316.50
7.2.130.0710.00515.12
7.2.120.1200.00714.85
7.2.110.2420.00414.85
7.2.100.3200.01214.87
7.2.90.2780.00614.73
7.2.80.2690.00514.64
7.2.70.2390.00614.86
7.2.60.3070.00614.82
7.2.50.7020.00515.02
7.2.40.2540.00714.86
7.2.30.3700.00914.93
7.2.20.1070.01015.06
7.2.10.6600.01314.84
7.2.00.9480.00315.03
7.1.250.1180.00413.84

preferences:
152.77 ms | 403 KiB | 5 Q