3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* $a = '0xf'; $b = '15'; $c = 15; var_dump('Vars', $a, $b, $c); var_dump('EQ', $a == $b, $a == $c, $b == $c); */ test('pie', function($a){return $a;}); function test($label, $lambda){ static $a = ['hex' => '0xf', 'str' => '15', 'int' => 15]; echo $label; foreach($a AS $k=>$v) { echo " ".($k+1)." => "; var_export($lambda($v)); // $n = var_export($r, TRUE); } echo "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
pie Fatal error: Uncaught TypeError: Unsupported operand types: string + int in /in/HPHtR:19 Stack trace: #0 /in/HPHtR(12): test('pie', Object(Closure)) #1 {main} thrown in /in/HPHtR on line 19
Process exited with code 255.

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