3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '{width:100, max-heigth:300, min-height:200}'; $pattern = '/^{.*}$/'; var_dump(preg_match($pattern, $string));
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/cJ45X
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string, !1 = $pattern
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, '%7Bwidth%3A100%2C+max-heigth%3A300%2C+min-height%3A200%7D'
   4     1        ASSIGN                                                   !1, '%2F%5E%7B.%2A%7D%24%2F'
   6     2        INIT_FCALL                                               'var_dump'
         3        INIT_FCALL                                               'preg_match'
         4        SEND_VAR                                                 !1
         5        SEND_VAR                                                 !0
         6        DO_ICALL                                         $4      
         7        SEND_VAR                                                 $4
         8        DO_ICALL                                                 
         9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0