3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_domain = 'exx.text.ru'; $target_domain = 'text.ru'; var_dump(strstr($current_domain, '.' . $target_domain) == '.' . $target_domain); var_dump(array_shift(explode(".","en.example.com")));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hXnHc
function name:  (null)
number of ops:  23
compiled vars:  !0 = $current_domain, !1 = $target_domain
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'exx.text.ru'
    4     1        ASSIGN                                                   !1, 'text.ru'
    6     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'strstr'
          4        SEND_VAR                                                 !0
          5        CONCAT                                           ~4      '.', !1
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                         $5      
          8        CONCAT                                           ~6      '.', !1
          9        IS_EQUAL                                         ~7      $5, ~6
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'array_shift'
         14        INIT_FCALL                                               'explode'
         15        SEND_VAL                                                 '.'
         16        SEND_VAL                                                 'en.example.com'
         17        DO_ICALL                                         $9      
         18        SEND_VAR_NO_REF                               0          $9
         19        DO_ICALL                                         $10     
         20        SEND_VAR                                                 $10
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.16 ms | 1399 KiB | 21 Q