3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'free'=> 'No', 'me' => 'No', 'taken' =>'yes', 'Foo' => 'No', 'Bar' => 'Yes', 'something' =>'Yes' ]; if($array['free'] == 'no'){ $array['free'] = 0; }else{ $array['free'] = 1; } if($array['taken'] == 'no'){ $array['taken'] = 0; }else{ $array['taken'] = 1; } var_dump($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
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 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
Branch analysis from position: 15
filename:       /in/Xnj1b
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        FETCH_DIM_R                                      ~2      !0, 'free'
          2        IS_EQUAL                                                 ~2, 'no'
          3      > JMPZ                                                     ~3, ->7
   14     4    >   ASSIGN_DIM                                               !0, 'free'
          5        OP_DATA                                                  0
          6      > JMP                                                      ->9
   16     7    >   ASSIGN_DIM                                               !0, 'free'
          8        OP_DATA                                                  1
   18     9    >   FETCH_DIM_R                                      ~6      !0, 'taken'
         10        IS_EQUAL                                                 ~6, 'no'
         11      > JMPZ                                                     ~7, ->15
   19    12    >   ASSIGN_DIM                                               !0, 'taken'
         13        OP_DATA                                                  0
         14      > JMP                                                      ->17
   21    15    >   ASSIGN_DIM                                               !0, 'taken'
         16        OP_DATA                                                  1
   23    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.49 ms | 1395 KiB | 15 Q