3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path ="public://"; $string = "./documenti/cazzo/immagine.jpg"; $str = end(explode('/', $string)); $row = "lafiga"; 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 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/XW6Es
function name:  (null)
number of ops:  21
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        ASSIGN                                                   !3, 'lafiga'
    6    11        ISSET_ISEMPTY_CV                                 ~10     !3
         12      > JMPZ_EX                                          ~10     ~10, ->15
         13    >   IS_NOT_EQUAL                                     ~11     !3, ''
         14        BOOL                                             ~10     ~11
         15    > > JMPZ                                                     ~10, ->19
    7    16    >   CONCAT                                           ~12     !0, !2
         17        ECHO                                                     ~12
         18      > JMP                                                      ->20
    9    19    >   ECHO                                                     'ciao'
   10    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.7 ms | 1399 KiB | 17 Q