3v4l.org

run code in 300+ PHP versions simultaneously
<?php $something = true; $foo = array(); isset($something) ? $foo[] = 'yes' : null; print_r($foo);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nCeSk
function name:  (null)
number of ops:  14
compiled vars:  !0 = $something, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <true>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ISSET_ISEMPTY_CV                                         !0
          3      > JMPZ                                                     ~4, ->8
          4    >   ASSIGN_DIM                                       ~5      !1
          5        OP_DATA                                                  'yes'
          6        QM_ASSIGN                                        ~6      ~5
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~6      null
          9    >   FREE                                                     ~6
    6    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.42 ms | 1394 KiB | 15 Q