3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to = substr('"hello how are you bn"',1,-1); $lang = substr($to,-1,3); $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/IpcZJ
function name:  (null)
number of ops:  24
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                                                 -1
          9        SEND_VAL                                                 3
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
    4    12        INIT_FCALL                                               'substr'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 0
         15        COUNT                                            ~7      !0
         16        SUB                                              ~8      ~7, 4
         17        SEND_VAL                                                 ~8
         18        DO_ICALL                                         $9      
         19        ASSIGN                                                   !2, $9
    6    20        ECHO                                                     !2
    7    21        ECHO                                                     '%21%21%21'
    8    22        ECHO                                                     !1
    9    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.54 ms | 1386 KiB | 15 Q