3v4l.org

run code in 300+ PHP versions simultaneously
<?php function miauw() { static $count = 1; return $count++; } for ($i = 0; $i < 42; ++$i) { echo miauw(), PHP_EOL; }
Output for 4.3.10 - 4.3.11, 4.4.0 - 4.4.9, 5.0.2 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
1 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL2 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL4 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL5 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL7 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL8 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL9 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL10 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL11 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL13 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL15 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL16 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL17 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL18 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL19 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL20 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL21 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL22 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL23 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL24 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL25 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL26 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL27 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL28 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL29 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL30 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL31 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL32 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL33 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL34 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL35 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL36 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL38 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL39 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL40 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL41 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL42 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/13gHJ on line 10 PHP_EOL

preferences:
230.95 ms | 409 KiB | 370 Q