3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (0 == '0foo') { echo "foo1"; // always false with >= PHP 8 } if (0 === '0foo') { echo "foo2"; // always false } if ('0foo' != 1) { echo "foo3"; // always true }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 2
Branch analysis from position: 1
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
Branch analysis from position: 4
Branch analysis from position: 2
filename:       /in/BJ6b8
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMPZ                                                     <false>, ->2
    4     1    >   ECHO                                                     'foo1'
    6     2    > > JMPZ                                                     <false>, ->4
    7     3    >   ECHO                                                     'foo2'
    9     4    > > JMPZ                                                     <true>, ->6
   10     5    >   ECHO                                                     'foo3'
   11     6    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.47 ms | 1447 KiB | 13 Q