3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parsedURL = parse_url('https://static01.nyt.com/images/2018/08/28/us/28vote_print/28vote_xp-articleLarge.jpg?quality=75&auto=webp&disable=upscale'); $pathinfo = pathinfo($parsedURL['path']); $filename = $pathinfo['filename']; $extension = $pathinfo['extension']; var_dump($filename, $extension);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vejBA
function name:  (null)
number of ops:  18
compiled vars:  !0 = $parsedURL, !1 = $pathinfo, !2 = $filename, !3 = $extension
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'parse_url'
          1        SEND_VAL                                                 'https%3A%2F%2Fstatic01.nyt.com%2Fimages%2F2018%2F08%2F28%2Fus%2F28vote_print%2F28vote_xp-articleLarge.jpg%3Fquality%3D75%26auto%3Dwebp%26disable%3Dupscale'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    5     4        INIT_FCALL                                               'pathinfo'
          5        FETCH_DIM_R                                      ~6      !0, 'path'
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !1, $7
    7     9        FETCH_DIM_R                                      ~9      !1, 'filename'
         10        ASSIGN                                                   !2, ~9
    8    11        FETCH_DIM_R                                      ~11     !1, 'extension'
         12        ASSIGN                                                   !3, ~11
   10    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.04 ms | 1015 KiB | 16 Q