3v4l.org

run code in 300+ PHP versions simultaneously
<?php $language = '' ?: null ?: 0 ?: \Locale::acceptFromHttp($_SERVER["HTTP_ACCEPT_LANGUAGE"]) ?: 'em'; var_dump($language);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B3XJg
function name:  (null)
number of ops:  19
compiled vars:  !0 = $language
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   JMP_SET                                          ~1      '', ->2
          1        QM_ASSIGN                                        ~1      null
          2        JMP_SET                                          ~2      ~1, ->4
          3        QM_ASSIGN                                        ~2      0
          4        JMP_SET                                          ~3      ~2, ->12
          5        INIT_STATIC_METHOD_CALL                                  'Locale', 'acceptFromHttp'
          6        CHECK_FUNC_ARG                                           
          7        FETCH_FUNC_ARG               global              $4      '_SERVER'
          8        FETCH_DIM_FUNC_ARG                               $5      $4, 'HTTP_ACCEPT_LANGUAGE'
          9        SEND_FUNC_ARG                                            $5
         10        DO_FCALL                                      0  $6      
         11        QM_ASSIGN                                        ~3      $6
         12        JMP_SET                                          ~7      ~3, ->14
         13        QM_ASSIGN                                        ~7      'em'
         14        ASSIGN                                                   !0, ~7
    5    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.5 ms | 1394 KiB | 15 Q