3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'dave@random'; $a = ereg('@', $str); $b = strpos($str, '@'); $c = preg_match('@', $str); var_dump($a, $b, $c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5W0iE
function name:  (null)
number of ops:  22
compiled vars:  !0 = $str, !1 = $a, !2 = $b, !3 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'dave%40random'
    5     1        INIT_FCALL_BY_NAME                                       'ereg'
          2        SEND_VAL_EX                                              '%40'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $5      
          5        ASSIGN                                                   !1, $5
    6     6        INIT_FCALL                                               'strpos'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 '%40'
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
    7    11        INIT_FCALL                                               'preg_match'
         12        SEND_VAL                                                 '%40'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !3, $9
    9    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        SEND_VAR                                                 !2
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.33 ms | 1386 KiB | 19 Q