3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.63 ms | 1394 KiB | 17 Q