3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_match("/^test-/", "login.html.twig"); echo preg_match("/^test-/", "test-signup.html.twig"); if(preg_match("/^test-/", "test-signup.html.twig")) echo 2; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/4SeV6
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%5Etest-%2F'
          2        SEND_VAL                                                 'login.html.twig'
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    4     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%2F%5Etest-%2F'
          7        SEND_VAL                                                 'test-signup.html.twig'
          8        DO_ICALL                                         $1      
          9        ECHO                                                     $1
    6    10        INIT_FCALL                                               'preg_match'
         11        SEND_VAL                                                 '%2F%5Etest-%2F'
         12        SEND_VAL                                                 'test-signup.html.twig'
         13        DO_ICALL                                         $2      
         14      > JMPZ                                                     $2, ->16
    7    15    >   ECHO                                                     2
    9    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.03 ms | 1386 KiB | 15 Q