3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "☯"; // 262F $x .= "€"; // 20AC $x .= "☠"; // 2620 $x .= "갦"; // ac26 $x .= "괧"; // ad27 $x .= "オ"; // 30aa $x .= "〦"; // 3026 $x = "갦€"; // ac26|20ac $x = "abc" . $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 = 20, Position 2 = 31
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fNpS3
function name:  (null)
number of ops:  34
compiled vars:  !0 = $x, !1 = $re, !2 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%E2%98%AF'
    3     1        ASSIGN_OP                                     8          !0, '%E2%82%AC'
    4     2        ASSIGN_OP                                     8          !0, '%E2%98%A0'
    5     3        ASSIGN_OP                                     8          !0, '%EA%B0%A6'
    6     4        ASSIGN_OP                                     8          !0, '%EA%B4%A7'
    7     5        ASSIGN_OP                                     8          !0, '%E3%82%AA'
    8     6        ASSIGN_OP                                     8          !0, '%E3%80%A6'
   10     7        ASSIGN                                                   !0, '%EA%B0%A6%E2%82%AC'
   11     8        CONCAT                                           ~11     'abc', !0
          9        CONCAT                                           ~12     ~11, 'x'
         10        ASSIGN                                                   !0, ~12
   13    11        ASSIGN                                                   !1, '%2F%E2%98%A0%2Fi'
   14    12        ASSIGN                                                   !2, <array>
   15    13        INIT_FCALL                                               'preg_match'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !0
         16        SEND_REF                                                 !2
         17        DO_ICALL                                         $16     
         18        IS_IDENTICAL                                             $16, 1
         19      > JMPZ                                                     ~17, ->31
   16    20    >   INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !2
         22        SEND_VAL                                                 1
         23        DO_ICALL                                         $18     
         24        CONCAT                                           ~19     '%3Cpre%3E', $18
         25        CONCAT                                           ~20     ~19, '%3C%2Fpre%3E'
         26        ECHO                                                     ~20
   17    27        CONCAT                                           ~21     '%3Cpre%3E', !0
         28        CONCAT                                           ~22     ~21, '%3C%2Fpre%3E'
         29        ECHO                                                     ~22
         30      > JMP                                                      ->32
   20    31    >   ECHO                                                     'GNU'
   23    32    >   ECHO                                                     '%3Cbr+%2F%3EDone'
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.2 ms | 1396 KiB | 17 Q