3v4l.org

run code in 300+ PHP versions simultaneously
<?php $temp = '"COM1904150001","1","ytuaioeighalk","tyueiff","assets/report/celc_coba/d02c25b2-5c07-11e9-8f1a-02fd8bf7d052/"'; $temp = str_replace('"', '', $temp); $url = explode('/', $temp); $url = array_filter($url); $requiredSegment = end($url); echo '<pre>'; print_r($requiredSegment); echo '</pre>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i8nBK
function name:  (null)
number of ops:  26
compiled vars:  !0 = $temp, !1 = $url, !2 = $requiredSegment
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%22COM1904150001%22%2C%221%22%2C%22ytuaioeighalk%22%2C%22tyueiff%22%2C%22assets%2Freport%2Fcelc_coba%2Fd02c25b2-5c07-11e9-8f1a-02fd8bf7d052%2F%22'
    3     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%22'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    4     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%2F'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
    5    12        INIT_FCALL                                               'array_filter'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $8      
         15        ASSIGN                                                   !1, $8
    6    16        INIT_FCALL                                               'end'
         17        SEND_REF                                                 !1
         18        DO_ICALL                                         $10     
         19        ASSIGN                                                   !2, $10
    8    20        ECHO                                                     '%3Cpre%3E'
    9    21        INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                                 
   10    24        ECHO                                                     '%3C%2Fpre%3E'
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
242.43 ms | 1002 KiB | 18 Q