3v4l.org

run code in 300+ PHP versions simultaneously
<?php function clean_number($input) : string { return number_format($input,2); } $number = 55.36643455; echo clean_number($number);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sHcbT
function name:  (null)
number of ops:  6
compiled vars:  !0 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 55.3664
   10     1        INIT_FCALL                                               'clean_number'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

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

End of function clean_number

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.74 ms | 1011 KiB | 15 Q