3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path ="public://"; $string = "./documenti/cazzo/immagine.jpg"; $str = end(explode('/', $string)); if(isset($row) && $row != "") { print($path.$str); } else { print("ciao"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
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: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/n01TJ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $path, !1 = $string, !2 = $str, !3 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'public%3A%2F%2F'
    3     1        ASSIGN                                                   !1, '.%2Fdocumenti%2Fcazzo%2Fimmagine.jpg'
    4     2        INIT_FCALL                                               'end'
          3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%2F'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
          7        SEND_VAR_NO_REF                               0          $6
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    5    10        ISSET_ISEMPTY_CV                                 ~9      !3
         11      > JMPZ_EX                                          ~9      ~9, ->14
         12    >   IS_NOT_EQUAL                                     ~10     !3, ''
         13        BOOL                                             ~9      ~10
         14    > > JMPZ                                                     ~9, ->18
    6    15    >   CONCAT                                           ~11     !0, !2
         16        ECHO                                                     ~11
         17      > JMP                                                      ->19
    8    18    >   ECHO                                                     'ciao'
    9    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.24 ms | 1395 KiB | 17 Q