3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v = array(1.0, 0.0000000001, 1e300, 1e-100, 1/3, 1-1/3, 8/9, 1-8/9); array_walk($v, function($i) { echo $i . "\n" . json_encode($i) . "\n" . var_export($i) . "\n\n"; });
Output for git.master, git.master_jit, rfc.property-hooks
1.01 1 1.0E-101.0E-10 1.0e-10 1.0E+3001.0E+300 1.0e+300 1.0E-1001.0E-100 1.0e-100 0.33333333333333330.33333333333333 0.3333333333333333 0.66666666666666670.66666666666667 0.6666666666666667 0.88888888888888880.88888888888889 0.8888888888888888 0.111111111111111160.11111111111111 0.11111111111111116

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