3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.44 ms | 1398 KiB | 15 Q