3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "¤"; $x .= "ä"; $re = '/ä/i'; $m = array(); if (preg_match($re, $x, $m) === 1) { print "<pre>" . print_r($m, 1) . "</pre>"; print "<pre>" . $x . "</pre>"; } else { print "GNU"; } print "<br />Done";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 22
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cUpJ
function name:  (null)
number of ops:  25
compiled vars:  !0 = $x, !1 = $re, !2 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%C2%A4'
    3     1        ASSIGN_OP                                     8          !0, '%C3%A4'
    5     2        ASSIGN                                                   !1, '%2F%C3%A4%2Fi'
    6     3        ASSIGN                                                   !2, <array>
    7     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !2
          8        DO_ICALL                                         $7      
          9        IS_IDENTICAL                                             $7, 1
         10      > JMPZ                                                     ~8, ->22
    8    11    >   INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !2
         13        SEND_VAL                                                 1
         14        DO_ICALL                                         $9      
         15        CONCAT                                           ~10     '%3Cpre%3E', $9
         16        CONCAT                                           ~11     ~10, '%3C%2Fpre%3E'
         17        ECHO                                                     ~11
    9    18        CONCAT                                           ~12     '%3Cpre%3E', !0
         19        CONCAT                                           ~13     ~12, '%3C%2Fpre%3E'
         20        ECHO                                                     ~13
         21      > JMP                                                      ->23
   12    22    >   ECHO                                                     'GNU'
   15    23    >   ECHO                                                     '%3Cbr+%2F%3EDone'
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.5 ms | 1395 KiB | 17 Q