3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $exif = array ( 'FileName' => 'Jazz-auf-dem-Trammplatz.jpg', 'FileDateTime' => 0, 'FileSize' => 581770, 'FileType' => 2, 'MimeType' => 'image/jpeg', 'SectionsFound' => 'ANY_TAG, IFD0, EXIF', 'COMPUTED' => array ( 'html' => 'width="2225" height="1430"', 'Height' => 1430, 'Width' => 2225, 'IsColor' => 1, 'ByteOrderMotorola' => 0, 'ApertureFNumber' => 'f/1.0', 'UserComment' => ' ', 'UserCommentEncoding' => 'ASCII', ), 'Make' => 'NIKON CORPORATION', 'Model' => 'NIKON D70', 'Orientation' => 1, 'ResolutionUnit' => 2, 'Software' => 'Ver.1.03 ', 'DateTime' => '2005:05:04 13:47:03', 'YCbCrPositioning' => 2, 'Exif_IFD_Pointer' => 308, 'CustomRendered' => 0, 'ExposureMode' => 1, 'WhiteBalance' => 0, 'DigitalZoomRatio' => '1/1', 'FocalLengthIn35mmFilm' => 0, 'SceneCaptureType' => 0, 'GainControl' => 0, 'Contrast' => 0, 'Saturation' => 0, 'Sharpness' => 0, 'SubjectDistanceRange' => 0, 'ExposureTime' => '10/2500', 'FNumber' => '0/10', 'ExposureProgram' => 1, 'ExifVersion' => '0221', 'DateTimeOriginal' => '2005:05:04 13:47:03', 'DateTimeDigitized' => '2005:05:04 13:47:03', 'ComponentsConfiguration' => '' . "\0" . '', 'CompressedBitsPerPixel' => '4/1', 'ExposureBiasValue' => '0/6', 'MaxApertureValue' => '0/10', 'MeteringMode' => 2, 'LightSource' => 0, 'Flash' => 0, 'FocalLength' => '0/10', 'SubSecTime' => '70', 'SubSecTimeOriginal' => '70', 'SubSecTimeDigitized' => '70', 'FlashPixVersion' => '0100', 'ColorSpace' => 1, 'ExifImageWidth' => 3008, 'ExifImageLength' => 2000, 'SensingMethod' => 2, 'FileSource' => '', 'SceneType' => '', 'CFAPattern' => '' . "\0" . '' . "\0" . '' . "\0" . '', ); array_walk_recursive( $exif, function ( $el ) { if ( !mb_check_encoding( $el, "UTF-8" ) ) { echo "Not utf8<br />"; } } );
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/BliMs on line 67
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/BliMs on line 67
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/BliMs on line 67
Process exited with code 255.