3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 10; $i++) { $data[] = [intdiv($i, 3), intdiv($i + 1, 3), intdiv($i + 2, 3)]; } var_export($data);
Output for git.master_jit, git.master, rfc.property-hooks
array ( 0 => array ( 0 => 0, 1 => 0, 2 => 0, ), 1 => array ( 0 => 0, 1 => 0, 2 => 1, ), 2 => array ( 0 => 0, 1 => 1, 2 => 1, ), 3 => array ( 0 => 1, 1 => 1, 2 => 1, ), 4 => array ( 0 => 1, 1 => 1, 2 => 2, ), 5 => array ( 0 => 1, 1 => 2, 2 => 2, ), 6 => array ( 0 => 2, 1 => 2, 2 => 2, ), 7 => array ( 0 => 2, 1 => 2, 2 => 3, ), 8 => array ( 0 => 2, 1 => 3, 2 => 3, ), 9 => array ( 0 => 3, 1 => 3, 2 => 3, ), )

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:
65.8 ms | 407 KiB | 5 Q