3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = new MessageFormatter("en_US", "{0, number} monkeys on {1, number} trees"); $str = $fmt->format(array()); if(!$str) { echo "ERROR: ".$fmt->getErrorMessage() . " (" . $fmt->getErrorCode() . ")\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/8oJsn
function name:  (null)
number of ops:  21
compiled vars:  !0 = $fmt, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'MessageFormatter'
          1        SEND_VAL_EX                                              'en_US'
          2        SEND_VAL_EX                                              '%7B0%2C+number%7D+monkeys+on+%7B1%2C+number%7D+trees'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    3     5        INIT_METHOD_CALL                                         !0, 'format'
          6        SEND_VAL_EX                                              <array>
          7        DO_FCALL                                      0  $5      
          8        ASSIGN                                                   !1, $5
    4     9        BOOL_NOT                                         ~7      !1
         10      > JMPZ                                                     ~7, ->20
    5    11    >   INIT_METHOD_CALL                                         !0, 'getErrorMessage'
         12        DO_FCALL                                      0  $8      
         13        CONCAT                                           ~9      'ERROR%3A+', $8
         14        CONCAT                                           ~10     ~9, '+%28'
         15        INIT_METHOD_CALL                                         !0, 'getErrorCode'
         16        DO_FCALL                                      0  $11     
         17        CONCAT                                           ~12     ~10, $11
         18        CONCAT                                           ~13     ~12, '%29%0A'
         19        ECHO                                                     ~13
    7    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.6 ms | 1393 KiB | 13 Q