3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject = ' up /sbin/ip addr add 10.8.225-32.0/24 dev $IFACE label $IFACE:0 down /sbin/ip addr del 10.8.225-32.0/24 dev $IFACE label $IFACE:0 up /sbin/ip addr add 10.8.226-32.0/24 dev $IFACE label $IFACE:1 down /sbin/ip addr del 10.8.226-32.0/24 dev $IFACE label $IFACE:1 up /sbin/ip addr add 10.8.227-32.0/24 dev $IFACE label $IFACE:2 down /sbin/ip addr del 10.8.227-32.0/24 dev $IFACE label $IFACE:2 up /sbin/ip addr add 10.8.228-32.0/24 dev $IFACE label $IFACE:3 down /sbin/ip addr del 10.8.228-32.0/24 dev $IFACE label $IFACE:3 up /sbin/ip addr add 10.8.229-32.0/24 dev $IFACE label $IFACE:4 down /sbin/ip addr del 10.8.229-32.0/24 dev $IFACE label $IFACE:4 up /sbin/ip addr add 10.8.230-32.0/24 dev $IFACE label $IFACE:5 down /sbin/ip addr del 10.8.230-32.0/24 dev $IFACE label $IFACE:5 up /sbin/ip addr add 10.8.231-32.0/24 dev $IFACE label $IFACE:6 down /sbin/ip addr del 10.8.231-32.0/24 dev $IFACE label $IFACE:6 up /sbin/ip addr add 10.8.232-32.0/24 dev $IFACE label $IFACE:7 down /sbin/ip addr del 10.8.232-32.0/24 dev $IFACE label $IFACE:7 up /sbin/ip addr add 10.8.233-32.0/24 dev $IFACE label $IFACE:8 down /sbin/ip addr del 10.8.233-32.0/24 dev $IFACE label $IFACE:8 up /sbin/ip addr add 10.8.234-32.0/24 dev $IFACE label $IFACE:9 down /sbin/ip addr del 10.8.234-32.0/24 dev $IFACE label $IFACE:9 up /sbin/ip addr add 10.8.235-32.0/24 dev $IFACE label $IFACE:10 down /sbin/ip addr del 10.8.235-32.0/24 dev $IFACE label $IFACE:10 up /sbin/ip addr add 10.8.236-32.0/24 dev $IFACE label $IFACE:11 down /sbin/ip addr del 10.8.236-32.0/24 dev $IFACE label $IFACE:11 up /sbin/ip addr add 10.8.237-32.0/24 dev $IFACE label $IFACE:12 down /sbin/ip addr del 10.8.237-32.0/24 dev $IFACE label $IFACE:12 up /sbin/ip addr add 10.8.238-32.0/24 dev $IFACE label $IFACE:13 down /sbin/ip addr del 10.8.238-32.0/24 dev $IFACE label $IFACE:13 up /sbin/ip addr add 10.8.239-32.0/24 dev $IFACE label $IFACE:14 down /sbin/ip addr del 10.8.239-32.0/24 dev $IFACE label $IFACE:14 up /sbin/ip addr add 10.8.240-32.0/24 dev $IFACE label $IFACE:15 down /sbin/ip addr del 10.8.240-32.0/24 dev $IFACE label $IFACE:15 up /sbin/ip addr add 10.8.241-32.0/24 dev $IFACE label $IFACE:16 down /sbin/ip addr del 10.8.241-32.0/24 dev $IFACE label $IFACE:16 up /sbin/ip addr add 10.8.242-32.0/24 dev $IFACE label $IFACE:17 down /sbin/ip addr del 10.8.242-32.0/24 dev $IFACE label $IFACE:17 up /sbin/ip addr add 10.8.243-32.0/24 dev $IFACE label $IFACE:18 down /sbin/ip addr del 10.8.243-32.0/24 dev $IFACE label $IFACE:18 up /sbin/ip addr add 10.8.244-32.0/24 dev $IFACE label $IFACE:19 down /sbin/ip addr del 10.8.244-32.0/24 dev $IFACE label $IFACE:19 up /sbin/ip addr add 10.8.245-32.0/24 dev $IFACE label $IFACE:20 down /sbin/ip addr del 10.8.245-32.0/24 dev $IFACE label $IFACE:20 up /sbin/ip addr add 10.8.246-32.0/24 dev $IFACE label $IFACE:21 down /sbin/ip addr del 10.8.246-32.0/24 dev $IFACE label $IFACE:21 up /sbin/ip addr add 10.8.247-32.0/24 dev $IFACE label $IFACE:22 down /sbin/ip addr del 10.8.247-32.0/24 dev $IFACE label $IFACE:22 up /sbin/ip addr add 10.8.248-32.0/24 dev $IFACE label $IFACE:23 down /sbin/ip addr del 10.8.248-32.0/24 dev $IFACE label $IFACE:23 up /sbin/ip addr add 10.8.249-32.0/24 dev $IFACE label $IFACE:24 down /sbin/ip addr del 10.8.249-32.0/24 dev $IFACE label $IFACE:24 up /sbin/ip addr add 10.8.250-32.0/24 dev $IFACE label $IFACE:25 down /sbin/ip addr del 10.8.250-32.0/24 dev $IFACE label $IFACE:25 up /sbin/ip addr add 10.8.251-32.0/24 dev $IFACE label $IFACE:26 down /sbin/ip addr del 10.8.251-32.0/24 dev $IFACE label $IFACE:26 up /sbin/ip addr add 10.8.252-32.0/24 dev $IFACE label $IFACE:27 down /sbin/ip addr del 10.8.252-32.0/24 dev $IFACE label $IFACE:27 up /sbin/ip addr add 10.8.253-32.0/24 dev $IFACE label $IFACE:28 down /sbin/ip addr del 10.8.253-32.0/24 dev $IFACE label $IFACE:28 up /sbin/ip addr add 10.8.254-32.0/24 dev $IFACE label $IFACE:29 down /sbin/ip addr del 10.8.254-32.0/24 dev $IFACE label $IFACE:29 up /sbin/ip addr add 10.8.255-32.0/24 dev $IFACE label $IFACE:30 down /sbin/ip addr del 10.8.255-32.0/24 dev $IFACE label $IFACE:30'; $pattern = '~(\d+[+-]\d+)~e'; echo preg_replace($pattern, '$1', $subject);
Output for 7.0.0 - 7.1.0
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/8UCTV on line 69
Output for 4.3.0 - 5.4.45, hhvm-3.10.0 - 3.12.0
up /sbin/ip addr add 10.8.193.0/24 dev $IFACE label $IFACE:0 down /sbin/ip addr del 10.8.193.0/24 dev $IFACE label $IFACE:0 up /sbin/ip addr add 10.8.194.0/24 dev $IFACE label $IFACE:1 down /sbin/ip addr del 10.8.194.0/24 dev $IFACE label $IFACE:1 up /sbin/ip addr add 10.8.195.0/24 dev $IFACE label $IFACE:2 down /sbin/ip addr del 10.8.195.0/24 dev $IFACE label $IFACE:2 up /sbin/ip addr add 10.8.196.0/24 dev $IFACE label $IFACE:3 down /sbin/ip addr del 10.8.196.0/24 dev $IFACE label $IFACE:3 up /sbin/ip addr add 10.8.197.0/24 dev $IFACE label $IFACE:4 down /sbin/ip addr del 10.8.197.0/24 dev $IFACE label $IFACE:4 up /sbin/ip addr add 10.8.198.0/24 dev $IFACE label $IFACE:5 down /sbin/ip addr del 10.8.198.0/24 dev $IFACE label $IFACE:5 up /sbin/ip addr add 10.8.199.0/24 dev $IFACE label $IFACE:6 down /sbin/ip addr del 10.8.199.0/24 dev $IFACE label $IFACE:6 up /sbin/ip addr add 10.8.200.0/24 dev $IFACE label $IFACE:7 down /sbin/ip addr del 10.8.200.0/24 dev $IFACE label $IFACE:7 up /sbin/ip addr add 10.8.201.0/24 dev $IFACE label $IFACE:8 down /sbin/ip addr del 10.8.201.0/24 dev $IFACE label $IFACE:8 up /sbin/ip addr add 10.8.202.0/24 dev $IFACE label $IFACE:9 down /sbin/ip addr del 10.8.202.0/24 dev $IFACE label $IFACE:9 up /sbin/ip addr add 10.8.203.0/24 dev $IFACE label $IFACE:10 down /sbin/ip addr del 10.8.203.0/24 dev $IFACE label $IFACE:10 up /sbin/ip addr add 10.8.204.0/24 dev $IFACE label $IFACE:11 down /sbin/ip addr del 10.8.204.0/24 dev $IFACE label $IFACE:11 up /sbin/ip addr add 10.8.205.0/24 dev $IFACE label $IFACE:12 down /sbin/ip addr del 10.8.205.0/24 dev $IFACE label $IFACE:12 up /sbin/ip addr add 10.8.206.0/24 dev $IFACE label $IFACE:13 down /sbin/ip addr del 10.8.206.0/24 dev $IFACE label $IFACE:13 up /sbin/ip addr add 10.8.207.0/24 dev $IFACE label $IFACE:14 down /sbin/ip addr del 10.8.207.0/24 dev $IFACE label $IFACE:14 up /sbin/ip addr add 10.8.208.0/24 dev $IFACE label $IFACE:15 down /sbin/ip addr del 10.8.208.0/24 dev $IFACE label $IFACE:15 up /sbin/ip addr add 10.8.209.0/24 dev $IFACE label $IFACE:16 down /sbin/ip addr del 10.8.209.0/24 dev $IFACE label $IFACE:16 up /sbin/ip addr add 10.8.210.0/24 dev $IFACE label $IFACE:17 down /sbin/ip addr del 10.8.210.0/24 dev $IFACE label $IFACE:17 up /sbin/ip addr add 10.8.211.0/24 dev $IFACE label $IFACE:18 down /sbin/ip addr del 10.8.211.0/24 dev $IFACE label $IFACE:18 up /sbin/ip addr add 10.8.212.0/24 dev $IFACE label $IFACE:19 down /sbin/ip addr del 10.8.212.0/24 dev $IFACE label $IFACE:19 up /sbin/ip addr add 10.8.213.0/24 dev $IFACE label $IFACE:20 down /sbin/ip addr del 10.8.213.0/24 dev $IFACE label $IFACE:20 up /sbin/ip addr add 10.8.214.0/24 dev $IFACE label $IFACE:21 down /sbin/ip addr del 10.8.214.0/24 dev $IFACE label $IFACE:21 up /sbin/ip addr add 10.8.215.0/24 dev $IFACE label $IFACE:22 down /sbin/ip addr del 10.8.215.0/24 dev $IFACE label $IFACE:22 up /sbin/ip addr add 10.8.216.0/24 dev $IFACE label $IFACE:23 down /sbin/ip addr del 10.8.216.0/24 dev $IFACE label $IFACE:23 up /sbin/ip addr add 10.8.217.0/24 dev $IFACE label $IFACE:24 down /sbin/ip addr del 10.8.217.0/24 dev $IFACE label $IFACE:24 up /sbin/ip addr add 10.8.218.0/24 dev $IFACE label $IFACE:25 down /sbin/ip addr del 10.8.218.0/24 dev $IFACE label $IFACE:25 up /sbin/ip addr add 10.8.219.0/24 dev $IFACE label $IFACE:26 down /sbin/ip addr del 10.8.219.0/24 dev $IFACE label $IFACE:26 up /sbin/ip addr add 10.8.220.0/24 dev $IFACE label $IFACE:27 down /sbin/ip addr del 10.8.220.0/24 dev $IFACE label $IFACE:27 up /sbin/ip addr add 10.8.221.0/24 dev $IFACE label $IFACE:28 down /sbin/ip addr del 10.8.221.0/24 dev $IFACE label $IFACE:28 up /sbin/ip addr add 10.8.222.0/24 dev $IFACE label $IFACE:29 down /sbin/ip addr del 10.8.222.0/24 dev $IFACE label $IFACE:29 up /sbin/ip addr add 10.8.223.0/24 dev $IFACE label $IFACE:30 down /sbin/ip addr del 10.8.223.0/24 dev $IFACE label $IFACE:30
Output for 5.5.0 - 5.6.28
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/8UCTV on line 69 up /sbin/ip addr add 10.8.193.0/24 dev $IFACE label $IFACE:0 down /sbin/ip addr del 10.8.193.0/24 dev $IFACE label $IFACE:0 up /sbin/ip addr add 10.8.194.0/24 dev $IFACE label $IFACE:1 down /sbin/ip addr del 10.8.194.0/24 dev $IFACE label $IFACE:1 up /sbin/ip addr add 10.8.195.0/24 dev $IFACE label $IFACE:2 down /sbin/ip addr del 10.8.195.0/24 dev $IFACE label $IFACE:2 up /sbin/ip addr add 10.8.196.0/24 dev $IFACE label $IFACE:3 down /sbin/ip addr del 10.8.196.0/24 dev $IFACE label $IFACE:3 up /sbin/ip addr add 10.8.197.0/24 dev $IFACE label $IFACE:4 down /sbin/ip addr del 10.8.197.0/24 dev $IFACE label $IFACE:4 up /sbin/ip addr add 10.8.198.0/24 dev $IFACE label $IFACE:5 down /sbin/ip addr del 10.8.198.0/24 dev $IFACE label $IFACE:5 up /sbin/ip addr add 10.8.199.0/24 dev $IFACE label $IFACE:6 down /sbin/ip addr del 10.8.199.0/24 dev $IFACE label $IFACE:6 up /sbin/ip addr add 10.8.200.0/24 dev $IFACE label $IFACE:7 down /sbin/ip addr del 10.8.200.0/24 dev $IFACE label $IFACE:7 up /sbin/ip addr add 10.8.201.0/24 dev $IFACE label $IFACE:8 down /sbin/ip addr del 10.8.201.0/24 dev $IFACE label $IFACE:8 up /sbin/ip addr add 10.8.202.0/24 dev $IFACE label $IFACE:9 down /sbin/ip addr del 10.8.202.0/24 dev $IFACE label $IFACE:9 up /sbin/ip addr add 10.8.203.0/24 dev $IFACE label $IFACE:10 down /sbin/ip addr del 10.8.203.0/24 dev $IFACE label $IFACE:10 up /sbin/ip addr add 10.8.204.0/24 dev $IFACE label $IFACE:11 down /sbin/ip addr del 10.8.204.0/24 dev $IFACE label $IFACE:11 up /sbin/ip addr add 10.8.205.0/24 dev $IFACE label $IFACE:12 down /sbin/ip addr del 10.8.205.0/24 dev $IFACE label $IFACE:12 up /sbin/ip addr add 10.8.206.0/24 dev $IFACE label $IFACE:13 down /sbin/ip addr del 10.8.206.0/24 dev $IFACE label $IFACE:13 up /sbin/ip addr add 10.8.207.0/24 dev $IFACE label $IFACE:14 down /sbin/ip addr del 10.8.207.0/24 dev $IFACE label $IFACE:14 up /sbin/ip addr add 10.8.208.0/24 dev $IFACE label $IFACE:15 down /sbin/ip addr del 10.8.208.0/24 dev $IFACE label $IFACE:15 up /sbin/ip addr add 10.8.209.0/24 dev $IFACE label $IFACE:16 down /sbin/ip addr del 10.8.209.0/24 dev $IFACE label $IFACE:16 up /sbin/ip addr add 10.8.210.0/24 dev $IFACE label $IFACE:17 down /sbin/ip addr del 10.8.210.0/24 dev $IFACE label $IFACE:17 up /sbin/ip addr add 10.8.211.0/24 dev $IFACE label $IFACE:18 down /sbin/ip addr del 10.8.211.0/24 dev $IFACE label $IFACE:18 up /sbin/ip addr add 10.8.212.0/24 dev $IFACE label $IFACE:19 down /sbin/ip addr del 10.8.212.0/24 dev $IFACE label $IFACE:19 up /sbin/ip addr add 10.8.213.0/24 dev $IFACE label $IFACE:20 down /sbin/ip addr del 10.8.213.0/24 dev $IFACE label $IFACE:20 up /sbin/ip addr add 10.8.214.0/24 dev $IFACE label $IFACE:21 down /sbin/ip addr del 10.8.214.0/24 dev $IFACE label $IFACE:21 up /sbin/ip addr add 10.8.215.0/24 dev $IFACE label $IFACE:22 down /sbin/ip addr del 10.8.215.0/24 dev $IFACE label $IFACE:22 up /sbin/ip addr add 10.8.216.0/24 dev $IFACE label $IFACE:23 down /sbin/ip addr del 10.8.216.0/24 dev $IFACE label $IFACE:23 up /sbin/ip addr add 10.8.217.0/24 dev $IFACE label $IFACE:24 down /sbin/ip addr del 10.8.217.0/24 dev $IFACE label $IFACE:24 up /sbin/ip addr add 10.8.218.0/24 dev $IFACE label $IFACE:25 down /sbin/ip addr del 10.8.218.0/24 dev $IFACE label $IFACE:25 up /sbin/ip addr add 10.8.219.0/24 dev $IFACE label $IFACE:26 down /sbin/ip addr del 10.8.219.0/24 dev $IFACE label $IFACE:26 up /sbin/ip addr add 10.8.220.0/24 dev $IFACE label $IFACE:27 down /sbin/ip addr del 10.8.220.0/24 dev $IFACE label $IFACE:27 up /sbin/ip addr add 10.8.221.0/24 dev $IFACE label $IFACE:28 down /sbin/ip addr del 10.8.221.0/24 dev $IFACE label $IFACE:28 up /sbin/ip addr add 10.8.222.0/24 dev $IFACE label $IFACE:29 down /sbin/ip addr del 10.8.222.0/24 dev $IFACE label $IFACE:29 up /sbin/ip addr add 10.8.223.0/24 dev $IFACE label $IFACE:30 down /sbin/ip addr del 10.8.223.0/24 dev $IFACE label $IFACE:30