3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = '<blockquote class="twitter-tweet" data-lang="ja"><p lang="en" dir="ltr">Thank you ! ~ that is all :) <a href="https://t.co/4evflUT84g">pic.twitter.com/4evflUT84g</a></p>— Chicago Police (@Chicago_Police) <a href="https://twitter.com/Chicago_Police/status/877727536125419520">2017年6月22日</a></blockquote><script async="" src="//platform.twitter.com/widgets.js" charset="utf-8"></script>'; $body = preg_replace_callback('!(https://twitter.com/[^/]+?/status/\d+)!s', function ($matches) { return '[[embed-twitter]](' . trim($matches[1]) . ')'; }, $body); $body = preg_replace_callback('!(<blockquote class="twitter-tweet" data-lang="ja">.*?(\[\[embed-twitter\]\]\((https://twitter.com/[^/]+?/status/\d+)\))</blockquote>)!s', function ($matches) { return '[[embed-twitter]](' . trim($matches[2]) . ')'; }, $body); echo $body; ?>

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.0090.00618.56
8.3.50.0150.00616.66
8.3.40.0140.00318.96
8.3.30.0110.00718.96
8.3.20.0050.00320.76
8.3.10.0030.00521.89
8.3.00.0030.00519.78
8.2.180.0100.00716.63
8.2.170.0070.01322.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0070.00020.49
8.2.120.0030.00626.35
8.2.110.0030.00721.12
8.2.100.0090.00318.04
8.2.90.0030.00518.32
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0080.00018.05
8.2.50.0000.00918.16
8.2.40.0040.00420.54
8.2.30.0040.00419.36
8.2.20.0000.00718.15
8.2.10.0080.00018.26
8.2.00.0040.00418.15
8.1.280.0150.00425.92
8.1.270.0000.00723.91
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.97
8.1.230.0030.00920.89
8.1.220.0040.00417.79
8.1.210.0030.00518.82
8.1.200.0000.00917.50
8.1.190.0030.00617.36
8.1.180.0000.00718.10
8.1.170.0040.00418.75
8.1.160.0000.00719.06
8.1.150.0030.00518.86
8.1.140.0000.00919.68
8.1.130.0030.00319.00
8.1.120.0030.00317.64
8.1.110.0050.00217.62
8.1.100.0050.00317.56
8.1.90.0030.00917.64
8.1.80.0030.00517.70
8.1.70.0040.00417.64
8.1.60.0030.00617.77
8.1.50.0000.00817.73
8.1.40.0000.01017.71
8.1.30.0000.00817.83
8.1.20.0050.00317.67
8.1.10.0030.00517.66
8.1.00.0000.00817.62
8.0.300.0000.00820.22
8.0.290.0040.00416.88
8.0.280.0000.00718.55
8.0.270.0030.00617.33
8.0.260.0000.00717.07
8.0.250.0000.00717.12
8.0.240.0080.00017.04
8.0.230.0040.00417.17
8.0.220.0070.00017.00
8.0.210.0000.00717.00
8.0.200.0000.00617.05
8.0.190.0060.00317.05
8.0.180.0040.00417.15
8.0.170.0040.00417.13
8.0.160.0000.00816.95
8.0.150.0040.00416.91
8.0.140.0000.00817.09
8.0.130.0000.00813.42
8.0.120.0040.00417.02
8.0.110.0000.00817.04
8.0.100.0080.00017.03
8.0.90.0000.00717.08
8.0.80.0100.01017.09
8.0.70.0070.00017.12
8.0.60.0030.00516.95
8.0.50.0050.00217.00
8.0.30.0100.00917.24
8.0.20.0150.00717.40
8.0.10.0040.00417.27
8.0.00.0090.00916.92
7.4.330.0000.00515.55
7.4.320.0060.00016.86
7.4.300.0030.00316.75
7.4.290.0080.00316.84
7.4.280.0000.00716.75
7.4.270.0040.00416.82
7.4.260.0000.00716.78
7.4.250.0030.00616.74
7.4.240.0000.00716.81
7.4.230.0000.00716.75
7.4.220.0120.00916.85
7.4.210.0030.01316.85
7.4.200.0070.00016.88
7.4.160.0070.01016.76
7.4.150.0140.00317.40
7.4.140.0060.01217.86
7.4.130.0110.00716.83
7.4.120.0080.01316.83
7.4.110.0100.01016.93
7.4.100.0080.00816.68
7.4.90.0090.00816.57
7.4.80.0080.00819.39
7.4.70.0180.00016.64
7.4.60.0030.01316.72
7.4.50.0060.01016.50
7.4.40.0060.01016.73
7.4.30.0070.01016.73
7.4.00.0100.00715.22
7.3.330.0000.00513.40
7.3.320.0000.00713.32
7.3.310.0070.00016.48
7.3.300.0030.00316.50
7.3.290.0000.00716.48
7.3.280.0110.00616.45
7.3.270.0150.00417.40
7.3.260.0070.00916.76
7.3.250.0070.01416.56
7.3.240.0130.00716.72
7.3.230.0060.01216.63
7.3.210.0120.00816.57
7.3.200.0080.00816.77
7.3.190.0030.01316.75
7.3.180.0110.00516.58
7.3.170.0070.01016.49
7.3.160.0120.00416.68
7.3.10.0030.01016.73
7.3.00.0030.01016.94
7.2.330.0090.00916.80
7.2.320.0110.00716.93
7.2.310.0170.00716.86
7.2.300.0130.00916.93
7.2.290.0070.01516.87
7.2.130.0090.00317.20
7.2.120.0070.00717.25
7.2.110.0040.00417.05
7.2.100.0070.01117.25
7.2.90.0000.01317.34
7.2.80.0080.00816.96
7.2.70.0100.00017.19
7.2.60.0020.01017.04
7.2.50.0030.01017.24
7.2.40.0030.00517.09
7.2.30.0040.01117.32
7.2.20.0000.00916.98
7.2.10.0060.01017.08
7.2.00.0050.00918.45
7.1.250.0060.00616.11
7.1.200.0330.00915.44
7.1.100.0090.00318.54
7.1.70.0030.00617.21
7.1.60.3170.01733.16
7.1.50.3030.01033.15
7.1.40.2470.01732.89
7.1.30.2470.00332.98
7.1.20.1600.01032.95
7.1.10.3030.02014.92
7.1.00.2800.00715.34
7.0.200.3070.00715.13
7.0.190.2900.00715.07
7.0.180.1970.00314.69
7.0.170.4000.01714.54
7.0.160.2300.00314.55
7.0.150.1770.01314.64
7.0.140.2630.00714.69
7.0.130.1930.01315.07
7.0.120.2230.01714.81
7.0.110.2330.01014.75
7.0.100.2430.02014.73
7.0.90.1770.01314.66
7.0.80.1670.01714.70
7.0.70.2030.01714.80
7.0.60.1630.01314.61
7.0.50.2100.01314.76
7.0.40.1430.00714.85
7.0.30.1470.00714.76
7.0.20.1530.01314.66
7.0.10.1430.00314.74
7.0.00.2170.00314.69

preferences:
31.22 ms | 400 KiB | 5 Q