3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array(0, '', NULL, FALSE); $result = array(); foreach ($values as $x) { foreach ($values as $y) { $result[var_export($x, TRUE)][var_export($y, TRUE)] = in_array($x, array($y)); } } var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 25
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 25
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 23
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 23
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 23
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/OlbBU
function name:  (null)
number of ops:  30
compiled vars:  !0 = $values, !1 = $result, !2 = $x, !3 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2      > FE_RESET_R                                       $6      !0, ->25
          3    > > FE_FETCH_R                                               $6, !2, ->25
    6     4    > > FE_RESET_R                                       $7      !0, ->23
          5    > > FE_FETCH_R                                               $7, !3, ->23
    7     6    >   INIT_FCALL                                               'var_export'
          7        SEND_VAR                                                 !2
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $8      
         10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !3
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $10     
         14        INIT_FCALL                                               'in_array'
         15        SEND_VAR                                                 !2
         16        INIT_ARRAY                                       ~12     !3
         17        SEND_VAL                                                 ~12
         18        DO_ICALL                                         $13     
         19        FETCH_DIM_W                                      $9      !1, $8
         20        ASSIGN_DIM                                               $9, $10
         21        OP_DATA                                                  $13
    6    22      > JMP                                                      ->5
         23    >   FE_FREE                                                  $7
    5    24      > JMP                                                      ->3
         25    >   FE_FREE                                                  $6
   10    26        INIT_FCALL                                               'var_export'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.46 ms | 1396 KiB | 17 Q