3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'PHP'; $data = 'Programmeringsspråk: PHP'; $pattern = preg_quote($input, '/'); if (preg_match($pattern, $data)) { var_dump('rejoice!'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/fAfLb
function name:  (null)
number of ops:  16
compiled vars:  !0 = $input, !1 = $data, !2 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'PHP'
    4     1        ASSIGN                                                   !1, 'Programmeringsspr%C3%A5k%3A+PHP'
    6     2        INIT_FCALL                                               'preg_quote'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 '%2F'
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    7     7        INIT_FCALL                                               'preg_match'
          8        SEND_VAR                                                 !2
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11      > JMPZ                                                     $7, ->15
    8    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAL                                                 'rejoice%21'
         14        DO_ICALL                                                 
    9    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.09 ms | 1394 KiB | 19 Q