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); 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.70.0110.00718.55
8.3.60.0070.01118.68
8.3.50.0130.00716.66
8.3.40.0150.00318.88
8.3.30.0150.00018.87
8.3.20.0080.00020.33
8.3.10.0040.00423.43
8.3.00.0000.00817.97
8.2.180.0110.00716.61
8.2.170.0110.00422.96
8.2.160.0070.00720.70
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00020.65
8.2.120.0040.00426.35
8.2.110.0070.00322.38
8.2.100.0080.00417.97
8.2.90.0030.00519.34
8.2.80.0040.00418.05
8.2.70.0090.00018.00
8.2.60.0000.00818.17
8.2.50.0030.00518.10
8.2.40.0000.00822.27
8.2.30.0090.00021.12
8.2.20.0000.00718.21
8.2.10.0040.00418.21
8.2.00.0000.00718.34
8.1.280.0040.01125.92
8.1.270.0050.00323.79
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0090.00023.96
8.1.230.0110.00017.95
8.1.220.0030.00617.89
8.1.210.0030.00618.77
8.1.200.0000.00917.49
8.1.190.0030.00617.50
8.1.180.0080.00018.10
8.1.170.0090.00018.89
8.1.160.0040.00419.14
8.1.150.0070.00019.04
8.1.140.0040.00419.61
8.1.130.0100.00019.04
8.1.120.0040.00417.60
8.1.110.0030.00517.59
8.1.100.0000.00717.63
8.1.90.0080.00017.68
8.1.80.0050.00317.49
8.1.70.0030.00317.55
8.1.60.0040.00817.69
8.1.50.0030.00517.70
8.1.40.0060.00317.75
8.1.30.0030.00717.93
8.1.20.0050.00317.88
8.1.10.0030.00517.79
8.1.00.0030.00617.71
8.0.300.0080.00018.77
8.0.290.0050.00316.88
8.0.280.0030.00318.57
8.0.270.0000.00717.44
8.0.260.0000.00717.04
8.0.250.0030.00317.16
8.0.240.0040.00417.21
8.0.230.0000.00717.21
8.0.220.0080.00017.19
8.0.210.0030.00617.09
8.0.200.0000.00717.20
8.0.190.0040.00417.04
8.0.180.0000.00817.13
8.0.170.0000.00817.19
8.0.160.0050.00317.00
8.0.150.0040.00417.02
8.0.140.0080.00017.10
8.0.130.0030.00313.57
8.0.120.0000.00817.00
8.0.110.0050.00216.90
8.0.100.0040.00416.99
8.0.90.0000.00717.08
8.0.80.0070.01117.09
8.0.70.0050.00217.16
8.0.60.0050.00317.15
8.0.50.0040.00417.05
8.0.30.0100.00917.20
8.0.20.0110.00917.42
8.0.10.0050.00317.11
8.0.00.0100.00716.97
7.4.330.0030.00315.55
7.4.320.0030.00316.90
7.4.300.0000.00616.88
7.4.290.0050.00816.86
7.4.280.0110.00016.76
7.4.270.0000.00816.77
7.4.260.0080.00016.81
7.4.250.0040.00416.74
7.4.240.0060.00316.70
7.4.230.0000.00816.88
7.4.220.0170.01016.90
7.4.210.0110.01116.82
7.4.200.0030.00516.86
7.4.160.0070.01116.69
7.4.150.0070.01117.40
7.4.140.0120.00817.86
7.4.130.0150.00916.69
7.4.120.0090.01116.71
7.4.110.0140.00416.79
7.4.100.0140.00416.69
7.4.90.0110.00616.72
7.4.80.0130.01019.39
7.4.70.0100.00716.84
7.4.60.0080.01216.74
7.4.50.0030.01016.79
7.4.40.0110.01416.71
7.4.30.0130.00316.65
7.4.00.0060.01015.16
7.3.330.0030.00313.41
7.3.320.0030.00313.53
7.3.310.0040.00316.55
7.3.300.0070.00016.48
7.3.290.0090.00816.49
7.3.280.0100.00716.46
7.3.270.0130.00717.40
7.3.260.0090.00816.73
7.3.250.0120.01116.66
7.3.240.0080.00916.65
7.3.230.0090.01316.63
7.3.210.0170.00316.58
7.3.200.0080.00816.62
7.3.190.0110.00516.52
7.3.180.0030.01316.55
7.3.170.0120.00416.49
7.3.160.0070.01016.92
7.2.330.0130.00617.02
7.2.320.0070.01016.96
7.2.310.0160.00416.94
7.2.300.0100.01316.95
7.2.290.0120.00616.94
7.2.60.0030.01017.23
7.2.00.0070.00719.55
7.1.200.0040.01115.93
7.1.100.0130.00618.46
7.1.70.0000.01717.07
7.1.60.0200.01035.27
7.1.50.0120.01535.13
7.1.40.0210.01734.59
7.1.30.0210.01834.85
7.1.20.0250.01634.91
7.1.10.0030.01416.73
7.1.00.0070.01116.97
7.0.200.0120.00316.86
7.0.190.0030.01217.00
7.0.180.0110.00816.50
7.0.170.0030.01616.52
7.0.160.0070.01316.49
7.0.150.0070.00716.43
7.0.140.0120.00616.57
7.0.130.0000.01816.96
7.0.120.0030.01216.82
7.0.110.0030.01316.62
7.0.100.0060.01116.58
7.0.90.0100.00516.30
7.0.80.0030.01316.54
7.0.70.0040.01316.38
7.0.60.0080.01016.11
7.0.50.0000.01416.61
7.0.40.0060.00916.83
7.0.30.0090.00616.59
7.0.20.0030.01316.56
7.0.10.0130.00416.54
7.0.00.0080.00916.66

preferences:
49.25 ms | 401 KiB | 5 Q