3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = 'http://test.com/some/folder/test.jpg'; echo array_pop(explode('/',$t));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vi24R
function name:  (null)
number of ops:  10
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Ftest.com%2Fsome%2Ffolder%2Ftest.jpg'
    5     1        INIT_FCALL                                               'array_pop'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%2F'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR_NO_REF                               0          $2
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.4 ms | 1393 KiB | 17 Q