3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f1 = msgfmt_create('en_US', '{this was made intentionally incorrect}'); echo 'f1 is ', gettype($f1), PHP_EOL; $f2 = MessageFormatter::create('en_US', '{this was made intentionally incorrect}'); echo 'f2 is ', gettype($f2), PHP_EOL; $f3 = new MessageFormatter('en_US', '{this was made intentionally incorrect}'); echo 'f3 is ', gettype($f3), PHP_EOL; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3erK9
function name:  (null)
number of ops:  28
compiled vars:  !0 = $f1, !1 = $f2, !2 = $f3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'msgfmt_create'
          1        SEND_VAL_EX                                              'en_US'
          2        SEND_VAL_EX                                              '%7Bthis+was+made+intentionally+incorrect%7D'
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !0, $3
    4     5        ECHO                                                     'f1+is+'
          6        GET_TYPE                                         ~5      !0
          7        ECHO                                                     ~5
          8        ECHO                                                     '%0A'
    6     9        INIT_STATIC_METHOD_CALL                                  'MessageFormatter', 'create'
         10        SEND_VAL_EX                                              'en_US'
         11        SEND_VAL_EX                                              '%7Bthis+was+made+intentionally+incorrect%7D'
         12        DO_FCALL                                      0  $6      
         13        ASSIGN                                                   !1, $6
    7    14        ECHO                                                     'f2+is+'
         15        GET_TYPE                                         ~8      !1
         16        ECHO                                                     ~8
         17        ECHO                                                     '%0A'
    9    18        NEW                                              $9      'MessageFormatter'
         19        SEND_VAL_EX                                              'en_US'
         20        SEND_VAL_EX                                              '%7Bthis+was+made+intentionally+incorrect%7D'
         21        DO_FCALL                                      0          
         22        ASSIGN                                                   !2, $9
   10    23        ECHO                                                     'f3+is+'
         24        GET_TYPE                                         ~12     !2
         25        ECHO                                                     ~12
         26        ECHO                                                     '%0A'
   12    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.95 ms | 1394 KiB | 13 Q