3v4l.org

run code in 500+ PHP versions simultaneously
<?php $client_answer = 28; $array = array(10,20,30,40,50); echo max(array_filter($array, function($v) use ($client_answer) { return $v <= $client_answer; }));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KHB8r
function name:  (null)
number of ops:  13
compiled vars:  !0 = $client_answer, !1 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 28
    5     1        ASSIGN                                                       !1, <array>
    7     2        INIT_FCALL                                                   'max'
          3        INIT_FCALL                                                   'array_filter'
          4        SEND_VAR                                                     !1
          5        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
          6        BIND_LEXICAL                                                 ~4, !0
    9     7        SEND_VAL                                                     ~4
    7     8        DO_ICALL                                             $5      
    9     9        SEND_VAR                                                     $5
    7    10        DO_ICALL                                             $6      
    9    11        ECHO                                                         $6
         12      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KHB8r
function name:  {closure:/in/KHB8r:7}
number of ops:  5
compiled vars:  !0 = $v, !1 = $client_answer
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV                                                 !0      
          1        BIND_STATIC                                                  !1
    8     2        IS_SMALLER_OR_EQUAL                                  ~2      !0, !1
          3      > RETURN                                                       ~2
    9     4*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.01 ms | 2093 KiB | 15 Q