3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getFormattedData() { $data = '@@'; return call_user_func_array( 'sprintf', array_merge( array(str_repeat('%08b', strlen($data))), array_values(unpack('C*', $data)) ) ); } echo getFormattedData();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4H7C7
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'getformatteddata'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

Function getformatteddata:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4H7C7
function name:  getFormattedData
number of ops:  24
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%40%40'
    5     1        INIT_FCALL                                               'sprintf'
    7     2        INIT_FCALL                                               'array_merge'
    8     3        INIT_FCALL                                               'str_repeat'
          4        SEND_VAL                                                 '%2508b'
          5        STRLEN                                           ~2      !0
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                         $3      
          8        INIT_ARRAY                                       ~4      $3
          9        SEND_VAL                                                 ~4
    9    10        INIT_FCALL                                               'array_values'
         11        INIT_FCALL                                               'unpack'
         12        SEND_VAL                                                 'C%2A'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                         $7      
         19        SEND_ARRAY                                               $7
         20        CHECK_UNDEF_ARGS                                         
         21        DO_FCALL                                      0  $8      
         22      > RETURN                                                   $8
   12    23*     > RETURN                                                   null

End of function getformatteddata

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.32 ms | 1399 KiB | 24 Q