3v4l.org

run code in 300+ PHP versions simultaneously
<?php $empty_string = ""; $value1 = $empty_string1 ?: "non-empty string"; var_dump($value1); $non_empty_string = "something"; $value2 = $empty_string2 ?: "non-empty string"; var_dump($value2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y6Mcf
function name:  (null)
number of ops:  15
compiled vars:  !0 = $empty_string, !1 = $value1, !2 = $empty_string1, !3 = $non_empty_string, !4 = $value2, !5 = $empty_string2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
          1        JMP_SET                                          ~7      !2, ->3
          2        QM_ASSIGN                                        ~7      'non-empty+string'
          3        ASSIGN                                                   !1, ~7
          4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    3     7        ASSIGN                                                   !3, 'something'
          8        JMP_SET                                          ~11     !5, ->10
          9        QM_ASSIGN                                        ~11     'non-empty+string'
         10        ASSIGN                                                   !4, ~11
         11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !4
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.35 ms | 1394 KiB | 15 Q