3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', 1); error_reporting(-1); var_dump($_FILES); $tmpImage = file_get_contents($_FILES["file"]["tmp_name"]); $theImage = imagecreatefromstring($tmpImage); var_dump($theImage); $imageColors = imagecolorstotal($theImage); var_dump($imageColors);
Output for git.master, git.master_jit
array(0) { } Warning: Undefined array key "file" in /in/K0s2t on line 6 Warning: Trying to access array offset on value of type null in /in/K0s2t on line 6 Deprecated: file_get_contents(): Passing null to parameter #1 ($filename) of type string is deprecated in /in/K0s2t on line 6 Fatal error: Uncaught ValueError: Path cannot be empty in /in/K0s2t:6 Stack trace: #0 /in/K0s2t(6): file_get_contents('') #1 {main} thrown in /in/K0s2t on line 6
Process exited with code 255.
Output for rfc.property-hooks
array(0) { } Warning: Undefined array key "file" in /in/K0s2t on line 6 Warning: Trying to access array offset on null in /in/K0s2t on line 6 Deprecated: file_get_contents(): Passing null to parameter #1 ($filename) of type string is deprecated in /in/K0s2t on line 6 Fatal error: Uncaught ValueError: Path cannot be empty in /in/K0s2t:6 Stack trace: #0 /in/K0s2t(6): file_get_contents('') #1 {main} thrown in /in/K0s2t on line 6
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:
63.26 ms | 401 KiB | 8 Q