3v4l.org

run code in 300+ PHP versions simultaneously
<?php $something = false; $foo = array(); $something === true ? $foo[] = 'yes' : null; print_r($foo); $somethingElse = true; $bar = array(); $somethingElse === true ? $bar[] = 'yes' : null; print_r($bar);
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
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
Branch analysis from position: 21
filename:       /in/AVY7S
function name:  (null)
number of ops:  27
compiled vars:  !0 = $something, !1 = $foo, !2 = $somethingElse, !3 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <false>
    3     1        ASSIGN                                                   !1, <array>
    4     2        TYPE_CHECK                                    8          !0
          3      > JMPZ                                                     ~6, ->8
          4    >   ASSIGN_DIM                                       ~7      !1
          5        OP_DATA                                                  'yes'
          6        QM_ASSIGN                                        ~8      ~7
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~8      null
          9    >   FREE                                                     ~8
    6    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    8    13        ASSIGN                                                   !2, <true>
    9    14        ASSIGN                                                   !3, <array>
   10    15        TYPE_CHECK                                    8          !2
         16      > JMPZ                                                     ~12, ->21
         17    >   ASSIGN_DIM                                       ~13     !3
         18        OP_DATA                                                  'yes'
         19        QM_ASSIGN                                        ~14     ~13
         20      > JMP                                                      ->22
         21    >   QM_ASSIGN                                        ~14     null
         22    >   FREE                                                     ~14
   12    23        INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.94 ms | 1396 KiB | 15 Q