3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locale = 'it_ch'; list(,$language) = explode('_', strtolower(str_replace('-', '_', $locale))); echo $language;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/35E68
function name:  (null)
number of ops:  18
compiled vars:  !0 = $locale, !1 = $language
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'it_ch'
    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        ECHO                                                     !1
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.44 ms | 1394 KiB | 19 Q