3v4l.org

run code in 300+ PHP versions simultaneously
<?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, "{"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0FAZa
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Het+is+vandaag+vrij+zonnig+in+Los+Angeles+%7B+%22ScriptUrl%22%3A%22http%3A%2F%2Fs7.addthis.com%2Fjs%2F300%2Faddthis_widget.js%23pubid%3Dweeronline%22%2C+%22addthis_config%22%3A+%7B+%22pubid%22%3A%22weeronline%22%2C+%22ui_language%22%3A%22nl%22%2C+%22data_ga_property%22%3A%22UA-3047268-1%22%2C+%22data_track_clickback%22%3A%22true%22%2C+%22data_ga_social%22%3A%22true%22+%7D+%7D'
    5     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        INIT_FCALL                                               'strpos'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 '%7B'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                         $3      
         10        ECHO                                                     $3
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.37 ms | 1394 KiB | 17 Q