3v4l.org

run code in 300+ PHP versions simultaneously
<?php intval('42', 8); // => 34 intval(42, 8); // => 42 ! ?> PHP considers the 42 as being already an integer, and doesn't apply any conversion. And supplying <?php intval(49, 8); // => 49 ! ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F5K1n
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'intval'
          1        SEND_VAL                                                 '42'
          2        SEND_VAL                                                 8
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'intval'
          5        SEND_VAL                                                 42
          6        SEND_VAL                                                 8
          7        DO_ICALL                                                 
    5     8        ECHO                                                     'PHP+considers+the+42+as+being+already+an+integer%2C+and+doesn%27t+apply+any+conversion.+And+supplying%0A'
    7     9        INIT_FCALL                                               'intval'
         10        SEND_VAL                                                 49
         11        SEND_VAL                                                 8
         12        DO_ICALL                                                 
    8    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.57 ms | 1398 KiB | 15 Q