3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '+358 40 867 1180'; if(preg_match('', $str, $match)) { if(strlen($match[0]) === strlen($str)) { echo 'kyllä'; } else { echo 'ei'; } } else { echo 'eivv'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4t6VX
function name:  (null)
number of ops:  18
compiled vars:  !0 = $str, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2B358+40+867+1180'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 ''
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->16
    5     7    >   FETCH_DIM_R                                      ~4      !1, 0
          8        STRLEN                                           ~5      ~4
          9        STRLEN                                           ~6      !0
         10        IS_IDENTICAL                                             ~5, ~6
         11      > JMPZ                                                     ~7, ->14
    6    12    >   ECHO                                                     'kyll%C3%A4'
         13      > JMP                                                      ->15
    8    14    >   ECHO                                                     'ei'
         15    > > JMP                                                      ->17
   11    16    >   ECHO                                                     'eivv'
   12    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.65 ms | 1386 KiB | 15 Q