3v4l.org

run code in 300+ PHP versions simultaneously
<?php function deprecated($package, $version, $message) { assert(trigger_error("Since $package $version: ".sprintf($message, ...array_slice(func_get_args(), 3)), E_USER_DEPRECATED)); } deprecated('symfony/foo', 12.3, 'foo %s', 'bar');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CIZch
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'deprecated'
          1        SEND_VAL                                                 'symfony%2Ffoo'
          2        SEND_VAL                                                 12.3
          3        SEND_VAL                                                 'foo+%25s'
          4        SEND_VAL                                                 'bar'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function deprecated:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CIZch
function name:  deprecated
number of ops:  25
compiled vars:  !0 = $package, !1 = $version, !2 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    5     3        ASSERT_CHECK                                             
          4        INIT_FCALL                                               'assert'
          5        INIT_FCALL                                               'trigger_error'
          6        ROPE_INIT                                     5  ~4      'Since+'
          7        ROPE_ADD                                      1  ~4      ~4, !0
          8        ROPE_ADD                                      2  ~4      ~4, '+'
          9        ROPE_ADD                                      3  ~4      ~4, !1
         10        ROPE_END                                      4  ~3      ~4, '%3A+'
         11        INIT_FCALL                                               'sprintf'
         12        SEND_VAR                                                 !2
         13        FUNC_GET_ARGS                                    ~7      3
         14        SEND_UNPACK                                              ~7
         15        CHECK_UNDEF_ARGS                                         
         16        DO_ICALL                                         $8      
         17        CONCAT                                           ~9      ~3, $8
         18        SEND_VAL                                                 ~9
         19        SEND_VAL                                                 16384
         20        DO_ICALL                                         $10     
         21        SEND_VAR                                                 $10
         22        SEND_VAL                                                 'assert%28trigger_error%28%22Since+%24package+%24version%3A+%22+.+sprintf%28%24message%2C+...array_slice%28func_get_args%28%29%2C+3%29%29%2C+E_USER_DEPRECATED%29%29'
         23        DO_ICALL                                                 
    6    24      > RETURN                                                   null

End of function deprecated

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.51 ms | 1399 KiB | 20 Q