3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "(33.110029967689556, 35.60865999564635), (33.093492845160036, 35.63955904349791), (33.0916232355565, 35.602995170206896)"; $array = explode("), ", $string); $arrayX = array(); $arrayY = array(); foreach($array as $pair) { $pair = str_replace('(', '', $pair); $pair = str_replace(')', '', $pair); $arrPair = explode(", ", $pair); $arrayX[] = $arrPair[0]; $arrayY[] = $arrPair[1]; } var_dump($arrayX); var_dump($arrayY);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 34
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 34
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
filename:       /in/W99Uu
function name:  (null)
number of ops:  42
compiled vars:  !0 = $string, !1 = $array, !2 = $arrayX, !3 = $arrayY, !4 = $pair, !5 = $arrPair
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2833.110029967689556%2C+35.60865999564635%29%2C+%2833.093492845160036%2C+35.63955904349791%29%2C+%2833.0916232355565%2C+35.602995170206896%29'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%29%2C+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !1, $7
    6     6        ASSIGN                                                   !2, <array>
    7     7        ASSIGN                                                   !3, <array>
    8     8      > FE_RESET_R                                       $11     !1, ->34
          9    > > FE_FETCH_R                                               $11, !4, ->34
    9    10    >   INIT_FCALL                                               'str_replace'
         11        SEND_VAL                                                 '%28'
         12        SEND_VAL                                                 ''
         13        SEND_VAR                                                 !4
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !4, $12
   10    16        INIT_FCALL                                               'str_replace'
         17        SEND_VAL                                                 '%29'
         18        SEND_VAL                                                 ''
         19        SEND_VAR                                                 !4
         20        DO_ICALL                                         $14     
         21        ASSIGN                                                   !4, $14
   11    22        INIT_FCALL                                               'explode'
         23        SEND_VAL                                                 '%2C+'
         24        SEND_VAR                                                 !4
         25        DO_ICALL                                         $16     
         26        ASSIGN                                                   !5, $16
   12    27        FETCH_DIM_R                                      ~19     !5, 0
         28        ASSIGN_DIM                                               !2
         29        OP_DATA                                                  ~19
   13    30        FETCH_DIM_R                                      ~21     !5, 1
         31        ASSIGN_DIM                                               !3
         32        OP_DATA                                                  ~21
    8    33      > JMP                                                      ->9
         34    >   FE_FREE                                                  $11
   16    35        INIT_FCALL                                               'var_dump'
         36        SEND_VAR                                                 !2
         37        DO_ICALL                                                 
   17    38        INIT_FCALL                                               'var_dump'
         39        SEND_VAR                                                 !3
         40        DO_ICALL                                                 
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
292.76 ms | 1017 KiB | 16 Q