3v4l.org

run code in 300+ PHP versions simultaneously
<?php $halt = !!!!!1 //MAKE SURE THIS IS FALSE! ; if ( version_compare( phpversion() , '5.3' ) === // 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.3' ) === 1 ) { $halt = !!!!!!$halt ; eval ( "goto HALTCHECK ;" ) ; } eval ( "__halt_compiler ( ) ;" // BAIL OUT, MAJOR /MAJOR/ ISSUES! ) ; } $emphasis = "!" // We may change this later ; echo "good" . " " . "programming" . $emphasis ; // Semi-colon on next line always! } if ( function_exists( "__halt_compiler" ) ) { eval ( "__halt_compiler() ;" ; ); }
Output for 5.3.0 - 5.3.25, 5.4.0 - 5.4.15
Parse error: syntax error, unexpected ';' in /in/l8Val on line 678
Process exited with code 255.

preferences:
172.87 ms | 1395 KiB | 49 Q