3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = "onclick=\"double_list_move(\$('{$selectableName}'), \$('{$selectedName}')); return false;\""; if (!isset($options['alt'])) { $path_pos = strrpos($source, '/'); $dot_pos = strrpos($source, '.'); $begin = $path_pos ? $path_pos + 1 : 0; $nb_str = ($dot_pos ? $dot_pos : strlen($source)) - $begin; $options['alt'] = ucfirst(substr($source, $begin, $nb_str)); } echo $options; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $selectableName in /in/YKE2s on line 3 Warning: Undefined variable $selectedName in /in/YKE2s on line 3 Warning: Undefined variable $source in /in/YKE2s on line 7 Deprecated: strrpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/YKE2s on line 7 Warning: Undefined variable $source in /in/YKE2s on line 8 Deprecated: strrpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/YKE2s on line 8 Warning: Undefined variable $source in /in/YKE2s on line 10 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/YKE2s on line 10 Warning: Undefined variable $source in /in/YKE2s on line 11 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/YKE2s on line 11 Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/YKE2s:11 Stack trace: #0 {main} thrown in /in/YKE2s on line 11
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:
56.97 ms | 402 KiB | 8 Q