3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime("1 year ago"); $msgfmt = MessageFormatter::create('nl_NL', 'Today one year ago is {0,date}'); echo $msgfmt->format(array($date)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gFvPo
function name:  (null)
number of ops:  15
compiled vars:  !0 = $date, !1 = $msgfmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '1+year+ago'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    6     4        INIT_STATIC_METHOD_CALL                                  'MessageFormatter', 'create'
          5        SEND_VAL_EX                                              'nl_NL'
          6        SEND_VAL_EX                                              'Today+one+year+ago+is+%7B0%2Cdate%7D'
          7        DO_FCALL                                      0  $5      
          8        ASSIGN                                                   !1, $5
    8     9        INIT_METHOD_CALL                                         !1, 'format'
         10        INIT_ARRAY                                       ~7      !0
         11        SEND_VAL_EX                                              ~7
         12        DO_FCALL                                      0  $8      
         13        ECHO                                                     $8
   10    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.49 ms | 1393 KiB | 13 Q