3v4l.org

run code in 300+ PHP versions simultaneously
<? var_dump((int) "0x123"); // int(0) var_dump((float) "0x123"); // float(0) var_dump('0x123' == '291'); // TRUE var_dump((int) '0x123' == (int) '291'); // FALSE
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dOf52
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        CAST                                          4  ~0      '0x123'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'var_dump'
          5        CAST                                          5  ~2      '0x123'
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAL                                                 <false>
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'var_dump'
         12        CAST                                          4  ~5      '0x123'
         13        CAST                                          4  ~6      '291'
         14        IS_EQUAL                                         ~7      ~5, ~6
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.26 ms | 1394 KiB | 15 Q