3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=0;$i<8;$i++) echo 0xff>>$i."\n";
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.6
255 127 63 31 15 7 3 1
Output for 7.4.0 - 7.4.33
Deprecated: The behavior of unparenthesized expressions containing both '.' and '>>'/'<<' will change in PHP 8: '<<'/'>>' will take a higher precedence in /in/pGe4j on line 2 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 255 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 127 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 63 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 31 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 15 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 7 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 3 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 1
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.3.32 - 7.3.33
255127633115731
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31
Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 255 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 127 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 63 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 31 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 15 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 7 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 3 Notice: A non well formed numeric value encountered in /in/pGe4j on line 2 1

preferences:
351.94 ms | 403 KiB | 257 Q