3v4l.org

run code in 300+ PHP versions simultaneously
<?php $link = 'http://www.website.com/andsoooooooooooom_biiiiiiiiiiiiiiiig_characters_heeeeeeeeere'; $shortenedLink = (strlen($link) > 70) ? substr($link, 0, 20) . '...' : $link; echo "this is my best <a href='$link'>$shortenedLink</a> and some text here";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/19c3j
function name:  (null)
number of ops:  21
compiled vars:  !0 = $link, !1 = $shortenedLink
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.website.com%2Fandsoooooooooooom_biiiiiiiiiiiiiiiig_characters_heeeeeeeeere'
    5     1        STRLEN                                           ~3      !0
          2        IS_SMALLER                                               70, ~3
          3      > JMPZ                                                     ~4, ->12
          4    >   INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 20
          8        DO_ICALL                                         $5      
          9        CONCAT                                           ~6      $5, '...'
         10        QM_ASSIGN                                        ~7      ~6
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~7      !0
         13    >   ASSIGN                                                   !1, ~7
    7    14        ROPE_INIT                                     5  ~10     'this+is+my+best+%3Ca+href%3D%27'
         15        ROPE_ADD                                      1  ~10     ~10, !0
         16        ROPE_ADD                                      2  ~10     ~10, '%27%3E'
         17        ROPE_ADD                                      3  ~10     ~10, !1
         18        ROPE_END                                      4  ~9      ~10, '%3C%2Fa%3E+and+some+text+here'
         19        ECHO                                                     ~9
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.39 ms | 1395 KiB | 15 Q