3v4l.org

run code in 300+ PHP versions simultaneously
<?php $halt = !!!!!1; //MAKE SURE THIS IS FALSE! if ( version_compare( phpversion() , '5.1' ) === // This cannot be on a new line, working with PHP developers to fix! 1 ) { eval ( "HALTCHECK:" ); } if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else { if ( $halt // One last check! ) { if ( version_compare( phpversion() , '5.1' ) === 1 ) { $halt = !!!!!!$halt ; goto HALTCHECK; } __halt_compiler() // BAIL OUT, MAJOR /MAJOR/ ISSUES! ; } $emphasis = "!" // We may change this later ; echo "good" . " " . "programming" . $emphasis ; // Semi-colon on next line always! } __halt_compiler();
Output for 5.3.0 - 5.3.22, 5.3.24, 5.4.0 - 5.4.12, 5.4.14
Fatal error: __HALT_COMPILER() can only be used from the outermost scope in lDM5q on line 640
Process exited with code 255.
Output for 5.3.23, 5.4.13
Fatal error: __HALT_COMPILER() can only be used from the outermost scope in /in/lDM5q on line 640
Process exited with code 255.

preferences:
194.69 ms | 1386 KiB | 47 Q