3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, 'nl_NL'); $numberFormatter = new \NumberFormatter('nl_NL', \NumberFormatter::DECIMAL); var_dump($numberFormatter->parse('25,95'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fdvq5
function name:  (null)
number of ops:  17
compiled vars:  !0 = $numberFormatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 6
          2        SEND_VAL                                                 'nl_NL'
          3        DO_ICALL                                                 
    5     4        NEW                                              $2      'NumberFormatter'
          5        SEND_VAL_EX                                              'nl_NL'
          6        FETCH_CLASS_CONSTANT                             ~3      'NumberFormatter', 'DECIMAL'
          7        SEND_VAL_EX                                              ~3
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $2
    6    10        INIT_FCALL                                               'var_dump'
         11        INIT_METHOD_CALL                                         !0, 'parse'
         12        SEND_VAL_EX                                              '25%2C95'
         13        DO_FCALL                                      0  $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.96 ms | 1426 KiB | 15 Q