3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = "2sdfsdfjoi"; var_dump($number == 2); // = true (wat?) $number = "22sdfsdfjoi"; var_dump($number == 2); // = false (makes sense...) var_dump($number == 22); // = true (wait, wat?) var_dump($number === 22); // === the only way to be sure.
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3pkVu
function name:  (null)
number of ops:  19
compiled vars:  !0 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2sdfsdfjoi'
    4     1        INIT_FCALL                                               'var_dump'
          2        IS_EQUAL                                         ~2      !0, 2
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    6     5        ASSIGN                                                   !0, '22sdfsdfjoi'
    7     6        INIT_FCALL                                               'var_dump'
          7        IS_EQUAL                                         ~5      !0, 2
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'var_dump'
         11        IS_EQUAL                                         ~7      !0, 22
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
   10    14        INIT_FCALL                                               'var_dump'
         15        IS_IDENTICAL                                     ~9      !0, 22
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.3 ms | 1394 KiB | 15 Q