3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = null; $result = $url && strlen($url) !== 0 && strtolower(substr($url, -4)) === '.gif';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 5
filename:       /in/Mb61N
function name:  (null)
number of ops:  17
compiled vars:  !0 = $url, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    5     1      > JMPZ_EX                                          ~3      !0, ->5
          2    >   STRLEN                                           ~4      !0
          3        IS_NOT_IDENTICAL                                 ~5      ~4, 0
          4        BOOL                                             ~3      ~5
          5    > > JMPZ_EX                                          ~3      ~3, ->15
          6    >   INIT_FCALL                                               'strtolower'
          7        INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 -4
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                         $7      
         13        IS_IDENTICAL                                     ~8      $7, '.gif'
         14        BOOL                                             ~3      ~8
         15    >   ASSIGN                                                   !1, ~3
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
214.46 ms | 1394 KiB | 17 Q