3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = array( array(3075,15,461.25,16,535.05), array(3075,15,461.25808,16,535.05),//to be removed array(3075,15,461.2,16,535.05234)//to be removed ); $value = array_filter($value, function ($v) { foreach ($v as $x) { if (strlen(substr(strrchr($x, "."), 1)) > 2) return false; } return true; }); var_dump($value);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WEI5o
function name:  (null)
number of ops:  11
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'array_filter'
          2        SEND_VAR                                                 !0
   10     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FWEI5o%3A10%240'
   16     4        SEND_VAL                                                 ~2
          5        DO_ICALL                                         $3      
    9     6        ASSIGN                                                   !0, $3
   18     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FWEI5o%3A10%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 17
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/WEI5o
function name:  {closure}
number of ops:  20
compiled vars:  !0 = $v, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1      > FE_RESET_R                                       $2      !0, ->17
          2    > > FE_FETCH_R                                               $2, !1, ->17
   12     3    >   INIT_FCALL                                               'substr'
          4        INIT_FCALL                                               'strrchr'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 '.'
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $4      
         11        STRLEN                                           ~5      $4
         12        IS_SMALLER                                               2, ~5
         13      > JMPZ                                                     ~6, ->16
   13    14    >   FE_FREE                                                  $2
         15      > RETURN                                                   <false>
   11    16    > > JMP                                                      ->2
         17    >   FE_FREE                                                  $2
   15    18      > RETURN                                                   <true>
   16    19*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FWEI5o%3A10%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.74 ms | 1396 KiB | 21 Q