3v4l.org

run code in 300+ PHP versions simultaneously
<?php function p($str) { echo $str, "\n"; echo strftime($str), "\n"; echo bin2hex($str), "\n"; echo bin2hex(strftime($str)), "\n"; } setlocale(LC_ALL, 'C'); p('あ');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b2eZW
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 6
          2        SEND_VAL                                                 'C'
          3        DO_ICALL                                                 
   11     4        INIT_FCALL                                               'p'
          5        SEND_VAL                                                 '%E3%81%82'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function p:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b2eZW
function name:  p
number of ops:  22
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        ECHO                                                     !0
          2        ECHO                                                     '%0A'
    5     3        INIT_FCALL                                               'strftime'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        ECHO                                                     $1
          7        ECHO                                                     '%0A'
    6     8        INIT_FCALL                                               'bin2hex'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $2      
         11        ECHO                                                     $2
         12        ECHO                                                     '%0A'
    7    13        INIT_FCALL                                               'bin2hex'
         14        INIT_FCALL                                               'strftime'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $3      
         17        SEND_VAR                                                 $3
         18        DO_ICALL                                         $4      
         19        ECHO                                                     $4
         20        ECHO                                                     '%0A'
    8    21      > RETURN                                                   null

End of function p

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.86 ms | 1399 KiB | 20 Q