3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "1) ".basename("DC7pD9sXgAExPk7.jpg").PHP_EOL; $info = pathinfo("DC7pD9sXgAExPk7.jpg"); echo basename($file,'.'.$info['extension']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GJuUM
function name:  (null)
number of ops:  18
compiled vars:  !0 = $info, !1 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'basename'
          1        SEND_VAL                                                 'DC7pD9sXgAExPk7.jpg'
          2        DO_ICALL                                         $2      
          3        CONCAT                                           ~3      '1%29+', $2
          4        CONCAT                                           ~4      ~3, '%0A'
          5        ECHO                                                     ~4
    7     6        INIT_FCALL                                               'pathinfo'
          7        SEND_VAL                                                 'DC7pD9sXgAExPk7.jpg'
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !0, $5
    8    10        INIT_FCALL                                               'basename'
         11        SEND_VAR                                                 !1
         12        FETCH_DIM_R                                      ~7      !0, 'extension'
         13        CONCAT                                           ~8      '.', ~7
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                         $9      
         16        ECHO                                                     $9
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.6 ms | 1394 KiB | 17 Q