3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<EOF (50.54309395492101, 8.515777587890625)(50.59194113547687, 8.647613525390625)(50.66250551544689, 8.765716552734375)(50.699922592840785, 8.842620849609375)(50.645962883774004, 8.795928955078125)(50.63289879592736, 8.7615966796875)(50.609374285799454, 8.71490478515625)(50.57798996541261, 8.680572509765625)(50.5605451899225, 8.64898681640625)(50.53785732470035, 8.56109619140625)(50.5291283155526, 8.513031005859375)(50.5291283155526, 8.513031005859375) EOF; $count = preg_match_all('/(\d+\.\d+)/', $str, $matches); if ($count === false || ($count % 2 != 0)) { // error } else { $pairCount = $count / 2; $pairs = array(); $curPair = NULL; for ($i = 0; $i < $pairCount; $i+=2) { $pairs[] = array($matches[0][$i], $matches[0][$i+1]); } echo $pairs[0]; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 20
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 20
Branch analysis from position: 32
Branch analysis from position: 20
Branch analysis from position: 12
filename:       /in/Uhh5D
function name:  (null)
number of ops:  35
compiled vars:  !0 = $str, !1 = $count, !2 = $matches, !3 = $pairCount, !4 = $pairs, !5 = $curPair, !6 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2850.54309395492101%2C+8.515777587890625%29%2850.59194113547687%2C+8.647613525390625%29%2850.66250551544689%2C+8.765716552734375%29%2850.699922592840785%2C+8.842620849609375%29%2850.645962883774004%2C+8.795928955078125%29%2850.63289879592736%2C+8.7615966796875%29%2850.609374285799454%2C+8.71490478515625%29%2850.57798996541261%2C+8.680572509765625%29%2850.5605451899225%2C+8.64898681640625%29%2850.53785732470035%2C+8.56109619140625%29%2850.5291283155526%2C+8.513031005859375%29%2850.5291283155526%2C+8.513031005859375%29'
    7     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%5Cd%2B%5C.%5Cd%2B%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !2
          5        DO_ICALL                                         $8      
          6        ASSIGN                                                   !1, $8
    9     7        TYPE_CHECK                                    4  ~10     !1
          8      > JMPNZ_EX                                         ~10     ~10, ->12
          9    >   MOD                                              ~11     !1, 2
         10        IS_NOT_EQUAL                                     ~12     ~11, 0
         11        BOOL                                             ~10     ~12
         12    > > JMPZ                                                     ~10, ->14
         13    > > JMP                                                      ->34
   13    14    >   DIV                                              ~13     !1, 2
         15        ASSIGN                                                   !3, ~13
   14    16        ASSIGN                                                   !4, <array>
   15    17        ASSIGN                                                   !5, null
   16    18        ASSIGN                                                   !6, 0
         19      > JMP                                                      ->30
   17    20    >   FETCH_DIM_R                                      ~19     !2, 0
         21        FETCH_DIM_R                                      ~20     ~19, !6
         22        INIT_ARRAY                                       ~21     ~20
         23        ADD                                              ~23     !6, 1
         24        FETCH_DIM_R                                      ~22     !2, 0
         25        FETCH_DIM_R                                      ~24     ~22, ~23
         26        ADD_ARRAY_ELEMENT                                ~21     ~24
         27        ASSIGN_DIM                                               !4
         28        OP_DATA                                                  ~21
   16    29        ASSIGN_OP                                     1          !6, 2
         30    >   IS_SMALLER                                               !6, !3
         31      > JMPNZ                                                    ~26, ->20
   19    32    >   FETCH_DIM_R                                      ~27     !4, 0
         33        ECHO                                                     ~27
   20    34    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.87 ms | 1392 KiB | 15 Q