3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '<iframe width="800"><embed width=300>fdgdfg</embed>sfsdfsdf</iframe>'; var_dump( preg_match('~width=["\']?(\d+)["\']?~', $s) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pg53O
function name:  (null)
number of ops:  9
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ciframe+width%3D%22800%22%3E%3Cembed+width%3D300%3Efdgdfg%3C%2Fembed%3Esfsdfsdf%3C%2Fiframe%3E'
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%7Ewidth%3D%5B%22%27%5D%3F%28%5Cd%2B%29%5B%22%27%5D%3F%7E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.18 ms | 1394 KiB | 17 Q