3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_SERVEUR['HTTP_HOST'] = 'arpaco.localhost'; if (preg_match("/localhost/i", $_SERVEUR['HTTP_HOST'])) echo ("localhost");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/Ha95I
function name:  (null)
number of ops:  10
compiled vars:  !0 = $_SERVEUR
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'HTTP_HOST'
          1        OP_DATA                                                  'arpaco.localhost'
    4     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2Flocalhost%2Fi'
          4        FETCH_DIM_R                                      ~2      !0, 'HTTP_HOST'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                         $3      
          7      > JMPZ                                                     $3, ->9
    5     8    >   ECHO                                                     'localhost'
          9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.15 ms | 1394 KiB | 15 Q