3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.61 ms | 1395 KiB | 15 Q