3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ' is an online shell that allows you to evaluate (hence 3v4l) your code on our servers. We support more than 100 different PHP versions (every version released since 4.3.0) plus HHVM for you to use. For every script you submit, we return: </p><ul> <li>Output from all released PHP and HHVM versions</li> <li>Output from all upcoming alpha &amp; beta PHP versions</li> <li><a href="http://derickrethans.nl/projects.html#vld">VLD</'; print strlen($str) . "\n"; $maxlength = 77; $cutlength = $maxlength; while (0 < $delta = $maxlength - strlen(check_plain(substr($str, $cutlength)))) { $cutlength += $delta; } print $substr($str, $cutlength);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
Branch analysis from position: 7
filename:       /in/0ts7J
function name:  (null)
number of ops:  26
compiled vars:  !0 = $str, !1 = $maxlength, !2 = $cutlength, !3 = $delta, !4 = $substr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '+is+an+online+shell+that+allows+you+to+evaluate+%28hence+3v4l%29+your+code+on+our+servers.+We+support+more+than+100+different+PHP+versions+%28every+version+released+since+4.3.0%29+plus+HHVM+for+you+to+use.+For+every+script+you+submit%2C+we+return%3A%0A%09%09%3C%2Fp%3E%3Cul%3E%0A%09%09%09%3Cli%3EOutput+from+all+released+PHP+and+HHVM+versions%3C%2Fli%3E%0A%09%09%09%3Cli%3EOutput+from+all+upcoming+alpha+%26amp%3B+beta+PHP+versions%3C%2Fli%3E%0A%09%09%09%3Cli%3E%3Ca+href%3D%22http%3A%2F%2Fderickrethans.nl%2Fprojects.html%23vld%22%3EVLD%3C%2F'
    9     1        STRLEN                                           ~6      !0
          2        CONCAT                                           ~7      ~6, '%0A'
          3        ECHO                                                     ~7
   11     4        ASSIGN                                                   !1, 77
   13     5        ASSIGN                                                   !2, !1
   15     6      > JMP                                                      ->8
   16     7    >   ASSIGN_OP                                     1          !2, !3
   15     8    >   INIT_FCALL_BY_NAME                                       'check_plain'
          9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !0
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $11     
         13        SEND_VAR_NO_REF_EX                                       $11
         14        DO_FCALL                                      0  $12     
         15        STRLEN                                           ~13     $12
         16        SUB                                              ~14     !1, ~13
         17        ASSIGN                                           ~15     !3, ~14
         18        IS_SMALLER                                               0, ~15
         19      > JMPNZ                                                    ~16, ->7
   19    20    >   INIT_DYNAMIC_CALL                                        !4
         21        SEND_VAR_EX                                              !0
         22        SEND_VAR_EX                                              !2
         23        DO_FCALL                                      0  $17     
         24        ECHO                                                     $17
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.57 ms | 1396 KiB | 15 Q