3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo number_format(round(43.2550, 2), strlen(substr(strrchr(3.2550, "."), 1)), ',', '.'); echo strlen(substr(strrchr(3.2550, "."), 1)); echo PHP_EOL; //echo number_format(round(553.4000, 2), strlen(substr(strrchr(3.4000, "."), 1)), ',', '.'); echo strlen(substr(strrchr(3.4000, "."), 1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GljGK
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'substr'
          1        INIT_FCALL                                               'strrchr'
          2        SEND_VAL                                                 3.255
          3        SEND_VAL                                                 '.'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        SEND_VAL                                                 1
          7        DO_ICALL                                         $1      
          8        STRLEN                                           ~2      $1
          9        ECHO                                                     ~2
    4    10        ECHO                                                     '%0A'
    6    11        INIT_FCALL                                               'substr'
         12        INIT_FCALL                                               'strrchr'
         13        SEND_VAL                                                 3.4
         14        SEND_VAL                                                 '.'
         15        DO_ICALL                                         $3      
         16        SEND_VAR                                                 $3
         17        SEND_VAL                                                 1
         18        DO_ICALL                                         $4      
         19        STRLEN                                           ~5      $4
         20        ECHO                                                     ~5
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.49 ms | 1395 KiB | 17 Q