3v4l.org

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

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

End of function getlongeststring

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.55 ms | 1398 KiB | 19 Q