3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_currencies() { return array_unique( array( 'AED' => array('AE'), 'ARS' => array('AR'), 'AUD' => array('AU', 'CC', 'CX', 'HM', 'KI', 'NF', 'NR', 'TV'), 'BDT' => array('BD'), 'BRL' => array('BR'), 'BGN' => array('BG'), 'CAD' => array('CA'), 'CLP' => array('CL'), 'CNY' => array('CN'), 'COP' => array('CO'), 'CZK' => array('CZ'), 'DKK' => array('DK', 'FO', 'GL'), 'DOP' => array('DO'), 'EUR' => array('AD', 'AT', 'AX', 'BE', 'BL', 'CY', 'DE', 'EE', 'ES', 'FI', 'FR', 'GF', 'GP', 'GR', 'IE', 'IT', 'LT', 'LU', 'LV', 'MC', 'ME', 'MF', 'MQ', 'MT', 'NL', 'PM', 'PT', 'RE', 'SI', 'SK', 'SM', 'TF', 'VA', 'YT'), 'HKD' => array('HK'), 'HRK' => array('HR'), 'HUF' => array('HU'), 'ISK' => array('IS'), 'IDR' => array('ID'), 'INR' => array('IN'), 'NPR' => array('NP'), 'ILS' => array('IL'), 'JPY' => array('JP'), 'KIP' => array('LA'), 'KRW' => array('KR'), 'MYR' => array('MY'), 'MXN' => array('MX'), 'NGN' => array('NG'), 'NOK' => array('BV', 'NO', 'SJ'), 'NZD' => array('CK', 'NU', 'NZ', 'PN', 'TK'), 'PYG' => array('PY'), 'PHP' => array('PH'), 'PLN' => array('PL'), 'GBP' => array('GB', 'GG', 'GS', 'IM', 'JE'), 'RON' => array('RO'), 'RUB' => array('RU'), 'SGD' => array('SG'), 'ZAR' => array('ZA'), 'SEK' => array('SE'), 'CHF' => array('LI'), 'TWD' => array('TW'), 'THB' => array('TH'), 'TRY' => array('TR'), 'UAH' => array('UA'), 'USD' => array('BQ', 'EC', 'FM', 'IO', 'MH', 'PW', 'TC', 'TL', 'US', 'VG'), 'VND' => array('VN'), 'EGP' => array('EG') ) ); } print_r(get_currencies());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/otgff
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   60     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'get_currencies'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Function get_currencies:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/otgff
function name:  get_currencies
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'array_unique'
    7     1        SEND_VAL                                                 <array>
          2        DO_ICALL                                         $0      
          3      > RETURN                                                   $0
   57     4*     > RETURN                                                   null

End of function get_currencies

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.13 ms | 1388 KiB | 18 Q