3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo (int) '0b111'; echo intval('0b111'); echo intval('0b111', 2); echo intval('0x111', 16);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d0N95
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   CAST                                              4  ~0      '0b111'
          1        ECHO                                                         ~0
    4     2        CAST                                              4  ~1      '0b111'
          3        ECHO                                                         ~1
    5     4        INIT_FCALL                                                   'intval'
          5        SEND_VAL                                                     '0b111'
          6        SEND_VAL                                                     2
          7        DO_ICALL                                             $2      
          8        ECHO                                                         $2
    7     9        INIT_FCALL                                                   'intval'
         10        SEND_VAL                                                     '0x111'
         11        SEND_VAL                                                     16
         12        DO_ICALL                                             $3      
         13        ECHO                                                         $3
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
114.73 ms | 488 KiB | 10 Q