3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function ImageTTFTextWithTracking($im, $size, $angle, $t, $x, $y, $color, $font, $text) { $numchar = strlen($text); for($i = 0; $i < $numchar; $i++) { # Assign character $char[$i] = substr($text, $i, 1); # Write character imagettftext($im, $size, $angle, ($x + $w + ($i * $t)), $y, $color, $font, $char[$i]); # Get width of character $width = imagettfbbox($size, $angle, $font, $char[$i]); $w = $w + $width[2]; } }
based on kuLmD
Output for 4.3.0 - 5.6.21, hhvm-3.12.0, 7.0.0 - 7.1.0
Output for hhvm-3.10.0

Process exited with code 153.