3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = [1, 2, 3, 4, 5]; $b = array_filter($a, fn ($x) => $x <= 3); $c = array_filter($a, fn ($x) => $x >= 3); var_dump(array_is_list($a)); var_dump(array_is_list($b)); var_dump(array_is_list($c));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VegUr
function name:  (null)
number of ops:  32
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    5     1        INIT_FCALL                                                   'array_filter'
          2        SEND_VAR                                                     !0
          3        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
          4        SEND_VAL                                                     ~4
          5        DO_ICALL                                             $5      
          6        ASSIGN                                                       !1, $5
    6     7        INIT_FCALL                                                   'array_filter'
          8        SEND_VAR                                                     !0
          9        DECLARE_LAMBDA_FUNCTION                              ~7      [1]
         10        SEND_VAL                                                     ~7
         11        DO_ICALL                                             $8      
         12        ASSIGN                                                       !2, $8
    8    13        INIT_FCALL                                                   'var_dump'
         14        INIT_FCALL                                                   'array_is_list'
         15        SEND_VAR                                                     !0
         16        DO_ICALL                                             $10     
         17        SEND_VAR                                                     $10
         18        DO_ICALL                                                     
    9    19        INIT_FCALL                                                   'var_dump'
         20        INIT_FCALL                                                   'array_is_list'
         21        SEND_VAR                                                     !1
         22        DO_ICALL                                             $12     
         23        SEND_VAR                                                     $12
         24        DO_ICALL                                                     
   10    25        INIT_FCALL                                                   'var_dump'
         26        INIT_FCALL                                                   'array_is_list'
         27        SEND_VAR                                                     !2
         28        DO_ICALL                                             $14     
         29        SEND_VAR                                                     $14
         30        DO_ICALL                                                     
         31      > 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/VegUr
function name:  {closure:/in/VegUr:5}
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
          1        IS_SMALLER_OR_EQUAL                                  ~1      !0, 3
          2      > RETURN                                                       ~1
          3*     > RETURN                                                       null

End of Dynamic Function 0

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

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.8 ms | 1722 KiB | 16 Q