3v4l.org

run code in 300+ PHP versions simultaneously
<?php $levels = [0, 24999, 49999, 74999, 9999, 124999]; $myallcreadits = 60000; $result = max(array_filter($levels, function($x) use ($myallcreadits) { return $x<$myallcreadits; })); $details='<div id="$result">'.$result.'</div>'; echo $details;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g7ppp
function name:  (null)
number of ops:  17
compiled vars:  !0 = $levels, !1 = $myallcreadits, !2 = $result, !3 = $details
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 60000
    4     2        INIT_FCALL                                               'max'
          3        INIT_FCALL                                               'array_filter'
          4        SEND_VAR                                                 !0
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fg7ppp%3A4%240'
          6        BIND_LEXICAL                                             ~6, !1
    7     7        SEND_VAL                                                 ~6
          8        DO_ICALL                                         $7      
          9        SEND_VAR                                                 $7
         10        DO_ICALL                                         $8      
    4    11        ASSIGN                                                   !2, $8
    8    12        CONCAT                                           ~10     '%3Cdiv+id%3D%22%24result%22%3E', !2
         13        CONCAT                                           ~11     ~10, '%3C%2Fdiv%3E'
         14        ASSIGN                                                   !3, ~11
    9    15        ECHO                                                     !3
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fg7ppp%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g7ppp
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $x, !1 = $myallcreadits
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
    6     2        IS_SMALLER                                       ~2      !0, !1
          3      > RETURN                                                   ~2
    7     4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fg7ppp%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.84 ms | 1395 KiB | 17 Q