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;}
Output for 5.6.0 - 5.6.26, 7.0.0 - 7.0.12
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/f5ruc on line 7
Process exited with code 255.

preferences:
151.22 ms | 1457 KiB | 7 Q