3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i256 = str_replace(',', '', '115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129,639,936'); error_reporting((int) $i256); $t = true; ob_start(); session_name(urlencode('a[b]')); session_start(); ob_end_clean(); if(isset($_SESSION['hi'])) { $t = false; } $text = ini_get('session.save_path') . '/sess_' . $_COOKIE['a']['b']; function get_include_contents($filename) { //if (is_file($filename)) { ob_start(); include $filename; $var = ob_get_contents(); ob_end_clean(); return $var; //} return false; } $string = get_include_contents($text); $_SESSION['hi'] = 'user2'; var_dump($string); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "a" in /in/43Hl7 on line 13 Warning: Trying to access array offset on null in /in/43Hl7 on line 13 string(346) " Warning: include(): open_basedir restriction in effect. File(/sess_) is not within the allowed path(s): (/tmp:/in:/etc) in /in/43Hl7 on line 18 Warning: include(/sess_): Failed to open stream: Operation not permitted in /in/43Hl7 on line 18 Warning: include(): Failed opening '/sess_' for inclusion (include_path='.:') in /in/43Hl7 on line 18 "

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:
97.5 ms | 406 KiB | 5 Q