3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.36 ms | 1386 KiB | 19 Q