3v4l.org

run code in 300+ PHP versions simultaneously
<?php $truths = [ '0 === 0', '0 === 0.0', '0 == 0', '0 === 0.0', ]; foreach ($truths as $truth) { echo $truth . ': ' . (eval("return $truth;") ? 'true' : 'false') . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/A8Fb3
function name:  (null)
number of ops:  18
compiled vars:  !0 = $truths, !1 = $truth
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1      > FE_RESET_R                                       $3      !0, ->16
          2    > > FE_FETCH_R                                               $3, !1, ->16
   11     3    >   CONCAT                                           ~4      !1, '%3A+'
          4        ROPE_INIT                                     3  ~6      'return+'
          5        ROPE_ADD                                      1  ~6      ~6, !1
          6        ROPE_END                                      2  ~5      ~6, '%3B'
          7        INCLUDE_OR_EVAL                                  $8      ~5, EVAL
          8      > JMPZ                                                     $8, ->11
          9    >   QM_ASSIGN                                        ~9      'true'
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~9      'false'
         12    >   CONCAT                                           ~10     ~4, ~9
         13        CONCAT                                           ~11     ~10, '%0A'
         14        ECHO                                                     ~11
   10    15      > JMP                                                      ->2
         16    >   FE_FREE                                                  $3
   12    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.45 ms | 1394 KiB | 13 Q