3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 43951789; $u = -43951789; $c = 65; // ASCII 65 is 'A' // notice the double %%, this prints a literal '%' character printf("%%b = '%b'\n", $n); // binary representation printf("%%c = '%c'\n", $c); // print the ascii character, same as chr() function printf("%%d = '%d'\n", $n); // standard integer representation printf("%%e = '%e'\n", $n); // scientific notation printf("%%u = '%u'\n", $n); // unsigned integer representation of a positive integer printf("%%u = '%u'\n", $u); // unsigned integer representation of a negative integer printf("%%f = '%f'\n", $n); // floating point representation printf("%%o = '%o'\n", $n); // octal representation printf("%%s = '%s'\n", $n); // string representation printf("%%x = '%x'\n", $n); // hexadecimal representation (lower-case) printf("%%X = '%X'\n", $n); // hexadecimal representation (upper-case) printf("%%+d = '%+d'\n", $n); // sign specifier on a positive integer printf("%%+d = '%+d'\n", $u); // sign specifier on a negative integer
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CPQMi
function name:  (null)
number of ops:  56
compiled vars:  !0 = $n, !1 = $u, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 43951789
    4     1        ASSIGN                                                   !1, -43951789
    5     2        ASSIGN                                                   !2, 65
    8     3        INIT_FCALL                                               'printf'
          4        SEND_VAL                                                 '%25%25b+%3D+%27%25b%27%0A'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    9     7        INIT_FCALL                                               'printf'
          8        SEND_VAL                                                 '%25%25c+%3D+%27%25c%27%0A'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
   10    11        INIT_FCALL                                               'printf'
         12        SEND_VAL                                                 '%25%25d+%3D+%27%25d%27%0A'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   11    15        INIT_FCALL                                               'printf'
         16        SEND_VAL                                                 '%25%25e+%3D+%27%25e%27%0A'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
   12    19        INIT_FCALL                                               'printf'
         20        SEND_VAL                                                 '%25%25u+%3D+%27%25u%27%0A'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
   13    23        INIT_FCALL                                               'printf'
         24        SEND_VAL                                                 '%25%25u+%3D+%27%25u%27%0A'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
   14    27        INIT_FCALL                                               'printf'
         28        SEND_VAL                                                 '%25%25f+%3D+%27%25f%27%0A'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                                 
   15    31        INIT_FCALL                                               'printf'
         32        SEND_VAL                                                 '%25%25o+%3D+%27%25o%27%0A'
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                                 
   16    35        INIT_FCALL                                               'printf'
         36        SEND_VAL                                                 '%25%25s+%3D+%27%25s%27%0A'
         37        SEND_VAR                                                 !0
         38        DO_ICALL                                                 
   17    39        INIT_FCALL                                               'printf'
         40        SEND_VAL                                                 '%25%25x+%3D+%27%25x%27%0A'
         41        SEND_VAR                                                 !0
         42        DO_ICALL                                                 
   18    43        INIT_FCALL                                               'printf'
         44        SEND_VAL                                                 '%25%25X+%3D+%27%25X%27%0A'
         45        SEND_VAR                                                 !0
         46        DO_ICALL                                                 
   20    47        INIT_FCALL                                               'printf'
         48        SEND_VAL                                                 '%25%25%2Bd+%3D+%27%25%2Bd%27%0A'
         49        SEND_VAR                                                 !0
         50        DO_ICALL                                                 
   21    51        INIT_FCALL                                               'printf'
         52        SEND_VAL                                                 '%25%25%2Bd+%3D+%27%25%2Bd%27%0A'
         53        SEND_VAR                                                 !1
         54        DO_ICALL                                                 
         55      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.41 ms | 1392 KiB | 15 Q