3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aLoopValue = array('', ' ' , false, true, array(), null, '0', 0, 0.0, '\0'); foreach ($aLoopValue as $val) { echo 'aa'.var_dump(isset($val)).' / '.var_dump(empty($val)).' / '.var_dump(is_null($val)).chr(10); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 23
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/RU22n
function name:  (null)
number of ops:  25
compiled vars:  !0 = $aLoopValue, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > FE_RESET_R                                       $3      !0, ->23
          2    > > FE_FETCH_R                                               $3, !1, ->23
    4     3    >   INIT_FCALL                                               'var_dump'
          4        ISSET_ISEMPTY_CV                                 ~4      !1
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                         $5      
          7        CONCAT                                           ~6      'aa', $5
          8        CONCAT                                           ~7      ~6, '+%2F+'
          9        INIT_FCALL                                               'var_dump'
         10        ISSET_ISEMPTY_CV                                 ~8      !1
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                         $9      
         13        CONCAT                                           ~10     ~7, $9
         14        CONCAT                                           ~11     ~10, '+%2F+'
         15        INIT_FCALL                                               'var_dump'
         16        TYPE_CHECK                                    2  ~12     !1
         17        SEND_VAL                                                 ~12
         18        DO_ICALL                                         $13     
         19        CONCAT                                           ~14     ~11, $13
         20        CONCAT                                           ~15     ~14, '%0A'
         21        ECHO                                                     ~15
    3    22      > JMP                                                      ->2
         23    >   FE_FREE                                                  $3
    5    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.72 ms | 1395 KiB | 15 Q