3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_1 = range(1, 1.9, 0.1); var_dump(count(array_filter($array_1, function($n) { return round($n, 1) == 1.7; })) >= 1); $array_2 = range(0, 0.9, 0.1); var_dump(count(array_filter($array_2, function($n) { return round($n, 1) == 0.3; })) >= 1); var_dump(count(array_filter($array_2, function($n) { return round($n, 1) == 0.6; })) >= 1); var_dump(count(array_filter($array_2, function($n) { return round($n, 1) == 0.7; })) >= 1); //=>it return false;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r8Pq8
function name:  (null)
number of ops:  53
compiled vars:  !0 = $array_1, !1 = $array_2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 1.9
          3        SEND_VAL                                                 0.1
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'array_filter'
          8        SEND_VAR                                                 !0
          9        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                         $5      
         12        COUNT                                            ~6      $5
         13        IS_SMALLER_OR_EQUAL                              ~7      1, ~6
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'range'
         17        SEND_VAL                                                 0
         18        SEND_VAL                                                 0.9
         19        SEND_VAL                                                 0.1
         20        DO_ICALL                                         $9      
         21        ASSIGN                                                   !1, $9
    7    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'array_filter'
         24        SEND_VAR                                                 !1
         25        DECLARE_LAMBDA_FUNCTION                          ~11     [1]
         26        SEND_VAL                                                 ~11
         27        DO_ICALL                                         $12     
         28        COUNT                                            ~13     $12
         29        IS_SMALLER_OR_EQUAL                              ~14     1, ~13
         30        SEND_VAL                                                 ~14
         31        DO_ICALL                                                 
    8    32        INIT_FCALL                                               'var_dump'
         33        INIT_FCALL                                               'array_filter'
         34        SEND_VAR                                                 !1
         35        DECLARE_LAMBDA_FUNCTION                          ~16     [2]
         36        SEND_VAL                                                 ~16
         37        DO_ICALL                                         $17     
         38        COUNT                                            ~18     $17
         39        IS_SMALLER_OR_EQUAL                              ~19     1, ~18
         40        SEND_VAL                                                 ~19
         41        DO_ICALL                                                 
    9    42        INIT_FCALL                                               'var_dump'
         43        INIT_FCALL                                               'array_filter'
         44        SEND_VAR                                                 !1
         45        DECLARE_LAMBDA_FUNCTION                          ~21     [3]
         46        SEND_VAL                                                 ~21
         47        DO_ICALL                                         $22     
         48        COUNT                                            ~23     $22
         49        IS_SMALLER_OR_EQUAL                              ~24     1, ~23
         50        SEND_VAL                                                 ~24
         51        DO_ICALL                                                 
   11    52      > 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/r8Pq8
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'round'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $1      
          5        IS_EQUAL                                         ~2      $1, 1.7
          6      > RETURN                                                   ~2
          7*     > 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/r8Pq8
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'round'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $1      
          5        IS_EQUAL                                         ~2      $1, 0.3
          6      > RETURN                                                   ~2
          7*     > RETURN                                                   null

End of Dynamic Function 1

Dynamic Function 2
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r8Pq8
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'round'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $1      
          5        IS_EQUAL                                         ~2      $1, 0.6
          6      > RETURN                                                   ~2
          7*     > RETURN                                                   null

End of Dynamic Function 2

Dynamic Function 3
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r8Pq8
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'round'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $1      
          5        IS_EQUAL                                         ~2      $1, 0.7
          6      > RETURN                                                   ~2
          7*     > RETURN                                                   null

End of Dynamic Function 3

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.05 ms | 1014 KiB | 17 Q