3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = "en-h-us"; var_dump(substr($code, strrpos(code, "-")));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9vaoe
function name:  (null)
number of ops:  14
compiled vars:  !0 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'en-h-us'
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'substr'
          3        SEND_VAR                                                 !0
          4        INIT_FCALL                                               'strrpos'
          5        FETCH_CONSTANT                                   ~2      'code'
          6        SEND_VAL                                                 ~2
          7        SEND_VAL                                                 '-'
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.42 ms | 939 KiB | 20 Q