3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(octdec('0o20')); var_dump(octdec('020')); var_dump(base_convert('020', 8, 10)); var_dump(base_convert('0o20', 8, 10));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Aq6T0
function name:  (null)
number of ops:  29
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'octdec'
          2        SEND_VAL                                                 '0o20'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    3     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'octdec'
          8        SEND_VAL                                                 '020'
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
    4    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'base_convert'
         14        SEND_VAL                                                 '020'
         15        SEND_VAL                                                 8
         16        SEND_VAL                                                 10
         17        DO_ICALL                                         $4      
         18        SEND_VAR                                                 $4
         19        DO_ICALL                                                 
    5    20        INIT_FCALL                                               'var_dump'
         21        INIT_FCALL                                               'base_convert'
         22        SEND_VAL                                                 '0o20'
         23        SEND_VAL                                                 8
         24        SEND_VAL                                                 10
         25        DO_ICALL                                         $6      
         26        SEND_VAR                                                 $6
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.34 ms | 1395 KiB | 19 Q