3v4l.org

run code in 200+ PHP versions simultaneously
<?php error_reporting(0); ?> <?=Z^z; /* 32 */?> <?=Y^x; /* 33 ! */?> <?=Z^x; /* 34 " */?> <?=Z^y; /* 35 # */?> <?=W^s; /* 36 $ */?> <?=W^r; /* 37 % */?> <?=W^q; /* 38 & */?> <?=W^p; /* 39 ' */?> <?=Z^r; /* 40 ( */?> <?=Z^s; /* 41 ) */?> <?=Z^p; /* 42 * */?> <?=Z^q; /* 43 + */?> <?=Z^v; /* 44 , */?> <?=Z^w; /* 45 - */?> <?=Z^t; /* 46 . */?> <?=Z^u; /* 47 / */?> <?=Z^j; /* 48 0 */?> <?=Z^k; /* 49 1 */?> <?=Z^h; /* 50 2 */?> <?=Z^i; /* 51 3 */?> <?=Z^n; /* 52 4 */?> <?=Z^o; /* 53 5 */?> <?=Z^l; /* 54 6 */?> <?=Z^m; /* 55 7 */?> <?=Z^b; /* 56 8 */?> <?=Z^c; /* 57 9 */?> <?=Y^c; /* 58 : */?> <?=Z^d; /* 62 > */?> <?=Z&e; /* 64 @ */?> <?=Y&g; /* 65 A */?> <?=Z&g; /* 66 B */?> <?=W&k; /* 67 C */?> <?=W&l; /* 68 D */?> <?=W&m; /* 69 E */?> <?=W&n; /* 70 F */?> <?=W&o; /* 71 G */?> <?=Z&m; /* 72 H */?> <?=Y&o; /* 73 I */?> <?=Z&o; /* 74 J */?> <?=O&k; /* 75 K */?> <?=O&l; /* 76 L */?> <?=O&m; /* 77 M */?> <?=O&n; /* 78 N */?> <?=M|N; /* 79 O */?> <?=Z&u; /* 80 P */?> <?=Y&w; /* 81 Q */?> <?=Z&w; /* 82 R */?> <?=W&s; /* 83 S */?> <?=W&t; /* 84 T */?> <?=W&u; /* 85 U */?> <?=W&v; /* 86 V */?> <?=U|V; /* 87 W */?> <?=Z&y; /* 88 X */?> <?=Q|X; /* 89 Y */?> <?=R|X; /* 90 Z */?> <?=Y|Z; /* 91 [ */?> <?=T|X; /* 92 \ */?> <?=U|Y; /* 93 ] */?> <?=V|Z; /* 94 ^ */?> <?=W|Z; /* 95 _ */?> <?=o&p; /* 96 ` */?> <?=o&q; /* 97 a */?> <?=o&r; /* 98 b */?> <?=o&s; /* 99 c */?> <?=o&t; /* 100 d */?> <?=o&u; /* 101 e */?> <?=o&v; /* 102 f */?> <?=o&w; /* 103 g */?> <?=o&x; /* 104 h */?> <?=o&y; /* 105 i */?> <?=o&z; /* 106 j */?> <?=i|j; /* 107 k */?> <?=m&n; /* 108 l */?> <?=i|l; /* 109 m */?> <?=j|l; /* 110 n */?> <?=m|n; /* 111 o */?> <?=w&x; /* 112 p */?> <?=w&y; /* 113 q */?> <?=w&z; /* 114 r */?> <?=q|r; /* 115 s */?> <?=u&v; /* 116 t */?> <?=q|t; /* 117 u */?> <?=r|t; /* 118 v */?> <?=u|v; /* 119 w */?> <?=y&z; /* 120 x */?> <?=q|x; /* 121 y */?> <?=r|x; /* 122 z */?> <?=y|z; /* 123 { */?> <?=u|y; /* 125 } */?> <?=v|z; /* 126 ~ */?> <?php // Special cases: ?> <?=Z^a?> <?php /* 59 ; */?> <?php echo Z^g; /* 61 = */?> <?='9'^E; /* 124 | */?>
based on H3RXD
Output for 5.6.0 - 7.4.0
!"#$%&'()*+,-./0123456789:>@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{}~ ; =|