3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename ="aaa\n.x\ny"; var_dump(basename($filename)); echo 7; preg_match('#\.(.+)$#', $filename, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CX8SH
function name:  (null)
number of ops:  17
compiled vars:  !0 = $filename, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'aaa%0A.x%0Ay'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'basename'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                                 
    5     7        ECHO                                                     7
    6     8        INIT_FCALL                                               'preg_match'
          9        SEND_VAL                                                 '%23%5C.%28.%2B%29%24%23'
         10        SEND_VAR                                                 !0
         11        SEND_REF                                                 !1
         12        DO_ICALL                                                 
         13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.75 ms | 1394 KiB | 19 Q