3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domainPrice = 300; $lastColumn = "Att betala 300,00SEK"; $test = preg_match('/(Att betala\s+)([0-9]+)(,00SEK)/i', $lastColumn, $matches); if ($matches[1] == 'Att betala ' && $matches[2] == $domainPrice) { echo "Inside"; } else { echo "outside"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/02vvu
function name:  (null)
number of ops:  19
compiled vars:  !0 = $domainPrice, !1 = $lastColumn, !2 = $test, !3 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 300
    3     1        ASSIGN                                                   !1, 'Att+betala+300%2C00SEK'
    4     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F%28Att+betala%5Cs%2B%29%28%5B0-9%5D%2B%29%28%2C00SEK%29%2Fi'
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !3
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
    5     8        FETCH_DIM_R                                      ~8      !3, 1
          9        IS_EQUAL                                         ~9      ~8, 'Att+betala+'
         10      > JMPZ_EX                                          ~9      ~9, ->14
         11    >   FETCH_DIM_R                                      ~10     !3, 2
         12        IS_EQUAL                                         ~11     !0, ~10
         13        BOOL                                             ~9      ~11
         14    > > JMPZ                                                     ~9, ->17
    7    15    >   ECHO                                                     'Inside'
         16      > JMP                                                      ->18
   10    17    >   ECHO                                                     'outside'
   11    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.63 ms | 1395 KiB | 15 Q