3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'class=&quot;s--e'; preg_match('~(class=&quot;(?:[^&]*\s)?)--e~sU', $text, $match); var_dump($match);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4YU2Q
function name:  (null)
number of ops:  10
compiled vars:  !0 = $text, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'class%3D%26quot%3Bs--e'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7E%28class%3D%26quot%3B%28%3F%3A%5B%5E%26%5D%2A%5Cs%29%3F%29--e%7EsU'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.28 ms | 997 KiB | 15 Q