3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reply = "18701880775,woca,2015-11-13 15:32:22.0"; $data = explode(";", $reply); foreach ($data as $k => $v) { $sms = explode(',', $v); if(!$v['0']) { continue; } $fields['su_from'] = 4; // 1众览 2建周 $fields['su_mid'] = $S->getMidByPhone($v['0']) ? $S->getMidByPhone($v['0']) : 0; $fields['su_mobile'] = $sms['0']; $fields['su_content'] = $sms['1']; $fields['su_time'] = $sms['2']; $fields['su_extenion'] = ''; $fields['su_create_time'] = '=NOW()'; $fields['su_create_time'] = '=NOW()'; var_dump($fields); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $S in /in/0pYnl on line 12 Fatal error: Uncaught Error: Call to a member function getMidByPhone() on null in /in/0pYnl:12 Stack trace: #0 {main} thrown in /in/0pYnl on line 12
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:
36.43 ms | 401 KiB | 8 Q