3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = '(-6.2811957386588855, 106.70141951079609),(-6.281142416506361, 106.70432702536823),(-6.2781776962328815, 106.70438066954853),(-6.2781776962328815, 106.70136586661579)'; preg_match_all('/\(([0-9\-\s,.]+)\)/', $value, $matches); array_walk($matches[1], function(&$val) { $val = explode(',', $val); }); $coordinates = $matches[1]; print_r($coordinates);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ehSQr
function name:  (null)
number of ops:  18
compiled vars:  !0 = $value, !1 = $matches, !2 = $coordinates
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%28-6.2811957386588855%2C+106.70141951079609%29%2C%28-6.281142416506361%2C+106.70432702536823%29%2C%28-6.2781776962328815%2C+106.70438066954853%29%2C%28-6.2781776962328815%2C+106.70136586661579%29'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5C%28%28%5B0-9%5C-%5Cs%2C.%5D%2B%29%5C%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'array_walk'
          7        FETCH_DIM_W                                      $5      !1, 1
          8        SEND_REF                                                 $5
          9        DECLARE_LAMBDA_FUNCTION                          ~6      [0]
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
    6    12        FETCH_DIM_R                                      ~8      !1, 1
         13        ASSIGN                                                   !2, ~8
    7    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ehSQr
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
          6      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
211.22 ms | 1009 KiB | 17 Q