3v4l.org

run code in 300+ PHP versions simultaneously
<?php $is_dot = strrpos('com.ua', '.'); $domain_suffix = ($is_dot === FALSE )?$domain['items']['dom']:mb_substr($domain['items']['dom'],$is_dot+1); echo $domain_suffix;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0QjA2
function name:  (null)
number of ops:  22
compiled vars:  !0 = $is_dot, !1 = $domain_suffix, !2 = $domain
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strrpos'
          1        SEND_VAL                                                 'com.ua'
          2        SEND_VAL                                                 '.'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    3     5        TYPE_CHECK                                    4          !0
          6      > JMPZ                                                     ~5, ->11
          7    >   FETCH_DIM_R                                      ~6      !2, 'items'
          8        FETCH_DIM_R                                      ~7      ~6, 'dom'
          9        QM_ASSIGN                                        ~8      ~7
         10      > JMP                                                      ->19
         11    >   INIT_FCALL                                               'mb_substr'
         12        FETCH_DIM_R                                      ~9      !2, 'items'
         13        FETCH_DIM_R                                      ~10     ~9, 'dom'
         14        SEND_VAL                                                 ~10
         15        ADD                                              ~11     !0, 1
         16        SEND_VAL                                                 ~11
         17        DO_ICALL                                         $12     
         18        QM_ASSIGN                                        ~8      $12
         19    >   ASSIGN                                                   !1, ~8
    4    20        ECHO                                                     !1
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.98 ms | 1399 KiB | 17 Q