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 == true); 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/ph3r6
function name:  (null)
number of ops:  23
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                                                 
    9    14        INIT_FCALL                                               'var_dump'
         15        BOOL                                             ~9      !0
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                                 
   11    18        INIT_FCALL                                               'var_dump'
         19        IS_IDENTICAL                                     ~11     !0, 22
         20        SEND_VAL                                                 ~11
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.91 ms | 1395 KiB | 15 Q