3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(intval('0777')); var_dump(intval('777')); var_dump(intval('0777', 0)); var_dump(intval('777', 0)); var_dump(intval('0777', 8)); var_dump(intval('777', 8)); var_dump(intval(0777, 8)); var_dump(intval(777, 8));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YmI8H
function name:  (null)
number of ops:  51
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        CAST                                          4  ~0      '0777'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'var_dump'
          5        CAST                                          4  ~2      '777'
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'intval'
         10        SEND_VAL                                                 '0777'
         11        SEND_VAL                                                 0
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'intval'
         17        SEND_VAL                                                 '777'
         18        SEND_VAL                                                 0
         19        DO_ICALL                                         $6      
         20        SEND_VAR                                                 $6
         21        DO_ICALL                                                 
    9    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'intval'
         24        SEND_VAL                                                 '0777'
         25        SEND_VAL                                                 8
         26        DO_ICALL                                         $8      
         27        SEND_VAR                                                 $8
         28        DO_ICALL                                                 
   10    29        INIT_FCALL                                               'var_dump'
         30        INIT_FCALL                                               'intval'
         31        SEND_VAL                                                 '777'
         32        SEND_VAL                                                 8
         33        DO_ICALL                                         $10     
         34        SEND_VAR                                                 $10
         35        DO_ICALL                                                 
   12    36        INIT_FCALL                                               'var_dump'
         37        INIT_FCALL                                               'intval'
         38        SEND_VAL                                                 511
         39        SEND_VAL                                                 8
         40        DO_ICALL                                         $12     
         41        SEND_VAR                                                 $12
         42        DO_ICALL                                                 
   13    43        INIT_FCALL                                               'var_dump'
         44        INIT_FCALL                                               'intval'
         45        SEND_VAL                                                 777
         46        SEND_VAL                                                 8
         47        DO_ICALL                                         $14     
         48        SEND_VAR                                                 $14
         49        DO_ICALL                                                 
         50      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.21 ms | 1400 KiB | 17 Q