3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = '<blockquote class="instagram-media" data-instgrm-version="7" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"> <div style="padding:8px;"> <div style=" background:#F8F8F8; line-height:0; margin-top:40px; padding:50.0% 0; text-align:center; width:100%;"> <div style=" background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURczMzPf399fX1+bm5mzY9AMAAADiSURBVDjLvZXbEsMgCES5/P8/t9FuRVCRmU73JWlzosgSIIZURCjo/ad+EQJJB4Hv8BFt+IDpQoCx1wjOSBFhh2XssxEIYn3ulI/6MNReE07UIWJEv8UEOWDS88LY97kqyTliJKKtuYBbruAyVh5wOHiXmpi5we58Ek028czwyuQdLKPG1Bkb4NnM+VeAnfHqn1k4+GPT6uGQcvu2h2OVuIf/gWUFyy8OWEpdyZSa3aVCqpVoVvzZZ2VTnn2wU8qzVjDDetO90GSy9mVLqtgYSy231MxrY6I2gGqjrTY0L8fxCxfCBbhWrsYYAAAAAElFTkSuQmCC); display:block; height:44px; margin:0 auto -44px; position:relative; top:-22px; width:44px;"></div> </div> <a href="https://www.instagram.com/p/BWOJZQxleIF/" style=" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px; text-decoration:none;" target="_blank">Ryo Miyaichi Official 宮市亮さん(@ryo381)がシェアした投稿</a> - <time style=" font-family:Arial,sans-serif; font-size:14px; line-height:17px;" datetime="2017-07-06T21:58:23+00:00">2017 7月 6 2:58午後 PDT</time> <br /> </div> </blockquote> <script async="" defer="" src="//platform.instagram.com/en_US/embeds.js"></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" align="center">.*?\(\[\[embed-twitter\]\]\((https://twitter.com/[^/]+?/status/\d+)\)\)</blockquote>)!s', function ($matches) { return '[[embed-twitter]](' . trim($matches[2]) . ')'; }, $body); $body = preg_replace_callback('!(<blockquote class="twitter-.*?(\[\[embed-twitter\]\]\(https://twitter.com/[^/]+?/status/\d+\)).+?</blockquote>.+?twitter.com.+?</script>)!s', function ($matches) { return trim($matches[2]); }, $body); // InstagramのURLをembedに変換 $body = preg_replace_callback('!(https://www.instagram.com/p/[^/]+?/[\?a-zA-Z0-9_\-=]*)!s', function ($matches) { return '[[embed-instagram]](' . trim($matches[1]) . ')'; }, $body); $body = preg_replace_callback('!(<blockquote class="instagram-.*?(\[\[embed-instagram\]\]\(https://www.instagram.com/p/[^/]+?/[\?a-zA-Z0-9_\-=]*\)).+?</blockquote>.+?instagram.com.+?</script>)!s', function ($matches) { return 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.40.0060.01019.18
8.3.30.0120.00318.82
8.3.20.0080.00020.35
8.3.10.0000.00823.52
8.3.00.0040.00417.91
8.2.170.0070.00722.96
8.2.160.0100.00320.45
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.70
8.2.120.0050.00326.35
8.2.110.0030.00622.09
8.2.100.0040.00717.97
8.2.90.0080.00018.16
8.2.80.0030.00517.97
8.2.70.0050.00317.88
8.2.60.0040.00418.04
8.2.50.0030.00618.29
8.2.40.0000.00820.55
8.2.30.0000.00821.20
8.2.20.0070.00018.23
8.2.10.0030.00618.23
8.2.00.0000.00718.11
8.1.270.0080.00023.93
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00622.23
8.1.230.0080.00320.95
8.1.220.0000.00917.91
8.1.210.0040.00419.18
8.1.200.0030.00617.60
8.1.190.0030.00517.48
8.1.180.0000.00918.10
8.1.170.0090.00018.75
8.1.160.0050.00219.16
8.1.150.0040.00418.99
8.1.140.0040.00419.73
8.1.130.0030.00618.99
8.1.120.0000.00717.71
8.1.110.0040.00417.70
8.1.100.0040.00417.76
8.1.90.0060.00317.68
8.1.80.0040.00417.61
8.1.70.0000.00717.66
8.1.60.0100.00017.84
8.1.50.0060.00317.80
8.1.40.0040.00417.76
8.1.30.0030.00617.78
8.1.20.0050.00317.90
8.1.10.0030.00517.87
8.1.00.0020.00517.75
8.0.300.0000.00720.07
8.0.290.0060.00316.75
8.0.280.0000.00718.55
8.0.270.0040.00417.34
8.0.260.0030.00317.08
8.0.250.0030.00317.23
8.0.240.0080.00017.21
8.0.230.0000.00717.05
8.0.220.0000.00717.14
8.0.210.0100.00217.08
8.0.200.0000.00717.06
8.0.190.0080.00017.09
8.0.180.0000.00817.03
8.0.170.0000.00817.03
8.0.160.0040.00417.12
8.0.150.0030.00517.03
8.0.140.0050.00317.04
8.0.130.0000.00613.61
8.0.120.0000.00917.07
8.0.110.0040.00417.23
8.0.100.0000.00717.00
8.0.90.0080.00017.17
8.0.80.0090.01317.13
8.0.70.0070.00016.97
8.0.60.0040.00416.92
8.0.50.0030.00517.11
8.0.30.0060.01017.50
8.0.20.0100.01017.46
8.0.10.0000.00817.13
8.0.00.0090.00917.18
7.4.330.0000.00515.55
7.4.320.0000.00716.87
7.4.300.0030.00316.90
7.4.290.0000.00916.80
7.4.280.0000.00816.90
7.4.270.0030.00516.85
7.4.260.0050.00316.84
7.4.250.0000.00716.66
7.4.240.0000.00816.82
7.4.230.0000.00816.83
7.4.220.0060.01316.71
7.4.210.0080.00916.90
7.4.200.0030.00316.93
7.4.160.0100.00816.80
7.4.150.0070.01117.40
7.4.140.0090.01217.86
7.4.130.0090.00916.73
7.4.120.0100.01216.75
7.4.110.0100.01316.86
7.4.100.0130.00316.57
7.4.90.0040.01516.63
7.4.80.0170.00019.39
7.4.70.0060.00916.80
7.4.60.0090.00916.82
7.4.50.0100.00316.60
7.4.40.0140.00716.76
7.4.30.0150.00316.76
7.4.00.0090.00815.24
7.3.330.0050.00013.43
7.3.320.0000.00513.48
7.3.310.0000.00816.49
7.3.300.0040.00416.46
7.3.290.0040.00416.54
7.3.280.0100.00716.50
7.3.270.0100.00717.40
7.3.260.0070.01016.70
7.3.250.0130.00816.75
7.3.240.0130.00816.73
7.3.230.0130.01016.49
7.3.210.0070.01117.00
7.3.200.0100.00616.75
7.3.190.0080.00816.57
7.3.180.0040.01516.66
7.3.170.0120.00416.74
7.3.160.0090.01516.77
7.3.120.0070.01014.97
7.3.110.0060.01215.14
7.3.100.0060.01015.06
7.3.90.0070.00815.00
7.3.80.0050.00615.19
7.3.70.0000.01514.92
7.3.60.0080.00715.10
7.3.50.0110.00415.13
7.3.40.0020.01215.08
7.3.30.0040.00915.00
7.3.20.0040.01016.96
7.3.10.0100.00416.92
7.3.00.0030.01016.86
7.2.330.0080.01117.07
7.2.320.0090.00916.90
7.2.310.0100.01316.66
7.2.300.0070.01416.95
7.2.290.0090.01016.80
7.2.250.0070.01015.34
7.2.240.0110.00815.31
7.2.230.0100.00715.31
7.2.220.0030.01215.04
7.2.210.0030.01315.41
7.2.200.0000.01315.36
7.2.190.0060.01015.07
7.2.180.0030.00615.20
7.2.170.0050.01215.34
7.2.80.0040.01116.89
7.2.60.0040.01516.82
7.2.00.0120.00319.35
7.1.330.0090.00416.11
7.1.320.0060.00415.99
7.1.310.0080.00616.07
7.1.300.0070.00815.89
7.1.290.0080.00515.79
7.1.280.0030.00915.94
7.1.270.0040.00916.14
7.1.260.0030.01215.67
7.1.200.0030.00615.97
7.1.100.0040.01318.00
7.1.70.0060.00717.32
7.1.60.0210.00735.05
7.1.50.0120.01534.40
7.1.40.0110.01434.32
7.1.30.0160.01034.24
7.1.20.0130.01334.50
7.1.10.0100.00316.89
7.1.00.0030.01116.91
7.0.200.0030.00916.91
7.0.190.0070.01316.84
7.0.180.0070.00716.38
7.0.170.0030.01116.53
7.0.160.0040.01216.62
7.0.150.0080.00516.38
7.0.140.0000.01216.64
7.0.130.0080.00516.88
7.0.120.0030.01316.67
7.0.110.0030.01016.33
7.0.100.0000.01416.60
7.0.90.0060.00916.49
7.0.80.0080.00816.59
7.0.70.0060.01216.61
7.0.60.0070.01116.38
7.0.50.0050.01316.62
7.0.40.0090.01216.74
7.0.30.0130.00916.58
7.0.20.0060.01616.68
7.0.10.0050.01716.85
7.0.00.0100.01016.51

preferences:
48.05 ms | 400 KiB | 5 Q