3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ord(''); // 0 var_dump(chr(0)); // string(1) "" var_dump('' === chr(0)); // false var_dump(chr(ord('')) === chr(0)); // true
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XQ1jR
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     0
    3     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAL                                                 '%00'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAL                                                 <false>
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'chr'
          9        SEND_VAL                                                 0
         10        DO_ICALL                                         $2      
         11        IS_IDENTICAL                                     ~3      $2, '%00'
         12        SEND_VAL                                                 ~3
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.1 ms | 1394 KiB | 17 Q