3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'hi'; var_dump(preg_match('/[a-zA-Z]/',$str) && preg_match('/[0-9]/',$str));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/VS4ou
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'hi'
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F%5Ba-zA-Z%5D%2F'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6      > JMPZ_EX                                          ~3      $2, ->12
          7    >   INIT_FCALL                                               'preg_match'
          8        SEND_VAL                                                 '%2F%5B0-9%5D%2F'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        BOOL                                             ~3      $4
         12    >   SEND_VAL                                                 ~3
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.48 ms | 1394 KiB | 17 Q