3v4l.org

run code in 500+ PHP versions simultaneously
<?php $formatter = new NumberFormatter('en', NumberFormatter::DURATION); var_dump($formatter->format(1234.0)); var_dump($formatter->format(1234.5)); var_dump($formatter->format(1234.5678));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/unbsD
function name:  (null)
number of ops:  25
compiled vars:  !0 = $formatter
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $1      'NumberFormatter'
          1        SEND_VAL_EX                                                  'en'
          2        FETCH_CLASS_CONSTANT                                 ~2      'NumberFormatter', 'DURATION'
          3        SEND_VAL_EX                                                  ~2
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !0, $1
    4     6        INIT_FCALL                                                   'var_dump'
          7        INIT_METHOD_CALL                                             !0, 'format'
          8        SEND_VAL_EX                                                  1234
          9        DO_FCALL                                          0  $5      
         10        SEND_VAR                                                     $5
         11        DO_ICALL                                                     
    5    12        INIT_FCALL                                                   'var_dump'
         13        INIT_METHOD_CALL                                             !0, 'format'
         14        SEND_VAL_EX                                                  1234.5
         15        DO_FCALL                                          0  $7      
         16        SEND_VAR                                                     $7
         17        DO_ICALL                                                     
    6    18        INIT_FCALL                                                   'var_dump'
         19        INIT_METHOD_CALL                                             !0, 'format'
         20        SEND_VAL_EX                                                  1234.57
         21        DO_FCALL                                          0  $9      
         22        SEND_VAR                                                     $9
         23        DO_ICALL                                                     
         24      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
124.97 ms | 477 KiB | 8 Q