3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_url_host = 'sub.example.com'; $main_url_host = 'example.com'; $current_url_host_rev = strrev( $current_url_host ); $main_url_host_rev = strrev( $main_url_host ); if ( strpos( $current_url_host_rev, $main_url_host_rev ) === 0 ) { echo 'z'; } $current_url_sub_domains = strrev( $current_url_host_rev ); echo $main_url_host_rev;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/TRvO4
function name:  (null)
number of ops:  23
compiled vars:  !0 = $current_url_host, !1 = $main_url_host, !2 = $current_url_host_rev, !3 = $main_url_host_rev, !4 = $current_url_sub_domains
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'sub.example.com'
    3     1        ASSIGN                                                   !1, 'example.com'
    5     2        INIT_FCALL                                               'strrev'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !2, $7
    6     6        INIT_FCALL                                               'strrev'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !3, $9
    8    10        INIT_FCALL                                               'strpos'
         11        SEND_VAR                                                 !2
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                         $11     
         14        IS_IDENTICAL                                             $11, 0
         15      > JMPZ                                                     ~12, ->17
    9    16    >   ECHO                                                     'z'
   12    17    >   INIT_FCALL                                               'strrev'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $13     
         20        ASSIGN                                                   !4, $13
   14    21        ECHO                                                     !3
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.01 ms | 1395 KiB | 17 Q