3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = new MessageFormatter('en_US', 'Italy owns {0, plural, =0{no acres} =1{# acre} other{# acres}} of land!'); echo $format->format([0]), '\n'; echo $format->format([1]), '\n'; echo $format->format([2]), '\n';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aF4g4
function name:  (null)
number of ops:  21
compiled vars:  !0 = $format
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'MessageFormatter'
          1        SEND_VAL_EX                                              'en_US'
          2        SEND_VAL_EX                                              'Italy+owns+%7B0%2C+plural%2C+%3D0%7Bno+acres%7D+%3D1%7B%23+acre%7D+other%7B%23+acres%7D%7D+of+land%21'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
    3     5        INIT_METHOD_CALL                                         !0, 'format'
          6        SEND_VAL_EX                                              <array>
          7        DO_FCALL                                      0  $4      
          8        ECHO                                                     $4
          9        ECHO                                                     '%5Cn'
    4    10        INIT_METHOD_CALL                                         !0, 'format'
         11        SEND_VAL_EX                                              <array>
         12        DO_FCALL                                      0  $5      
         13        ECHO                                                     $5
         14        ECHO                                                     '%5Cn'
    5    15        INIT_METHOD_CALL                                         !0, 'format'
         16        SEND_VAL_EX                                              <array>
         17        DO_FCALL                                      0  $6      
         18        ECHO                                                     $6
         19        ECHO                                                     '%5Cn'
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.27 ms | 1393 KiB | 13 Q