3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $regex = "(toto.com|tata.fr)"; $email = "toto@toto.com"; $result = preg_match($regex,$email); echo $result;
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/5KJhJ
function name:  (null)
number of ops:  9
compiled vars:  !0 = $regex, !1 = $email, !2 = $result
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, '%28toto.com%7Ctata.fr%29'
   4     1        ASSIGN                                                   !1, 'toto%40toto.com'
   6     2        INIT_FCALL                                               'preg_match'
         3        SEND_VAR                                                 !0
         4        SEND_VAR                                                 !1
         5        DO_ICALL                                         $5      
         6        ASSIGN                                                   !2, $5
   7     7        ECHO                                                     !2
         8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0