3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sms = "Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code :( trying again :* <3, Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code :( trying again :* <3, Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code :( trying again :* <3, Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code :( trying again :* <3"; print strlen($sms); while(strlen($sms) > 160) { echo "Here\n"; $short = substr($sms,0,159); echo "Send SMS Long\n"; $sms = str_replace($short,'',$sms); } if(strlen($sms) > 0) { echo "Send SMS Short\n"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 25
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
Branch analysis from position: 4
filename:       /in/4shWO
function name:  (null)
number of ops:  26
compiled vars:  !0 = $sms, !1 = $short
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Not+sure+why+it+sent+twice+%3A%2F+hmmm+lets+hope+I+didn%27t+put+a+bug+in+the+code%0A%3A%28+trying+again+%3A%2A+%3C3%2C+Not+sure+why+it+sent+twice+%3A%2F+hmmm+lets+hope+I+didn%27t+put+a+bug+in+the+code%0A%3A%28+trying+again+%3A%2A+%3C3%2C+Not+sure+why+it+sent+twice+%3A%2F+hmmm+lets+hope+I+didn%27t+put+a+bug+in+the+code%0A%3A%28+trying+again+%3A%2A+%3C3%2C+Not+sure+why+it+sent+twice+%3A%2F+hmmm+lets+hope+I+didn%27t+put+a+bug+in+the+code%0A%3A%28+trying+again+%3A%2A+%3C3'
    8     1        STRLEN                                           ~3      !0
          2        ECHO                                                     ~3
   10     3      > JMP                                                      ->18
   11     4    >   ECHO                                                     'Here%0A'
   12     5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 159
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
   13    11        ECHO                                                     'Send+SMS+Long%0A'
   14    12        INIT_FCALL                                               'str_replace'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 ''
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $6      
         17        ASSIGN                                                   !0, $6
   10    18    >   STRLEN                                           ~8      !0
         19        IS_SMALLER                                               160, ~8
         20      > JMPNZ                                                    ~9, ->4
   17    21    >   STRLEN                                           ~10     !0
         22        IS_SMALLER                                               0, ~10
         23      > JMPZ                                                     ~11, ->25
   18    24    >   ECHO                                                     'Send+SMS+Short%0A'
   24    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.68 ms | 1396 KiB | 17 Q