3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Expect to see "fr", but get null var_dump(Locale::lookup(["fr"], str_repeat("a", 157), false, "fr")); var_dump(intl_get_error_code()); var_dump(intl_get_error_message());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/049Fo
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_STATIC_METHOD_CALL                                  'Locale', 'lookup'
          2        SEND_VAL_EX                                              <array>
          3        INIT_FCALL                                               'str_repeat'
          4        SEND_VAL                                                 'a'
          5        SEND_VAL                                                 157
          6        DO_ICALL                                         $0      
          7        SEND_VAR_NO_REF_EX                                       $0
          8        SEND_VAL_EX                                              <false>
          9        SEND_VAL_EX                                              'fr'
         10        DO_FCALL                                      0  $1      
         11        SEND_VAR                                                 $1
         12        DO_ICALL                                                 
    6    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL_BY_NAME                                       'intl_get_error_code'
         15        DO_FCALL                                      0  $3      
         16        SEND_VAR                                                 $3
         17        DO_ICALL                                                 
    7    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL_BY_NAME                                       'intl_get_error_message'
         20        DO_FCALL                                      0  $5      
         21        SEND_VAR                                                 $5
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.51 ms | 1399 KiB | 17 Q