3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domain = '.widgettest.judgeservice.com'; if ( '.' === substr($domain,0,1) ) { $domain = explode('.',$domain); $domain = array_slice($domain,1); $domain = implode('.',$domain); } var_dump($domain);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 23
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/CHJTd
function name:  (null)
number of ops:  27
compiled vars:  !0 = $domain
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '.widgettest.judgeservice.com'
    4     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $2      
          6        IS_IDENTICAL                                             $2, '.'
          7      > JMPZ                                                     ~3, ->23
    5     8    >   INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '.'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
    6    13        INIT_FCALL                                               'array_slice'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 1
         16        DO_ICALL                                         $6      
         17        ASSIGN                                                   !0, $6
    7    18        INIT_FCALL                                               'implode'
         19        SEND_VAL                                                 '.'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $8      
         22        ASSIGN                                                   !0, $8
    9    23    >   INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.12 ms | 1395 KiB | 23 Q