3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Integer: " . 100; // prints 100 echo "\n"; echo "Scientific notation: " . 1e2; // prints 100 echo "\n"; echo "Equality: "; if(100 == 1e2) { echo "as expected"; } else { echo "wtf php"; } echo "\n"; echo "Identity: "; if(100 === 1e2) { echo "as expected"; } else { echo "wtf php"; } // prints wtf php
Output for git.master, git.master_jit, rfc.property-hooks
Integer: 100 Scientific notation: 100 Equality: as expected Identity: wtf php

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