3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to = explode(" ", substr("hello how are you bn",1,-1)); $lang = $to[count($arr)-1]; $txt = array_slice($to, 0, count($arr)-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/5Kf2b
function name:  (null)
number of ops:  27
compiled vars:  !0 = $to, !1 = $lang, !2 = $arr, !3 = $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                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !0, $5
    3    10        COUNT                                            ~7      !2
         11        SUB                                              ~8      ~7, 1
         12        FETCH_DIM_R                                      ~9      !0, ~8
         13        ASSIGN                                                   !1, ~9
    4    14        INIT_FCALL                                               'array_slice'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 0
         17        COUNT                                            ~11     !2
         18        SUB                                              ~12     ~11, 1
         19        SEND_VAL                                                 ~12
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $13     
         22        ASSIGN                                                   !3, $13
    6    23        ECHO                                                     !3
    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:
150.53 ms | 1395 KiB | 19 Q