3v4l.org

run code in 500+ 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:  14
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        FRAMELESS_ICALL_3                str_replace         ~3      <array>, <array>
          3        OP_DATA                                                      !0
          4        CONCAT                                               ~4      '%5B', ~3
          5        CONCAT                                               ~5      ~4, '%5D'
          6        SEND_VAL                                                     ~5
          7        SEND_VAL                                                     <true>
          8        DO_ICALL                                             $6      
          9        ASSIGN                                                       !1, $6
    5    10        INIT_FCALL                                                   'print_r'
         11        SEND_VAR                                                     !1
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.22 ms | 2348 KiB | 15 Q