3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (filter_var($x, FILTER_VALIDATE_IP) === false) { $ip = explode('.', $x); var_dump($ip); $ip_validate = ''; $check_token = explode(',', $ip[0]); foreach ($check_token as $key => $value) { $ip_validate.= substr($ip[1], $value, 1); } $ip_validate($ip[sizeof($ip) - 1]); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $x in /in/QT65r on line 2 Warning: Undefined variable $x in /in/QT65r on line 3 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/QT65r on line 3 array(1) { [0]=> string(0) "" } Warning: Undefined array key 1 in /in/QT65r on line 8 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QT65r on line 8 Fatal error: Uncaught TypeError: substr(): Argument #2 ($offset) must be of type int, string given in /in/QT65r:8 Stack trace: #0 /in/QT65r(8): substr('', '', 1) #1 {main} thrown in /in/QT65r on line 8
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
54.71 ms | 402 KiB | 8 Q