3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('BASE_URL', 'agileus.fi'); $hostName = str_replace(array('http://www.', 'https://www.', 'http://', 'https://'), '', BASE_URL); $hostName = (strpos($hostName, '.') === false) ? 'example.com' : $hostName; define('EMAIL_DEFAULT_FROM_ADDRESS', 'concrete5-noreply@' . $hostName); var_dump(EMAIL_DEFAULT_FROM_ADDRESS); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DGGIf
function name:  (null)
number of ops:  31
compiled vars:  !0 = $hostName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'BASE_URL'
          2        SEND_VAL                                                 'agileus.fi'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 <array>
          6        SEND_VAL                                                 ''
          7        FETCH_CONSTANT                                   ~2      'BASE_URL'
          8        SEND_VAL                                                 ~2
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    4    11        INIT_FCALL                                               'strpos'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 '.'
         14        DO_ICALL                                         $5      
         15        TYPE_CHECK                                    4          $5
         16      > JMPZ                                                     ~6, ->19
         17    >   QM_ASSIGN                                        ~7      'example.com'
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~7      !0
         20    >   ASSIGN                                                   !0, ~7
    5    21        INIT_FCALL                                               'define'
         22        SEND_VAL                                                 'EMAIL_DEFAULT_FROM_ADDRESS'
         23        CONCAT                                           ~9      'concrete5-noreply%40', !0
         24        SEND_VAL                                                 ~9
         25        DO_ICALL                                                 
    6    26        INIT_FCALL                                               'var_dump'
         27        FETCH_CONSTANT                                   ~11     'EMAIL_DEFAULT_FROM_ADDRESS'
         28        SEND_VAL                                                 ~11
         29        DO_ICALL                                                 
    7    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.24 ms | 1396 KiB | 21 Q