3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(preg_match('/.*/', hex2bin('ff'))); var_dump(preg_match('/^$/', hex2bin('ff'))); var_dump(preg_match('/.*/u', hex2bin('ff'))); var_dump(preg_grep('/.*/u', [hex2bin('ff')]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kihD6
function name:  (null)
number of ops:  33
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'hex2bin'
          2        SEND_VAL                                                     'ff'
          3        DO_ICALL                                             $0      
          4        FRAMELESS_ICALL_2                preg_match          ~1      '%2F.%2A%2F', $0
          5        SEND_VAL                                                     ~1
          6        DO_ICALL                                                     
    4     7        INIT_FCALL                                                   'var_dump'
          8        INIT_FCALL                                                   'hex2bin'
          9        SEND_VAL                                                     'ff'
         10        DO_ICALL                                             $3      
         11        FRAMELESS_ICALL_2                preg_match          ~4      '%2F%5E%24%2F', $3
         12        SEND_VAL                                                     ~4
         13        DO_ICALL                                                     
    5    14        INIT_FCALL                                                   'var_dump'
         15        INIT_FCALL                                                   'hex2bin'
         16        SEND_VAL                                                     'ff'
         17        DO_ICALL                                             $6      
         18        FRAMELESS_ICALL_2                preg_match          ~7      '%2F.%2A%2Fu', $6
         19        SEND_VAL                                                     ~7
         20        DO_ICALL                                                     
    6    21        INIT_FCALL                                                   'var_dump'
         22        INIT_FCALL                                                   'preg_grep'
         23        SEND_VAL                                                     '%2F.%2A%2Fu'
         24        INIT_FCALL                                                   'hex2bin'
         25        SEND_VAL                                                     'ff'
         26        DO_ICALL                                             $9      
         27        INIT_ARRAY                                           ~10     $9
         28        SEND_VAL                                                     ~10
         29        DO_ICALL                                             $11     
         30        SEND_VAR                                                     $11
         31        DO_ICALL                                                     
         32      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
188.14 ms | 1716 KiB | 16 Q