3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['a', 'b', 'c', 'idx' => 'kek']; $b = [1, 2, 3]; var_dump(array_merge($a, $b)); var_dump(json_decode('{"a": 34}', true)); var_dump($a['idx'] ?? null); var_dump(openssl_get_cert_locations()); ?>
Output for git.master_jit, git.master, rfc.property-hooks
array(7) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" ["idx"]=> string(3) "kek" [3]=> int(1) [4]=> int(2) [5]=> int(3) } array(1) { ["a"]=> int(34) } string(3) "kek" Fatal error: Uncaught Error: Call to undefined function openssl_get_cert_locations() in /in/pe26e:7 Stack trace: #0 {main} thrown in /in/pe26e on line 7
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:
57.08 ms | 401 KiB | 8 Q