3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.15 ms | 1394 KiB | 15 Q