3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = json_decode('"’"'); $pattern = '/\b/u'; preg_match($pattern, $text, $matches, 0, 0); preg_match($pattern, $text, $matches, 0, 1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DqL76
function name:  (null)
number of ops:  20
compiled vars:  !0 = $text, !1 = $pattern, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%22%E2%80%99%22'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    5     4        ASSIGN                                                   !1, '%2F%5Cb%2Fu'
    7     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !0
          8        SEND_REF                                                 !2
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 0
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'preg_match'
         13        SEND_VAR                                                 !1
         14        SEND_VAR                                                 !0
         15        SEND_REF                                                 !2
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.71 ms | 1395 KiB | 17 Q