3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = '0xa'; $y = '10'; var_dump($x == $y); $x = (int)$x; $y = (int)$y; echo "$x, $y\n"; var_dump($x == $y);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qQo0o
function name:  (null)
number of ops:  20
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        INIT_FCALL                                               'var_dump'
          3        IS_EQUAL                                         ~4      !0, !1
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                                 
    6     6        CAST                                          4  ~6      !0
          7        ASSIGN                                                   !0, ~6
    7     8        CAST                                          4  ~8      !1
          9        ASSIGN                                                   !1, ~8
    8    10        ROPE_INIT                                     4  ~11     !0
         11        ROPE_ADD                                      1  ~11     ~11, '%2C+'
         12        ROPE_ADD                                      2  ~11     ~11, !1
         13        ROPE_END                                      3  ~10     ~11, '%0A'
         14        ECHO                                                     ~10
   10    15        INIT_FCALL                                               'var_dump'
         16        IS_EQUAL                                         ~13     !0, !1
         17        SEND_VAL                                                 ~13
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.56 ms | 1398 KiB | 15 Q