3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(getEncodings()); function getEncodings() { return array_map( 'strtolower', array_unique( array_merge( $enc = array_diff(mb_list_encodings(), ['BASE64', 'UUENCODE', 'HTML-ENTITIES', 'Quoted-Printable']), call_user_func_array( 'array_merge', array_map( "mb_encoding_aliases", $enc ) ) ) ) ); }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oXR8N
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL_BY_NAME                                           'getEncodings'
          2        DO_FCALL                                          0  $0      
          3        SEND_VAR                                                     $0
          4        DO_ICALL                                                     
   21     5      > RETURN                                                       1

Function getencodings:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oXR8N
function name:  getEncodings
number of ops:  28
compiled vars:  !0 = $enc
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                                   'array_map'
    7     1        SEND_VAL                                                     'strtolower'
    8     2        INIT_FCALL                                                   'array_unique'
    9     3        INIT_FCALL                                                   'array_merge'
   10     4        INIT_FCALL                                                   'array_diff'
          5        INIT_FCALL                                                   'mb_list_encodings'
          6        DO_ICALL                                             $1      
          7        SEND_VAR                                                     $1
          8        SEND_VAL                                                     <array>
          9        DO_ICALL                                             $2      
         10        ASSIGN                                               ~3      !0, $2
         11        SEND_VAL                                                     ~3
   11    12        INIT_FCALL                                                   'array_merge'
   13    13        INIT_FCALL                                                   'array_map'
   14    14        SEND_VAL                                                     'mb_encoding_aliases'
   15    15        SEND_VAR                                                     !0
   13    16        DO_ICALL                                             $4      
   15    17        SEND_ARRAY                                                   $4
         18        CHECK_UNDEF_ARGS                                             
         19        DO_FCALL                                          1  $5      
         20        SEND_VAR                                                     $5
    9    21        DO_ICALL                                             $6      
   15    22        SEND_VAR                                                     $6
    8    23        DO_ICALL                                             $7      
   15    24        SEND_VAR                                                     $7
    6    25        DO_ICALL                                             $8      
   15    26      > RETURN                                                       $8
   21    27*     > RETURN                                                       null

End of function getencodings

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.5 ms | 2918 KiB | 19 Q