3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(assert('exec("ping google.com")'));
Output for 7.2.0
Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/ql3oi on line 3 Warning: assert(): Assertion "exec("ping google.com")" failed in /in/ql3oi on line 3 bool(false)
Output for 7.0.1 - 7.1.10
Warning: assert(): Assertion "exec("ping google.com")" failed in /in/ql3oi on line 3 bool(false)
Output for 5.4.45 - 7.0.0
Warning: assert(): Assertion "exec("ping google.com")" failed in /in/ql3oi on line 3 NULL
Output for 4.3.2 - 5.4.44
Warning: assert(): Assertion "exec("ping google.com")" failed in /in/ql3oi on line 3 NULL sh: 1: ping: not found
Output for 4.3.1
Warning: assert() [http://www.php.net/function.assert]: Assertion "exec("ping google.com")" failed in /in/ql3oi on line 3 NULL sh: 1: ping: not found
Output for 4.3.0
Warning: assert() [http://www.php.net/function.assert]: Assertion "exec("ping google.com")" failed in /in/ql3oi on line 3 NULL