3v4l.org

run code in 300+ PHP versions simultaneously
<?php $header = "asd.ads./ads.test+dsa"; $header = ""; $exploded = explode( '.', $header ); $end = explode( '+', array_pop( $exploded ) ); $object = array_shift( $end ); echo $object;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Oj57
function name:  (null)
number of ops:  21
compiled vars:  !0 = $header, !1 = $exploded, !2 = $end, !3 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'asd.ads.%2Fads.test%2Bdsa'
    3     1        ASSIGN                                                   !0, ''
    4     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '.'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !1, $6
    6     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%2B'
          9        INIT_FCALL                                               'array_pop'
         10        SEND_REF                                                 !1
         11        DO_ICALL                                         $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
    8    15        INIT_FCALL                                               'array_shift'
         16        SEND_REF                                                 !2
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !3, $11
   10    19        ECHO                                                     !3
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.74 ms | 1395 KiB | 19 Q