3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function my_base_convert(string $number, int $frombase, int $tobase):string{ return base_convert($number,$frombase,$tobase); } var_dump(my_base_convert("255",10,16));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9nMnh
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'my_base_convert'
          2        SEND_VAL                                                 '255'
          3        SEND_VAL                                                 10
          4        SEND_VAL                                                 16
          5        DO_FCALL                                      0  $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function my_base_convert:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9nMnh
function name:  my_base_convert
number of ops:  12
compiled vars:  !0 = $number, !1 = $frombase, !2 = $tobase
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3        INIT_FCALL                                               'base_convert'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $3      
          8        VERIFY_RETURN_TYPE                                       $3
          9      > RETURN                                                   $3
    5    10*       VERIFY_RETURN_TYPE                                       
         11*     > RETURN                                                   null

End of function my_base_convert

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
272.56 ms | 1397 KiB | 19 Q