3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=25;$i<=48;$i++){ echo 'host client'.$i.' { host-identifier option agent.circuit-id "vlan10'.$i.'"; fixed-address 95.46.11.'.($i+1).'; } '; }
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
host client25 { host-identifier option agent.circuit-id "vlan1025"; fixed-address 95.46.11.26; } host client26 { host-identifier option agent.circuit-id "vlan1026"; fixed-address 95.46.11.27; } host client27 { host-identifier option agent.circuit-id "vlan1027"; fixed-address 95.46.11.28; } host client28 { host-identifier option agent.circuit-id "vlan1028"; fixed-address 95.46.11.29; } host client29 { host-identifier option agent.circuit-id "vlan1029"; fixed-address 95.46.11.30; } host client30 { host-identifier option agent.circuit-id "vlan1030"; fixed-address 95.46.11.31; } host client31 { host-identifier option agent.circuit-id "vlan1031"; fixed-address 95.46.11.32; } host client32 { host-identifier option agent.circuit-id "vlan1032"; fixed-address 95.46.11.33; } host client33 { host-identifier option agent.circuit-id "vlan1033"; fixed-address 95.46.11.34; } host client34 { host-identifier option agent.circuit-id "vlan1034"; fixed-address 95.46.11.35; } host client35 { host-identifier option agent.circuit-id "vlan1035"; fixed-address 95.46.11.36; } host client36 { host-identifier option agent.circuit-id "vlan1036"; fixed-address 95.46.11.37; } host client37 { host-identifier option agent.circuit-id "vlan1037"; fixed-address 95.46.11.38; } host client38 { host-identifier option agent.circuit-id "vlan1038"; fixed-address 95.46.11.39; } host client39 { host-identifier option agent.circuit-id "vlan1039"; fixed-address 95.46.11.40; } host client40 { host-identifier option agent.circuit-id "vlan1040"; fixed-address 95.46.11.41; } host client41 { host-identifier option agent.circuit-id "vlan1041"; fixed-address 95.46.11.42; } host client42 { host-identifier option agent.circuit-id "vlan1042"; fixed-address 95.46.11.43; } host client43 { host-identifier option agent.circuit-id "vlan1043"; fixed-address 95.46.11.44; } host client44 { host-identifier option agent.circuit-id "vlan1044"; fixed-address 95.46.11.45; } host client45 { host-identifier option agent.circuit-id "vlan1045"; fixed-address 95.46.11.46; } host client46 { host-identifier option agent.circuit-id "vlan1046"; fixed-address 95.46.11.47; } host client47 { host-identifier option agent.circuit-id "vlan1047"; fixed-address 95.46.11.48; } host client48 { host-identifier option agent.circuit-id "vlan1048"; fixed-address 95.46.11.49; }
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 host client25 { host-identifier option agent.circuit-id "vlan1025"; fixed-address 95.46.11.26; } host client26 { host-identifier option agent.circuit-id "vlan1026"; fixed-address 95.46.11.27; } host client27 { host-identifier option agent.circuit-id "vlan1027"; fixed-address 95.46.11.28; } host client28 { host-identifier option agent.circuit-id "vlan1028"; fixed-address 95.46.11.29; } host client29 { host-identifier option agent.circuit-id "vlan1029"; fixed-address 95.46.11.30; } host client30 { host-identifier option agent.circuit-id "vlan1030"; fixed-address 95.46.11.31; } host client31 { host-identifier option agent.circuit-id "vlan1031"; fixed-address 95.46.11.32; } host client32 { host-identifier option agent.circuit-id "vlan1032"; fixed-address 95.46.11.33; } host client33 { host-identifier option agent.circuit-id "vlan1033"; fixed-address 95.46.11.34; } host client34 { host-identifier option agent.circuit-id "vlan1034"; fixed-address 95.46.11.35; } host client35 { host-identifier option agent.circuit-id "vlan1035"; fixed-address 95.46.11.36; } host client36 { host-identifier option agent.circuit-id "vlan1036"; fixed-address 95.46.11.37; } host client37 { host-identifier option agent.circuit-id "vlan1037"; fixed-address 95.46.11.38; } host client38 { host-identifier option agent.circuit-id "vlan1038"; fixed-address 95.46.11.39; } host client39 { host-identifier option agent.circuit-id "vlan1039"; fixed-address 95.46.11.40; } host client40 { host-identifier option agent.circuit-id "vlan1040"; fixed-address 95.46.11.41; } host client41 { host-identifier option agent.circuit-id "vlan1041"; fixed-address 95.46.11.42; } host client42 { host-identifier option agent.circuit-id "vlan1042"; fixed-address 95.46.11.43; } host client43 { host-identifier option agent.circuit-id "vlan1043"; fixed-address 95.46.11.44; } host client44 { host-identifier option agent.circuit-id "vlan1044"; fixed-address 95.46.11.45; } host client45 { host-identifier option agent.circuit-id "vlan1045"; fixed-address 95.46.11.46; } host client46 { host-identifier option agent.circuit-id "vlan1046"; fixed-address 95.46.11.47; } host client47 { host-identifier option agent.circuit-id "vlan1047"; fixed-address 95.46.11.48; } host client48 { host-identifier option agent.circuit-id "vlan1048"; fixed-address 95.46.11.49; }

preferences:
176.08 ms | 409 KiB | 228 Q