3v4l.org

run code in 500+ PHP versions simultaneously
<?php const PERMANENT = -1; $max_ages = array_fill(0, 1000, 2345); $max_ages[500] = PERMANENT; if (in_array(PERMANENT, $max_ages)) { $max_ages = array_filter($max_ages, function ($max_age) { return $max_age !== PERMANENT; }); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/kFF5V
function name:  (null)
number of ops:  20
compiled vars:  !0 = $max_ages
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                                'PERMANENT', -1
    5     1        INIT_FCALL                                                   'array_fill'
          2        SEND_VAL                                                     0
          3        SEND_VAL                                                     1000
          4        SEND_VAL                                                     2345
          5        DO_ICALL                                             $1      
          6        ASSIGN                                                       !0, $1
    6     7        FETCH_CONSTANT                                       ~4      'PERMANENT'
          8        ASSIGN_DIM                                                   !0, 500
          9        OP_DATA                                                      ~4
    8    10        FETCH_CONSTANT                                       ~5      'PERMANENT'
         11        FRAMELESS_ICALL_2                in_array            ~6      ~5, !0
         12      > JMPZ                                                         ~6, ->19
    9    13    >   INIT_FCALL                                                   'array_filter'
         14        SEND_VAR                                                     !0
         15        DECLARE_LAMBDA_FUNCTION                              ~7      [0]
   11    16        SEND_VAL                                                     ~7
    9    17        DO_ICALL                                             $8      
         18        ASSIGN                                                       !0, $8
   12    19    > > 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/kFF5V
function name:  {closure:/in/kFF5V:9}
number of ops:  5
compiled vars:  !0 = $max_age
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   RECV                                                 !0      
   10     1        FETCH_CONSTANT                                       ~1      'PERMANENT'
          2        IS_NOT_IDENTICAL                                     ~2      !0, ~1
          3      > RETURN                                                       ~2
   11     4*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.66 ms | 3252 KiB | 15 Q