3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locale = 'en_US'; $string = " {gender, select, female { {count, plural, offset:1 =0 {{from} does not give a party.} =1 {{from} invites {to} to her party.} =2 {{from} invites {to} and one other person to her party.} other {{from} invites {to} as one of the # people invited to her party.} } } male { {count, plural, offset:1 =0 {{from} does not give a party.} =1 {{from} invites {to} to his party.} =2 {{from} invites {to} and one other person to his party.} other {{from} invites {to} as one of the # other people invited to his party.} } } other { {count, plural, offset:1 =0 {{from} does not give a party.} =1 {{from} invites {to} to their party.} =2 {{from} invites {to} and one other person to their party.} other {{from} invites {to} as one of the # other people invited to their party.} } } }"; $formatter = new MessageFormatter($locale, $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FVog3
function name:  (null)
number of ops:  8
compiled vars:  !0 = $locale, !1 = $string, !2 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'en_US'
    4     1        ASSIGN                                                   !1, '%0A++++%7Bgender%2C+select%2C%0A++++++++female+%7B%0A++++++++++++%7Bcount%2C+plural%2C+offset%3A1%0A++++++++++++++++%3D0+%7B%7Bfrom%7D+does+not+give+a+party.%7D%0A++++++++++++++++%3D1+%7B%7Bfrom%7D+invites+%7Bto%7D+to+her+party.%7D%0A++++++++++++++++%3D2+%7B%7Bfrom%7D+invites+%7Bto%7D+and+one+other+person+to+her+party.%7D%0A++++++++++++++++other+%7B%7Bfrom%7D+invites+%7Bto%7D+as+one+of+the+%23+people+invited+to+her+party.%7D%0A++++++++++++%7D%0A++++++++%7D%0A++++++++male+%7B%0A++++++++++++%7Bcount%2C+plural%2C+offset%3A1%0A++++++++++++++++%3D0+%7B%7Bfrom%7D+does+not+give+a+party.%7D%0A++++++++++++++++%3D1+%7B%7Bfrom%7D+invites+%7Bto%7D+to+his+party.%7D%0A++++++++++++++++%3D2+%7B%7Bfrom%7D+invites+%7Bto%7D+and+one+other+person+to+his+party.%7D%0A++++++++++++++++other+%7B%7Bfrom%7D+invites+%7Bto%7D+as+one+of+the+%23+other+people+invited+to+his+party.%7D%0A++++++++++++%7D%0A++++++++%7D%0A++++++++other+%7B%0A++++++++++++%7Bcount%2C+plural%2C+offset%3A1%0A++++++++++++++++%3D0+%7B%7Bfrom%7D+does+not+give+a+party.%7D%0A++++++++++++++++%3D1+%7B%7Bfrom%7D+invites+%7Bto%7D+to+their+party.%7D%0A++++++++++++++++%3D2+%7B%7Bfrom%7D+invites+%7Bto%7D+and+one+other+person+to+their+party.%7D%0A++++++++++++++++other+%7B%7Bfrom%7D+invites+%7Bto%7D+as+one+of+the+%23+other+people+invited+to+their+party.%7D%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D'
   32     2        NEW                                              $5      'MessageFormatter'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !2, $5
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.78 ms | 1394 KiB | 13 Q