3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_option($val) { return null; } $locale = get_option( 'language_code' ) ?? 'en_gb'; echo $locale;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZR7pP
function name:  (null)
number of ops:  8
compiled vars:  !0 = $locale
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'get_option'
          1        SEND_VAL                                                 'language_code'
          2        DO_FCALL                                      0  $1      
          3        COALESCE                                         ~2      $1
          4        QM_ASSIGN                                        ~2      'en_gb'
          5        ASSIGN                                                   !0, ~2
    8     6        ECHO                                                     !0
          7      > RETURN                                                   1

Function get_option:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZR7pP
function name:  get_option
number of ops:  3
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1      > RETURN                                                   null
    5     2*     > RETURN                                                   null

End of function get_option

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.84 ms | 1396 KiB | 14 Q