3v4l.org

run code in 300+ 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 | */?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6

Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Process exited with code 255.
Output for 5.6.0 - 5.6.25, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.6 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
!"#$%&'()*+,-./0123456789:>@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{}~ ; =|

preferences:
169.48 ms | 403 KiB | 213 Q