3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '(-6.2811957386588855, 106.70141951079609),(-6.281142416506361, 106.70432702536823),(-6.2781776962328815, 106.70438066954853),(-6.2781776962328815, 106.70136586661579)'; foreach(explode('),(',trim($string,'()')) as $single_array) { $sub_array= array(); foreach(explode(',',$single_array) as $sbs_array) { $sub_array[] = $sbs_array; } $result[] = $sub_array; } print_r ($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 25
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 25
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 21
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/6HEAG
function name:  (null)
number of ops:  30
compiled vars:  !0 = $string, !1 = $single_array, !2 = $sub_array, !3 = $sbs_array, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     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'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%29%2C%28'
          3        INIT_FCALL                                               'trim'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 '%28%29'
          6        DO_ICALL                                         $6      
          7        SEND_VAR                                                 $6
          8        DO_ICALL                                         $7      
          9      > FE_RESET_R                                       $8      $7, ->25
         10    > > FE_FETCH_R                                               $8, !1, ->25
    5    11    >   ASSIGN                                                   !2, <array>
    6    12        INIT_FCALL                                               'explode'
         13        SEND_VAL                                                 '%2C'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $10     
         16      > FE_RESET_R                                       $11     $10, ->21
         17    > > FE_FETCH_R                                               $11, !3, ->21
    8    18    >   ASSIGN_DIM                                               !2
         19        OP_DATA                                                  !3
    6    20      > JMP                                                      ->17
         21    >   FE_FREE                                                  $11
   10    22        ASSIGN_DIM                                               !4
         23        OP_DATA                                                  !2
    3    24      > JMP                                                      ->10
         25    >   FE_FREE                                                  $8
   12    26        INIT_FCALL                                               'print_r'
         27        SEND_VAR                                                 !4
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.3 ms | 1008 KiB | 16 Q