3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "http://www.domain.com/map.aspx?isTrafficAlert=true&lat=51.529900&lon=-0.785384"; parse_str(parse_url($str, PHP_URL_QUERY), $latlon); echo $latlon['lat'], "\n"; echo $latlon['lon'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CGYUI
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str, !1 = $latlon
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.domain.com%2Fmap.aspx%3FisTrafficAlert%3Dtrue%26lat%3D51.529900%26lon%3D-0.785384'
    5     1        INIT_FCALL                                               'parse_str'
          2        INIT_FCALL                                               'parse_url'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 6
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
    6     9        FETCH_DIM_R                                      ~5      !1, 'lat'
         10        ECHO                                                     ~5
         11        ECHO                                                     '%0A'
    7    12        FETCH_DIM_R                                      ~6      !1, 'lon'
         13        ECHO                                                     ~6
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.09 ms | 1069 KiB | 15 Q