3v4l.org

run code in 300+ PHP versions simultaneously
<?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
1 jumps found. (Code = 62) 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 8.0.0


preferences:
160.71 ms | 1394 KiB | 15 Q