3v4l.org

run code in 300+ PHP versions simultaneously
<?php $versions = [1, 1.0, '1', '1.0', 'a1.0', '1.0a', TRUE]; foreach ($versions as $version) { $data['version'] = $version; print "----------------------\n"; var_dump($data['version']); var_dump((float) $data['version']); var_dump((float) $data['version'] !== 1.0); print "\n"; }
Output for git.master_jit, git.master, rfc.property-hooks
---------------------- int(1) float(1) bool(false) ---------------------- float(1) float(1) bool(false) ---------------------- string(1) "1" float(1) bool(false) ---------------------- string(3) "1.0" float(1) bool(false) ---------------------- string(4) "a1.0" float(0) bool(true) ---------------------- string(4) "1.0a" float(1) bool(false) ---------------------- bool(true) float(1) bool(false)

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:
125.94 ms | 406 KiB | 5 Q