3v4l.org

run code in 500+ 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 = 7, Position 2 = 22
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 22
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 18
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/6HEAG
function name:  (null)
number of ops:  27
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        FRAMELESS_ICALL_2                trim                ~6      !0, '%28%29'
          4        SEND_VAL                                                     ~6
          5        DO_ICALL                                             $7      
          6      > FE_RESET_R                                           $8      $7, ->22
          7    > > FE_FETCH_R                                                   $8, !1, ->22
    5     8    >   ASSIGN                                                       !2, <array>
    6     9        INIT_FCALL                                                   'explode'
         10        SEND_VAL                                                     '%2C'
         11        SEND_VAR                                                     !1
         12        DO_ICALL                                             $10     
         13      > FE_RESET_R                                           $11     $10, ->18
         14    > > FE_FETCH_R                                                   $11, !3, ->18
    8    15    >   ASSIGN_DIM                                                   !2
         16        OP_DATA                                                      !3
    6    17      > JMP                                                          ->14
         18    >   FE_FREE                                                      $11
   10    19        ASSIGN_DIM                                                   !4
         20        OP_DATA                                                      !2
    3    21      > JMP                                                          ->7
         22    >   FE_FREE                                                      $8
   12    23        INIT_FCALL                                                   'print_r'
         24        SEND_VAR                                                     !4
         25        DO_ICALL                                                     
         26      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.11 ms | 2205 KiB | 15 Q