3v4l.org

run code in 300+ PHP versions simultaneously
<?php function GetLongestString() { return max(array_map("strlen", func_get_args())); } GetLongestString("a", "aaa", "aa");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6td85
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     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/6td85
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:
195.1 ms | 1397 KiB | 18 Q