3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.73 ms | 1394 KiB | 15 Q