3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in_addr = inet_pton("2001:06b8:0000:0000:0000:0000:1428:07ab"); var_dump($in_addr);
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 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.19, 8.3.0 - 8.3.7
string(16) " �(�"
Output for 5.2.17
string(16) " 5.2.17�(T8qpc�"
Output for 5.2.16
string(16) " 5.2.16�(T8qpc�"
Output for 5.2.15
string(16) " 5.2.15�(T8qpc�"
Output for 5.2.14
string(16) " 5.2.14�(T8qpc�"
Output for 5.2.13
string(16) " 5.2.13�(T8qpc�"
Output for 5.2.12
string(16) " 5.2.12�(T8qpc�"
Output for 5.2.11
string(16) " 5.2.11�(T8qpc�"
Output for 5.2.10
string(16) " 5.2.10�(T8qpc�"
Output for 5.2.9
string(16) " 5.2.9�(T8qpc�"
Output for 5.2.8
string(16) " 5.2.8�(T8qpc�"
Output for 5.2.7
string(16) " 5.2.7�(T8qpc�"
Output for 5.2.6
string(16) " 5.2.6�(T8qpc�"
Output for 5.2.5
string(16) " 5.2.5�(T8qpc�"
Output for 5.2.4
string(16) " 5.2.4�(T8qpc�"
Output for 5.2.3
string(16) " 5.2.3�(T8qpc�"
Output for 5.2.2
string(16) " 5.2.2�(T8qpc�"
Output for 5.2.1
string(16) " 5.2.1�(T8qpc�"
Output for 5.2.0
string(16) " 5.2.0�(T8qpc�"
Output for 5.1.6
string(16) " 5.1.6�(T8qpc�"
Output for 5.1.5
string(16) " 5.1.5�(T8qpc�"
Output for 5.1.4
string(16) " 5.1.4�(T8qpc�"
Output for 5.1.3
string(16) " 5.1.3�(T8qpc�"
Output for 5.1.2
string(16) " 5.1.2�(T8qpc�"
Output for 5.1.1
string(16) " 5.1.1�(T8qpc�"
Output for 5.1.0
string(16) " 5.1.0�(T8qpc�"
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function inet_pton() in /in/nWXnM on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: inet_pton() in /in/nWXnM on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: inet_pton() in /in/nWXnM on line 2
Process exited with code 255.
Output for 4.3.1
Fatal error: Call to undefined function: inet_pton() in /in/nWXnM on line 2
Output for 4.3.0
Fatal error: Call to undefined function: inet_pton() in /in/T8qpc on line 2

preferences:
269.21 ms | 401 KiB | 462 Q