3v4l.org

run code in 300+ PHP versions simultaneously
<?php while(strlen($sms) > 160) { echo "Here"; $short = substr($sms,0,159); echo "Send SMS Long"; $sms = str_replace($short,'',$sms); } if(strlen($sms) > 0) { echo "Send SMS Short"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 1
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
Branch analysis from position: 1
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 1
Branch analysis from position: 18
Branch analysis from position: 1
filename:       /in/8MUkG
function name:  (null)
number of ops:  23
compiled vars:  !0 = $short, !1 = $sms
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMP                                                      ->15
    4     1    >   ECHO                                                     'Here'
    5     2        INIT_FCALL                                               'substr'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 159
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !0, $2
    6     8        ECHO                                                     'Send+SMS+Long'
    7     9        INIT_FCALL                                               'str_replace'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 ''
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $4      
         14        ASSIGN                                                   !1, $4
    3    15    >   STRLEN                                           ~6      !1
         16        IS_SMALLER                                               160, ~6
         17      > JMPNZ                                                    ~7, ->1
   10    18    >   STRLEN                                           ~8      !1
         19        IS_SMALLER                                               0, ~8
         20      > JMPZ                                                     ~9, ->22
   11    21    >   ECHO                                                     'Send+SMS+Short'
   17    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.28 ms | 1395 KiB | 17 Q