3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_array = array("abcd","abc","de","hjjj","g","wer"); $new_array = array_map('strlen', $my_array);print_r($new_array);exit; // Show maximum and minimum string length using max() function and min() function echo "The shortest array length is " . min($new_array) . ". The longest array length is " . max($new_array).'.'; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/7UpmE
function name:  (null)
number of ops:  22
compiled vars:  !0 = $my_array, !1 = $new_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 'strlen'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
          6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > EXIT                                                     
    5    10*       INIT_FCALL                                               'min'
         11*       SEND_VAR                                                 !1
         12*       DO_ICALL                                         $6      
         13*       CONCAT                                           ~7      'The+shortest+array+length++is+', $6
    6    14*       CONCAT                                           ~8      ~7, '.+The+longest+array+length+is+'
         15*       INIT_FCALL                                               'max'
         16*       SEND_VAR                                                 !1
         17*       DO_ICALL                                         $9      
         18*       CONCAT                                           ~10     ~8, $9
         19*       CONCAT                                           ~11     ~10, '.'
         20*       ECHO                                                     ~11
    7    21*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.47 ms | 1399 KiB | 21 Q