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"; echo strlen($sms) . "\n"; 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 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 26
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
Branch analysis from position: 5
filename:       /in/hlgog
function name:  (null)
number of ops:  27
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        CONCAT                                           ~4      ~3, '%0A'
          3        ECHO                                                     ~4
   10     4      > JMP                                                      ->19
   11     5    >   ECHO                                                     'Here%0A'
   12     6        INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 159
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
   13    12        ECHO                                                     'Send+SMS+Long%0A'
   14    13        INIT_FCALL                                               'str_replace'
         14        SEND_VAR                                                 !1
         15        SEND_VAL                                                 ''
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $7      
         18        ASSIGN                                                   !0, $7
   10    19    >   STRLEN                                           ~9      !0
         20        IS_SMALLER                                               160, ~9
         21      > JMPNZ                                                    ~10, ->5
   17    22    >   STRLEN                                           ~11     !0
         23        IS_SMALLER                                               0, ~11
         24      > JMPZ                                                     ~12, ->26
   18    25    >   ECHO                                                     'Send+SMS+Short%0A'
   24    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.02 ms | 1396 KiB | 17 Q