3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string= 'Het is vandaag vrij zonnig in Los Angeles { "ScriptUrl":"http://s7.addthis.com/js/300/addthis_widget.js#pubid=weeronline", "addthis_config": { "pubid":"weeronline", "ui_language":"nl", "data_ga_property":"UA-3047268-1", "data_track_clickback":"true", "data_ga_social":"true" } }'; echo substr($string, 0, strpos($string, "{"));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Het is vandaag vrij zonnig in Los Angeles