3v4l.org

run code in 300+ PHP versions simultaneously
<?php $coordinates = "9.499819 123.920318,9.490845 123.916563,9.484644 123.922292,9.49148 123.931519,9.499755 123.925683,9.499819 123.920318"; foreach (explode(',', $coordinates) as $i => $latLng) { sscanf($latLng, '%f %f', $result[$i]['lat'], $result[$i]['lng']); }; var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 19
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 19
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/MNjeC
function name:  (null)
number of ops:  24
compiled vars:  !0 = $coordinates, !1 = $latLng, !2 = $i, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '9.499819+123.920318%2C9.490845+123.916563%2C9.484644+123.922292%2C9.49148+123.931519%2C9.499755+123.925683%2C9.499819+123.920318'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5      > FE_RESET_R                                       $6      $5, ->19
          6    > > FE_FETCH_R                                       ~7      $6, !1, ->19
          7    >   ASSIGN                                                   !2, ~7
    6     8        INIT_FCALL                                               'sscanf'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 '%25f+%25f'
         11        FETCH_DIM_W                                      $9      !3, !2
         12        FETCH_DIM_W                                      $10     $9, 'lat'
         13        SEND_REF                                                 $10
         14        FETCH_DIM_W                                      $11     !3, !2
         15        FETCH_DIM_W                                      $12     $11, 'lng'
         16        SEND_REF                                                 $12
         17        DO_ICALL                                                 
    5    18      > JMP                                                      ->6
         19    >   FE_FREE                                                  $6
    8    20        INIT_FCALL                                               'var_export'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
291.75 ms | 1012 KiB | 16 Q