3v4l.org

run code in 500+ PHP versions simultaneously
<?php $url = parse_url("https://www.monde-diplomatique.fr/2017/05/BONNET/57476"); $path = pathinfo($url['path'], \PATHINFO_BASENAME); var_dump($path);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tiUMt
function name:  (null)
number of ops:  14
compiled vars:  !0 = $url, !1 = $path
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'parse_url'
          1        SEND_VAL                                                     'https%3A%2F%2Fwww.monde-diplomatique.fr%2F2017%2F05%2FBONNET%2F57476'
          2        DO_ICALL                                             $2      
          3        ASSIGN                                                       !0, $2
    4     4        INIT_FCALL                                                   'pathinfo'
          5        FETCH_DIM_R                                          ~4      !0, 'path'
          6        SEND_VAL                                                     ~4
          7        SEND_VAL                                                     2
          8        DO_ICALL                                             $5      
          9        ASSIGN                                                       !1, $5
    6    10        INIT_FCALL                                                   'var_dump'
         11        SEND_VAR                                                     !1
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.84 ms | 479 KiB | 10 Q