3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '{"update_id":982799465,"message":{"message_id":229,"from":{"id":89093089,"first_name":"Yoily","username":"YoilyL"},"chat":{"id":89093089,"first_name":"Yoily","username":"YoilyL","type":"private"},"date":1476577856,"text":"The Accountant (2016)\n\u200b\u200b128min IMDB \u25b6\ufe0f Trailer\u2008\ud83d\udcfd Watch\nDirector: Gavin OConnor\nActors: Anna Kendrick, Ben Affleck, Jon Bernthal, J.K. Simmons\n\nAs a math savant uncooks the books for a new client, the Treasury Department closes in on his activities and the body count s\u2026\n\n\ud83c\udf7f Find movie theatres near you and check showtime with @popcornbot","entities":[{"type":"bold","offset":0,"length":21},{"type":"text_link","offset":22,"length":2,"url":"https:\/\/images-na.ssl-images-amazon.com\/images\/M\/MV5BNDc5Mzg2NTYxNV5BMl5BanBnXkFtZTgwMjQ2ODAwOTE@._V1_UY1200_CR90,0,630,1200_AL_.jpg"},{"type":"italic","offset":24,"length":6},{"type":"text_link","offset":31,"length":4,"url":"http:\/\/www.imdb.com\/title\/tt2140479\/"},{"type":"text_link","offset":39,"length":7,"url":"http:\/\/imdb.com\/video\/imdb\/vi2433726233\/imdb\/embed?autoplay=true&format=720p"},{"type":"text_link","offset":50,"length":5,"url":"https:\/\/jdtnt.co\/r\/2140479"},{"type":"text_link","offset":66,"length":14,"url":"http:\/\/imdb.com\/name\/nm0640334"},{"type":"text_link","offset":89,"length":13,"url":"http:\/\/imdb.com\/name\/nm0447695"},{"type":"text_link","offset":104,"length":11,"url":"http:\/\/imdb.com\/name\/nm0000255"},{"type":"text_link","offset":117,"length":12,"url":"http:\/\/imdb.com\/name\/nm1256532"},{"type":"text_link","offset":131,"length":12,"url":"http:\/\/imdb.com\/name\/nm0799777"},{"type":"mention","offset":329,"length":11}]}}'; $match = stripos($text, 'imdb.com\/title\/tt'); if ($match !== false ){ $imdb = substr($match ,$match+18, 9) echo $imdb;}

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)
7.0.120.0130.05320.25
7.0.110.0130.06020.26
7.0.100.0130.06320.23
7.0.90.0100.06020.34
7.0.80.0170.05720.19
7.0.70.0330.05720.29
7.0.60.0370.08720.20
7.0.50.0300.06020.32
7.0.40.0370.05320.40
7.0.30.0430.04720.34
7.0.20.0330.06020.25
7.0.10.0400.05020.30
7.0.00.0370.05320.24
5.6.260.0100.05720.91
5.6.250.0270.04321.10
5.6.240.0100.06721.03
5.6.230.0070.06321.02
5.6.220.0130.05320.95
5.6.210.0170.06020.95
5.6.200.0100.06020.87
5.6.190.0130.05721.03
5.6.180.0030.06321.04
5.6.170.0130.05020.75
5.6.160.0070.06020.92
5.6.150.0000.06721.09
5.6.140.0070.06021.04
5.6.130.0030.06021.02
5.6.120.0070.06020.96
5.6.110.0100.05720.98
5.6.100.0270.04321.07
5.6.90.0070.05720.92
5.6.80.0030.05720.21
5.6.70.0100.05320.38
5.6.60.0130.05320.39
5.6.50.0070.06020.37
5.6.40.0030.06720.29
5.6.30.0100.05320.36
5.6.20.0070.06020.33
5.6.10.0100.05020.34
5.6.00.0130.04720.17

preferences:
133.28 ms | 1446 KiB | 7 Q