3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = 24; for ($i=1;$i<=24;$i++){ echo ' create vlan vlan10'.$i+$s.' tag 10'.$i.' config vlan vlan10'.$i+$s.' untagger '.$i.' '; }
based on IK3Ns
Output for 7.1.0 - 7.3.0alpha1
Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 1 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 2 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 3 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 4 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 5 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 6 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 7 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 8 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 9 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 10 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 11 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 12 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 13 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 14 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 15 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 16 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 17 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 18 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 19 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 20 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 21 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 22 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 23 Warning: A non-numeric value encountered in /in/LMs6Q on line 6 Notice: A non well formed numeric value encountered in /in/LMs6Q on line 7 48 untagger 24
Output for 5.3.21 - 7.0.20
48 untagger 1 48 untagger 2 48 untagger 3 48 untagger 4 48 untagger 5 48 untagger 6 48 untagger 7 48 untagger 8 48 untagger 9 48 untagger 10 48 untagger 11 48 untagger 12 48 untagger 13 48 untagger 14 48 untagger 15 48 untagger 16 48 untagger 17 48 untagger 18 48 untagger 19 48 untagger 20 48 untagger 21 48 untagger 22 48 untagger 23 48 untagger 24