3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vs = array(false, true, 1, 0, 1.1, '', 1E52, new stdclass, array(), fopen('php://output', 'r'), null); foreach($vs as $v) var_dump($v, strlen($v));
Output for git.master, git.master_jit
bool(false) int(0) bool(true) int(1) int(1) int(1) int(0) int(1) float(1.1) int(3) string(0) "" int(0) float(1.0E+52) int(7) Fatal error: Uncaught TypeError: strlen(): Argument #1 ($str) must be of type string, stdClass given in /in/lOatl:4 Stack trace: #0 {main} thrown in /in/lOatl on line 4
Process exited with code 255.
Output for rfc.property-hooks
bool(false) int(0) bool(true) int(1) int(1) int(1) int(0) int(1) float(1.1) int(3) string(0) "" int(0) float(1.0E+52) int(7) Fatal error: Uncaught TypeError: strlen(): Argument #1 ($string) must be of type string, stdClass given in /in/lOatl:4 Stack trace: #0 {main} thrown in /in/lOatl on line 4
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:
63.57 ms | 401 KiB | 8 Q