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));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3JUMc
function name:  (null)
number of ops:  37
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                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.14 ms | 1396 KiB | 17 Q