3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("0", "0", "F12345 / Q56T76"); if(strlen($array[2]) > 6 && preg_match('/[^a-zA-Z_\-0-9]/', str_replace(" ","",$array[2]))){ $error_message = "HFA Song Code contains characters other than alphanumerics and / at Line Number "; } echo $error_message; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 16
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 16
filename:       /in/6Go7T
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array, !1 = $error_message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_R                                      ~3      !0, 2
          2        STRLEN                                           ~4      ~3
          3        IS_SMALLER                                       ~5      6, ~4
          4      > JMPZ_EX                                          ~5      ~5, ->16
          5    >   INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%2F%5B%5Ea-zA-Z_%5C-0-9%5D%2F'
          7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '+'
          9        SEND_VAL                                                 ''
         10        FETCH_DIM_R                                      ~6      !0, 2
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                         $8      
         15        BOOL                                             ~5      $8
         16    > > JMPZ                                                     ~5, ->18
    4    17    >   ASSIGN                                                   !1, 'HFA+Song+Code+contains+characters+other+than+alphanumerics+and+%2F+at+Line+Number+'
    6    18    >   ECHO                                                     !1
    7    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.57 ms | 1395 KiB | 17 Q