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)'; $polygon = json_decode('[' . str_replace(array('(', ')'), array('[', ']'), $value) . ']', true); print_r($polygon);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aW8nU
function name:  (null)
number of ops:  17
compiled vars:  !0 = $value, !1 = $polygon
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                                               'json_decode'
          2        INIT_FCALL                                               'str_replace'
          3        SEND_VAL                                                 <array>
          4        SEND_VAL                                                 <array>
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        CONCAT                                           ~4      '%5B', $3
          8        CONCAT                                           ~5      ~4, '%5D'
          9        SEND_VAL                                                 ~5
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
    5    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.05 ms | 1006 KiB | 16 Q