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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.57 ms | 1396 KiB | 23 Q