3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = '(-6.268649975971238, 106.69106266990389),(-6.267711482694832, 106.72625325217928),(-6.288272630052733, 106.72736905112947),(-6.288699201273463, 106.69106266990389)'; foreach(explode('),(',trim($value,'()')) as $single_array){ list ($x, $y) = explode(',',$single_array); $polygon[] = array((double)$x, (double)$y); } var_export($polygon);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 27
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 27
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/C2ksu
function name:  (null)
number of ops:  32
compiled vars:  !0 = $value, !1 = $single_array, !2 = $x, !3 = $y, !4 = $polygon
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%28-6.268649975971238%2C+106.69106266990389%29%2C%28-6.267711482694832%2C+106.72625325217928%29%2C%28-6.288272630052733%2C+106.72736905112947%29%2C%28-6.288699201273463%2C+106.69106266990389%29'
    5     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, ->27
         10    > > FE_FETCH_R                                               $8, !1, ->27
    6    11    >   INIT_FCALL                                               'explode'
         12        SEND_VAL                                                 '%2C'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $9      
         15        FETCH_LIST_R                                     $10     $9, 0
         16        ASSIGN                                                   !2, $10
         17        FETCH_LIST_R                                     $12     $9, 1
         18        ASSIGN                                                   !3, $12
         19        FREE                                                     $9
    7    20        CAST                                          5  ~15     !2
         21        INIT_ARRAY                                       ~16     ~15
         22        CAST                                          5  ~17     !3
         23        ADD_ARRAY_ELEMENT                                ~16     ~17
         24        ASSIGN_DIM                                               !4
         25        OP_DATA                                                  ~16
    5    26      > JMP                                                      ->10
         27    >   FE_FREE                                                  $8
    9    28        INIT_FCALL                                               'var_export'
         29        SEND_VAR                                                 !4
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.13 ms | 1003 KiB | 16 Q