3v4l.org

run code in 300+ PHP versions simultaneously
<?php function GetLongestString() { var_dump(func_get_args()); } echo GetLongestString("a", "aaa", "aa") . PHP_EOL; echo GetLongestString("a", "bcd", "efgh", "") . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7f5pl
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'getlongeststring'
          1        SEND_VAL                                                 'a'
          2        SEND_VAL                                                 'aaa'
          3        SEND_VAL                                                 'aa'
          4        DO_FCALL                                      0  $0      
          5        CONCAT                                           ~1      $0, '%0A'
          6        ECHO                                                     ~1
    9     7        INIT_FCALL                                               'getlongeststring'
          8        SEND_VAL                                                 'a'
          9        SEND_VAL                                                 'bcd'
         10        SEND_VAL                                                 'efgh'
         11        SEND_VAL                                                 ''
         12        DO_FCALL                                      0  $2      
         13        CONCAT                                           ~3      $2, '%0A'
         14        ECHO                                                     ~3
         15      > RETURN                                                   1

Function getlongeststring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7f5pl
function name:  GetLongestString
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        FUNC_GET_ARGS                                    ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    6     4      > RETURN                                                   null

End of function getlongeststring

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.34 ms | 1397 KiB | 17 Q