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); $lang = $lang[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/E5hF7
function name:  (null)
number of ops:  36
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        ASSIGN                                                   !1, $7
    4    18        FETCH_DIM_R                                      ~9      !1, 0
         19        ASSIGN                                                   !1, ~9
    5    20        INIT_FCALL                                               'implode'
         21        SEND_VAL                                                 '+'
         22        INIT_FCALL                                               'array_slice'
         23        SEND_VAR                                                 !0
         24        SEND_VAL                                                 0
         25        COUNT                                            ~11     !0
         26        SUB                                              ~12     ~11, 1
         27        SEND_VAL                                                 ~12
         28        DO_ICALL                                         $13     
         29        SEND_VAR                                                 $13
         30        DO_ICALL                                         $14     
         31        ASSIGN                                                   !2, $14
    8    32        ECHO                                                     !2
    9    33        ECHO                                                     '-'
   10    34        ECHO                                                     !1
   11    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.93 ms | 1388 KiB | 23 Q