3v4l.org

run code in 300+ PHP versions simultaneously
<?php $int = 0; $str = '0'; $float = 0.0; var_dump($int == 0); var_dump($str == 0); var_dump($float == 0); var_dump(false == 0); var_dump(is_numeric(false)); var_dump(is_numeric(null));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f3O2J
function name:  (null)
number of ops:  31
compiled vars:  !0 = $int, !1 = $str, !2 = $float
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        ASSIGN                                                   !1, '0'
    5     2        ASSIGN                                                   !2, 0
    7     3        INIT_FCALL                                               'var_dump'
          4        IS_EQUAL                                         ~6      !0, 0
          5        SEND_VAL                                                 ~6
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'var_dump'
          8        IS_EQUAL                                         ~8      !1, 0
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                                 
    9    11        INIT_FCALL                                               'var_dump'
         12        IS_EQUAL                                         ~10     !2, 0
         13        SEND_VAL                                                 ~10
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                                 
   11    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'is_numeric'
         20        SEND_VAL                                                 <false>
         21        DO_ICALL                                         $13     
         22        SEND_VAR                                                 $13
         23        DO_ICALL                                                 
   12    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'is_numeric'
         26        SEND_VAL                                                 null
         27        DO_ICALL                                         $15     
         28        SEND_VAR                                                 $15
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.85 ms | 1395 KiB | 17 Q