3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (int)'true'; # => 0 echo (int)'false'; # => 1 echo (bool)'true'; # => 1 echo (bool)'false'; # => 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g58Gp
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          4  ~0      'true'
          1        ECHO                                                     ~0
    6     2        CAST                                          4  ~1      'false'
          3        ECHO                                                     ~1
    9     4        BOOL                                             ~2      'true'
          5        ECHO                                                     ~2
   12     6        BOOL                                             ~3      'false'
          7        ECHO                                                     ~3
   13     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.35 ms | 1392 KiB | 13 Q