3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = " United States"; if(strpos($title," ") === 0 ){ $title = substr($title, -(strlen($title)-1)); } var_dump($title);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/YX9Ee
function name:  (null)
number of ops:  19
compiled vars:  !0 = $title
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '+United+States'
    3     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '+'
          4        DO_ICALL                                         $2      
          5        IS_IDENTICAL                                             $2, 0
          6      > JMPZ                                                     ~3, ->15
    4     7    >   INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !0
          9        STRLEN                                           ~4      !0
         10        SUB                                              ~5      ~4, 1
         11        MUL                                              ~6      ~5, -1
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !0, $7
    6    15    >   INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.41 ms | 999 KiB | 16 Q