3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host = 'localhost'; if (preg_match('#^[-._A-Za-z0-9]{0,255}$#', $host)) { print 'true'; } print 'false';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/pmXWJ
function name:  (null)
number of ops:  9
compiled vars:  !0 = $host
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'localhost'
    6     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%23%5E%5B-._A-Za-z0-9%5D%7B0%2C255%7D%24%23'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->7
    7     6    >   ECHO                                                     'true'
   10     7    >   ECHO                                                     'false'
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.85 ms | 1394 KiB | 15 Q