3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locale = 'it'; list(,$language) = explode('_', strtolower(str_replace('-', '_', $locale))); var_dump($language);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SMpPu
function name:  (null)
number of ops:  20
compiled vars:  !0 = $locale, !1 = $language
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'it'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '_'
          3        INIT_FCALL                                               'strtolower'
          4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 '-'
          6        SEND_VAL                                                 '_'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        FETCH_LIST_R                                     $6      $5, 1
         14        ASSIGN                                                   !1, $6
         15        FREE                                                     $5
    4    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.36 ms | 1394 KiB | 21 Q