3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limit = null; while ($limit === null && $limit--) { var_dump($limit ?? 'hi'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
Branch analysis from position: 11
Branch analysis from position: 11
filename:       /in/ZRdaW
function name:  (null)
number of ops:  13
compiled vars:  !0 = $limit
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    5     1      > JMP                                                      ->7
    6     2    >   INIT_FCALL                                               'var_dump'
          3        COALESCE                                         ~2      !0
          4        QM_ASSIGN                                        ~2      'hi'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
    5     7    >   TYPE_CHECK                                    2  ~4      !0
          8      > JMPZ_EX                                          ~4      ~4, ->11
          9    >   POST_DEC                                         ~5      !0
         10        BOOL                                             ~4      ~5
         11    > > JMPNZ                                                    ~4, ->2
    7    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.04 ms | 1399 KiB | 15 Q