3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '(Noki|Eric|SAMS|Mini|Mobi|SymbOS|iPhone|HTC)'; return preg_match($regex, $_SERVER['HTTP_USER_AGENT']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9cjjK
function name:  (null)
number of ops:  9
compiled vars:  !0 = $regex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%28Noki%7CEric%7CSAMS%7CMini%7CMobi%7CSymbOS%7CiPhone%7CHTC%29'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAR                                                 !0
          3        FETCH_R                      global              ~2      '_SERVER'
          4        FETCH_DIM_R                                      ~3      ~2, 'HTTP_USER_AGENT'
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                         $4      
          7      > RETURN                                                   $4
          8*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.97 ms | 1393 KiB | 15 Q