3v4l.org

run code in 300+ PHP versions simultaneously
<?php $header = "asd.ads./ads.test+dsa"; $header = ""; $header = 123; $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/UF8Gd
function name:  (null)
number of ops:  22
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        ASSIGN                                                   !0, 123
    5     3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '.'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !1, $7
    7     8        INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%2B'
         10        INIT_FCALL                                               'array_pop'
         11        SEND_REF                                                 !1
         12        DO_ICALL                                         $9      
         13        SEND_VAR                                                 $9
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !2, $10
    9    16        INIT_FCALL                                               'array_shift'
         17        SEND_REF                                                 !2
         18        DO_ICALL                                         $12     
         19        ASSIGN                                                   !3, $12
   11    20        ECHO                                                     !3
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.23 ms | 1395 KiB | 19 Q