3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.09 ms | 1394 KiB | 17 Q