3v4l.org

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

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

End of function getlongeststring

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.2 ms | 1401 KiB | 19 Q