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; } 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 = 5, Position 2 = 18
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/GVLim
function name:  (null)
number of ops:  19
compiled vars:  !0 = $newstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'abc'
          1        DO_FCALL                                      0  $1      
          2        STRLEN                                           ~2      $1
          3        IS_SMALLER                                               1000, ~2
          4      > JMPZ                                                     ~3, ->18
   10     5    >   INIT_FCALL                                               'substr'
          6        INIT_FCALL                                               'abc'
          7        DO_FCALL                                      0  $4      
          8        SEND_VAR                                                 $4
          9        SEND_VAL                                                 0
         10        INIT_FCALL                                               'abc'
         11        DO_FCALL                                      0  $5      
         12        STRLEN                                           ~6      $5
         13        SUB                                              ~7      1000, ~6
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                         $8      
         16        ASSIGN                                           ~9      !0, $8
         17        ECHO                                                     ~9
   11    18    > > RETURN                                                   1

Function abc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GVLim
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:
151.22 ms | 1403 KiB | 18 Q