3v4l.org

run code in 300+ PHP versions simultaneously
<?php function vassertf($format, array $args) { return (bool) @vsprintf($format, $args); } var_dump(vassertf('Too many %s placeholders %s', ['foo'])); var_dump(vassertf('Not enough placeholders', ['foo'])); var_dump(vassertf('Correct number of %s placeholders', ['foo']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sdIPN
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'vassertf'
          2        SEND_VAL                                                 'Too+many+%25s+placeholders+%25s'
          3        SEND_VAL                                                 <array>
          4        DO_FCALL                                      0  $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    9     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'vassertf'
          9        SEND_VAL                                                 'Not+enough+placeholders'
         10        SEND_VAL                                                 <array>
         11        DO_FCALL                                      0  $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
   10    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'vassertf'
         16        SEND_VAL                                                 'Correct+number+of+%25s+placeholders'
         17        SEND_VAL                                                 <array>
         18        DO_FCALL                                      0  $4      
         19        SEND_VAR                                                 $4
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Function vassertf:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sdIPN
function name:  vassertf
number of ops:  11
compiled vars:  !0 = $format, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        BEGIN_SILENCE                                    ~2      
          3        INIT_FCALL                                               'vsprintf'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $3      
          7        END_SILENCE                                              ~2
          8        BOOL                                             ~4      $3
          9      > RETURN                                                   ~4
    6    10*     > RETURN                                                   null

End of function vassertf

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.69 ms | 1390 KiB | 20 Q