3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value['state 1'] = true; $value['state 2'] = false; $value['state 3'] = false; $value['state 4'] = true; $message = null; foreach($value as $key => $state) { if($state !== true) { $message .= $key . " isn't working!\n"; } } echo $message ?? 'all states working';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 16
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/Fc3G5
function name:  (null)
number of ops:  22
compiled vars:  !0 = $value, !1 = $message, !2 = $state, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'state+1'
          1        OP_DATA                                                  <true>
    3     2        ASSIGN_DIM                                               !0, 'state+2'
          3        OP_DATA                                                  <false>
    4     4        ASSIGN_DIM                                               !0, 'state+3'
          5        OP_DATA                                                  <false>
    5     6        ASSIGN_DIM                                               !0, 'state+4'
          7        OP_DATA                                                  <true>
    7     8        ASSIGN                                                   !1, null
    8     9      > FE_RESET_R                                       $9      !0, ->17
         10    > > FE_FETCH_R                                       ~10     $9, !2, ->17
         11    >   ASSIGN                                                   !3, ~10
    9    12        TYPE_CHECK                                  1014          !2
         13      > JMPZ                                                     ~12, ->16
   10    14    >   CONCAT                                           ~13     !3, '+isn%27t+working%21%0A'
         15        ASSIGN_OP                                     8          !1, ~13
    8    16    > > JMP                                                      ->10
         17    >   FE_FREE                                                  $9
   13    18        COALESCE                                         ~15     !1
         19        QM_ASSIGN                                        ~15     'all+states+working'
         20        ECHO                                                     ~15
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.28 ms | 997 KiB | 13 Q