3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array( array("''", ''), array("'0'", '0'), array("'0.0'", '0.0'), array("'0.0_'", '0.0_'), array("'1'", '1'), array("'1.0'", '1.0'), array("'1.0_'", '1.0_'), array("'<p/>'", '<p/>'), array("'<p>1</p>'", '<p>1</p>'), array("'<p>php</p>'", '<p>php</p>'), array("'php'", 'php'), array("'_0'", '_0'), array("'_0.0'", '_0.0'), array("'_0.0_'", '_0.0_'), array("'_1'", '_1'), array("'_1.0'", '_1.0'), array("'_1.0_'", '_1.0_'), array("0", 0), array("0.0", 0.0), array("1", 1), array("1.0", 1.0), array("array()", array()), array("false", false), array("null", null), ); $valuesTotal = count($values); for ($i = 0; $i < ($valuesTotal - 1); $i++) { foreach (range($i + 1, $valuesTotal - 1) as $k) { list($baseDisplay, $base) = $values[$i]; list($compareDisplay, $compare) = $values[$k]; echo "$i:$k $baseDisplay == $compareDisplay: "; echo ($base == $compare)?"TRUE\n":"FALSE\n"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 5
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 41
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 41
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 38
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 5
Branch analysis from position: 46
Branch analysis from position: 5
Branch analysis from position: 41
filename:       /in/6YmD3
function name:  (null)
number of ops:  47
compiled vars:  !0 = $values, !1 = $valuesTotal, !2 = $i, !3 = $k, !4 = $baseDisplay, !5 = $base, !6 = $compareDisplay, !7 = $compare
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   28     1        COUNT                                            ~9      !0
          2        ASSIGN                                                   !1, ~9
   30     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->43
   31     5    >   INIT_FCALL                                               'range'
          6        ADD                                              ~12     !2, 1
          7        SEND_VAL                                                 ~12
          8        SUB                                              ~13     !1, 1
          9        SEND_VAL                                                 ~13
         10        DO_ICALL                                         $14     
         11      > FE_RESET_R                                       $15     $14, ->41
         12    > > FE_FETCH_R                                               $15, !3, ->41
   32    13    >   FETCH_DIM_R                                      ~16     !0, !2
         14        FETCH_LIST_R                                     $17     ~16, 0
         15        ASSIGN                                                   !4, $17
         16        FETCH_LIST_R                                     $19     ~16, 1
         17        ASSIGN                                                   !5, $19
         18        FREE                                                     ~16
   33    19        FETCH_DIM_R                                      ~21     !0, !3
         20        FETCH_LIST_R                                     $22     ~21, 0
         21        ASSIGN                                                   !6, $22
         22        FETCH_LIST_R                                     $24     ~21, 1
         23        ASSIGN                                                   !7, $24
         24        FREE                                                     ~21
   34    25        ROPE_INIT                                     8  ~27     !2
         26        ROPE_ADD                                      1  ~27     ~27, '%3A'
         27        ROPE_ADD                                      2  ~27     ~27, !3
         28        ROPE_ADD                                      3  ~27     ~27, '+'
         29        ROPE_ADD                                      4  ~27     ~27, !4
         30        ROPE_ADD                                      5  ~27     ~27, '+%3D%3D+'
         31        ROPE_ADD                                      6  ~27     ~27, !6
         32        ROPE_END                                      7  ~26     ~27, '%3A+'
         33        ECHO                                                     ~26
   35    34        IS_EQUAL                                                 !5, !7
         35      > JMPZ                                                     ~31, ->38
         36    >   QM_ASSIGN                                        ~32     'TRUE%0A'
         37      > JMP                                                      ->39
         38    >   QM_ASSIGN                                        ~32     'FALSE%0A'
         39    >   ECHO                                                     ~32
   31    40      > JMP                                                      ->12
         41    >   FE_FREE                                                  $15
   30    42        PRE_INC                                                  !2
         43    >   SUB                                              ~34     !1, 1
         44        IS_SMALLER                                               !2, ~34
         45      > JMPNZ                                                    ~35, ->5
   37    46    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.08 ms | 1400 KiB | 15 Q