3v4l.org

run code in 300+ PHP versions simultaneously
<?php $metrics = [ 'alloc_inode' => '0f4240', 'close' => '1e8480', 'flock' => '2dc6c0', 'fsync' => '3d0900', 'getattr' => '4c4b40', 'getxattr' => '5b8d80', 'inode_permission' => '6acfc0', 'ioctl' => '7a1200', 'mmap' => '895440', 'open' => '989680', 'seek' => 'a7d8c0', 'setattr' => 'b71b00', 'setxattr' => 'c65d40', 'statfs' => 'd59f80', 'truncate' => 'e4e1c0' ]; dump( array_reduce(array_keys($metrics), function (&$c, $i) { $c = max(strlen($i), $c); }, 0));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FXl0H
function name:  (null)
number of ops:  14
compiled vars:  !0 = $metrics
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   17     1        INIT_FCALL_BY_NAME                                       'dump'
          2        INIT_FCALL                                               'array_reduce'
          3        INIT_FCALL                                               'array_keys'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FFXl0H%3A17%240'
          8        SEND_VAL                                                 ~3
          9        SEND_VAL                                                 0
         10        DO_ICALL                                         $4      
         11        SEND_VAR_NO_REF_EX                                       $4
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FFXl0H%3A17%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FXl0H
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $c, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        INIT_FCALL                                               'max'
          3        STRLEN                                           ~2      !1
          4        SEND_VAL                                                 ~2
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
          8      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FFXl0H%3A17%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.61 ms | 1395 KiB | 19 Q