3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $machine_id == 0; $boot_vars_net0 = array('dhcp_ip' => '127.0.0.1', 'ip' => '192.168.0.1'); if($machine_id == 0) { for($i=0; $i <= $settings['interface_count']-1; $i++) { if(isset(${'boot_vars_net'.$i})) { foreach(${'boot_vars_net'.$i} AS $key => $value) { if($machine_id == 0) { //$machine_id = identify_machine('boot_vars_net'.$i.'_'.$key, $value); } else { break; } } } if($machine_id != 0) { break; } } }
based on kvc31
Output for 5.0.4 - 7.2.6
Notice: Undefined variable: machine_id in /in/vqKSX on line 3 Notice: Undefined variable: machine_id in /in/vqKSX on line 8 Notice: Undefined variable: settings in /in/vqKSX on line 10
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: machine_id in /in/vqKSX on line 3 Notice: Undefined variable: machine_id in /in/vqKSX on line 8 Notice: Undefined variable: settings in /in/vqKSX on line 10