3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.39 ms | 1394 KiB | 15 Q