3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [null, 0, '0', '', 'a', 'b,c,d', '1,2,3,4']; foreach ($tests as $test) { var_dump($test); echo " -> \n"; var_export(explode(',', $test)); echo "\n---\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
NULL -> Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/b55r5 on line 7 array ( 0 => '', ) --- int(0) -> array ( 0 => '0', ) --- string(1) "0" -> array ( 0 => '0', ) --- string(0) "" -> array ( 0 => '', ) --- string(1) "a" -> array ( 0 => 'a', ) --- string(5) "b,c,d" -> array ( 0 => 'b', 1 => 'c', 2 => 'd', ) --- string(7) "1,2,3,4" -> array ( 0 => '1', 1 => '2', 2 => '3', 3 => '4', ) ---

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:
60.5 ms | 402 KiB | 8 Q