3v4l.org

run code in 300+ PHP versions simultaneously
<?php function abc() { $str = "Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's th anil kumar"; return $str; } echo $str = abc(). "<br />"; if (strlen(abc()) > 1000) { echo $newstr = substr(abc(), 0, 1000-strlen(abc())); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 23
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/476BE
function name:  (null)
number of ops:  24
compiled vars:  !0 = $str, !1 = $newstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'abc'
          1        DO_FCALL                                      0  $2      
          2        CONCAT                                           ~3      $2, '%3Cbr+%2F%3E'
          3        ASSIGN                                           ~4      !0, ~3
          4        ECHO                                                     ~4
    9     5        INIT_FCALL                                               'abc'
          6        DO_FCALL                                      0  $5      
          7        STRLEN                                           ~6      $5
          8        IS_SMALLER                                               1000, ~6
          9      > JMPZ                                                     ~7, ->23
   10    10    >   INIT_FCALL                                               'substr'
         11        INIT_FCALL                                               'abc'
         12        DO_FCALL                                      0  $8      
         13        SEND_VAR                                                 $8
         14        SEND_VAL                                                 0
         15        INIT_FCALL                                               'abc'
         16        DO_FCALL                                      0  $9      
         17        STRLEN                                           ~10     $9
         18        SUB                                              ~11     1000, ~10
         19        SEND_VAL                                                 ~11
         20        DO_ICALL                                         $12     
         21        ASSIGN                                           ~13     !1, $12
         22        ECHO                                                     ~13
   11    23    > > RETURN                                                   1

Function abc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/476BE
function name:  abc
number of ops:  3
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+the+purpose+of+your+trip%3F%29Write+your+message+here%3A+%28e.g.+What%27s+th++++++++++anil+kumar'
    6     1      > RETURN                                                   !0
    7     2*     > RETURN                                                   null

End of function abc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.89 ms | 1407 KiB | 19 Q