3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to = explode(' ' , substr(urldecode('"hello%20how%20are%20you%20bn"'),1,-1)); $lang = array_slice($to, -1)[0]; $txt = implode(' ',array_slice($to, 0, count($to) - 1)); echo($txt); echo("-"); echo($lang); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X5eSH
function name:  (null)
number of ops:  35
compiled vars:  !0 = $to, !1 = $lang, !2 = $txt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '+'
          2        INIT_FCALL                                               'substr'
          3        INIT_FCALL                                               'urldecode'
          4        SEND_VAL                                                 '%22hello%2520how%2520are%2520you%2520bn%22'
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        SEND_VAL                                                 1
          8        SEND_VAL                                                 -1
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !0, $5
    3    13        INIT_FCALL                                               'array_slice'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 -1
         16        DO_ICALL                                         $7      
         17        FETCH_DIM_R                                      ~8      $7, 0
         18        ASSIGN                                                   !1, ~8
    4    19        INIT_FCALL                                               'implode'
         20        SEND_VAL                                                 '+'
         21        INIT_FCALL                                               'array_slice'
         22        SEND_VAR                                                 !0
         23        SEND_VAL                                                 0
         24        COUNT                                            ~10     !0
         25        SUB                                              ~11     ~10, 1
         26        SEND_VAL                                                 ~11
         27        DO_ICALL                                         $12     
         28        SEND_VAR                                                 $12
         29        DO_ICALL                                         $13     
         30        ASSIGN                                                   !2, $13
    7    31        ECHO                                                     !2
    8    32        ECHO                                                     '-'
    9    33        ECHO                                                     !1
   10    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.11 ms | 1401 KiB | 23 Q