3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'šašek.txt'; setlocale('cs_CZ'); echo basename($string) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CM7ML
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C5%A1a%C5%A1ek.txt'
    4     1        INIT_FCALL                                               'setlocale'
          2        SEND_VAL                                                 'cs_CZ'
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'basename'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        CONCAT                                           ~4      $3, '%0A'
          8        ECHO                                                     ~4
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.39 ms | 1394 KiB | 17 Q