3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'CURRENT: '.current( array_filter([3=>'three',7=>'seven'], function($e){ return stripos($e,'ee'); } ) ).PHP_EOL; echo 'RESET: '.reset( array_filter([3=>'three',7=>'seven'], function($e){ return stripos($e,'ee'); } ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sUrcB
function name:  (null)
number of ops:  22
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'current'
   4     1        INIT_FCALL                                               'array_filter'
         2        SEND_VAL                                                 <array>
   5     3        RAISE_ABSTRACT_ERROR                             ~0      '%00%7Bclosure%7D%2Fin%2FsUrcB0x7f7ba727a08e'
   7     4        SEND_VAL                                                 ~0
         5        DO_ICALL                                         $1      
         6        SEND_VAR                                                 $1
         7        DO_ICALL                                         $2      
         8        CONCAT                                           ~3      'CURRENT%3A+', $2
   9     9        CONCAT                                           ~4      ~3, '%0A'
        10        ASSIGN_OBJ                                               ~4
  10    11        INIT_FCALL                                               'reset'
  11    12        INIT_FCALL                                               'array_filter'
        13        SEND_VAL                                                 <array>
  12    14        RAISE_ABSTRACT_ERROR                             ~5      '%00%7Bclosure%7D%2Fin%2FsUrcB0x7f7ba727a124'
  14    15        SEND_VAL                                                 ~5
        16        DO_ICALL                                         $6      
        17        SEND_VAR_NO_REF                               0          $6
        18        DO_ICALL                                         $7      
        19        CONCAT                                           ~8      'RESET%3A+', $7
        20        ASSIGN_OBJ                                               ~8
  16    21      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FsUrcB0x7f7ba727a08e:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sUrcB
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $e
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   RECV                                             !0      
   6     1        INIT_FCALL                                               'stripos'
         2        SEND_VAR                                                 !0
         3        SEND_VAL                                                 'ee'
         4        DO_ICALL                                         $1      
         5      > RETURN                                                   $1
   7     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FsUrcB0x7f7ba727a08e

Function %00%7Bclosure%7D%2Fin%2FsUrcB0x7f7ba727a124:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sUrcB
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $e
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  12     0  E >   RECV                                             !0      
  13     1        INIT_FCALL                                               'stripos'
         2        SEND_VAR                                                 !0
         3        SEND_VAL                                                 'ee'
         4        DO_ICALL                                         $1      
         5      > RETURN                                                   $1
  14     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FsUrcB0x7f7ba727a124

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
13.38 ms | 467 KiB | 7 Q