3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ null, "22-115", "AAAAAAAAA", "22-001", "22-221", "22-004", "22-023", "22-002", ]; $max = max(filter_var_array($array, FILTER_SANITIZE_NUMBER_INT)); echo $max; //22-221
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h5LGF
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array, !1 = $max
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   14     1        INIT_FCALL                                                   'max'
          2        INIT_FCALL                                                   'filter_var_array'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     519
          5        DO_ICALL                                             $3      
          6        SEND_VAR                                                     $3
          7        DO_ICALL                                             $4      
          8        ASSIGN                                                       !1, $4
   15     9        ECHO                                                         !1
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
142.5 ms | 1877 KiB | 15 Q