3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ratio = 1.583333333; $width = 960; $image_width = 3840; $image_height = 2560; $image_ratio = $image_width / $image_height; $width = ($image_ratio > $ratio) ? $image_width / $image_ratio : $width; $height = $width * $image_ratio; echo 'width:' . $width . ' / height:' . $height;
Output for git.master, git.master_jit, rfc.property-hooks
width:960 / height:1440

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:
42.39 ms | 401 KiB | 8 Q