3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locale = 'fr_FR'; $args = array(1); $string = "{0, choice, 0<{0} d'eé|1<{0} d'aà}"; echo msgfmt_format_message($locale, $string, $args); $string = "{0, choice, 0<{0} d''eé|1<{0} d''aà}"; echo msgfmt_format_message($locale, $string, $args);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kc5G0
function name:  (null)
number of ops:  17
compiled vars:  !0 = $locale, !1 = $args, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'fr_FR'
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, '%7B0%2C+choice%2C+0%3C%7B0%7D+d%27e%C3%A9%7C1%3C%7B0%7D+d%27a%C3%A0%7D'
    5     3        INIT_FCALL_BY_NAME                                       'msgfmt_format_message'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !2
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $6      
          8        ECHO                                                     $6
    6     9        ASSIGN                                                   !2, '%7B0%2C+choice%2C+0%3C%7B0%7D+d%27%27e%C3%A9%7C1%3C%7B0%7D+d%27%27a%C3%A0%7D'
    7    10        INIT_FCALL_BY_NAME                                       'msgfmt_format_message'
         11        SEND_VAR_EX                                              !0
         12        SEND_VAR_EX                                              !2
         13        SEND_VAR_EX                                              !1
         14        DO_FCALL                                      0  $8      
         15        ECHO                                                     $8
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.31 ms | 1393 KiB | 13 Q