3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to = explode(" ", substr("hello how are you bn",1,-1)); $lang = $to[count($to)-1]; $txt = array_slice($to, 0, count($to)-1,TRUE); echo($txt); echo("!!!"); echo($lang); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vmT06
function name:  (null)
number of ops:  27
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        SEND_VAL                                                 'hello+how+are+you+bn'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 -1
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !0, $4
    3    10        COUNT                                            ~6      !0
         11        SUB                                              ~7      ~6, 1
         12        FETCH_DIM_R                                      ~8      !0, ~7
         13        ASSIGN                                                   !1, ~8
    4    14        INIT_FCALL                                               'array_slice'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 0
         17        COUNT                                            ~10     !0
         18        SUB                                              ~11     ~10, 1
         19        SEND_VAL                                                 ~11
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $12     
         22        ASSIGN                                                   !2, $12
    6    23        ECHO                                                     !2
    7    24        ECHO                                                     '%21%21%21'
    8    25        ECHO                                                     !1
    9    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.31 ms | 1395 KiB | 19 Q