3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new \NumberFormatter('en', \NumberFormatter::DECIMAL); $value = $formatter->parse('2147483647', \NumberFormatter::TYPE_INT32); var_dump($value); $formatter = new \NumberFormatter('en', \NumberFormatter::DECIMAL); $value = $formatter->parse('2147483650', \NumberFormatter::TYPE_INT64); var_dump($value);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/06J90
function name:  (null)
number of ops:  31
compiled vars:  !0 = $formatter, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'NumberFormatter'
          1        SEND_VAL_EX                                              'en'
          2        FETCH_CLASS_CONSTANT                             ~3      'NumberFormatter', 'DECIMAL'
          3        SEND_VAL_EX                                              ~3
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
    3     6        INIT_METHOD_CALL                                         !0, 'parse'
          7        SEND_VAL_EX                                              '2147483647'
          8        FETCH_CLASS_CONSTANT                             ~6      'NumberFormatter', 'TYPE_INT32'
          9        SEND_VAL_EX                                              ~6
         10        DO_FCALL                                      0  $7      
         11        ASSIGN                                                   !1, $7
    4    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    6    15        NEW                                              $10     'NumberFormatter'
         16        SEND_VAL_EX                                              'en'
         17        FETCH_CLASS_CONSTANT                             ~11     'NumberFormatter', 'DECIMAL'
         18        SEND_VAL_EX                                              ~11
         19        DO_FCALL                                      0          
         20        ASSIGN                                                   !0, $10
    7    21        INIT_METHOD_CALL                                         !0, 'parse'
         22        SEND_VAL_EX                                              '2147483650'
         23        FETCH_CLASS_CONSTANT                             ~14     'NumberFormatter', 'TYPE_INT64'
         24        SEND_VAL_EX                                              ~14
         25        DO_FCALL                                      0  $15     
         26        ASSIGN                                                   !1, $15
    8    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !1
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.95 ms | 1395 KiB | 15 Q