3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = '0xa'; $y = 10; echo $x == $y; echo $x == (string)$y;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qdHl0
function name:  (null)
number of ops:  8
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '0xa'
    4     1        ASSIGN                                                   !1, 10
    5     2        IS_EQUAL                                         ~4      !0, !1
          3        ECHO                                                     ~4
    6     4        CAST                                          6  ~5      !1
          5        IS_EQUAL                                         ~6      !0, ~5
          6        ECHO                                                     ~6
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.96 ms | 1392 KiB | 13 Q