3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $in_addr = inet_pton("2001:06b8:0000:0000:0000:0000:1428:07ab"); var_dump($in_addr);
Output for 5.4.34 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(16) " �(�"
Output for 5.4.32
string(16) " 5.4.32�(T8qpc�"
Output for 5.4.31
string(16) " 5.4.31�(T8qpc�"
Output for 5.4.30
string(16) " 5.4.30�(T8qpc�"
Output for 5.4.29
string(16) " 5.4.29�(T8qpc�"
Output for 5.4.28
string(16) " 5.4.28�(T8qpc�"
Output for 5.4.27
string(16) " 5.4.27�(T8qpc�"
Output for 5.4.26
string(16) " 5.4.26�(T8qpc�"
Output for 5.4.25
string(16) " 5.4.25�(T8qpc�"
Output for 5.4.24
string(16) " 5.4.24�(T8qpc�"
Output for 5.4.23
string(16) " 5.4.23�(T8qpc�"
Output for 5.4.22
string(16) " 5.4.22�(T8qpc�"
Output for 5.4.21
string(16) " 5.4.21�(T8qpc�"
Output for 5.4.20
string(16) " 5.4.20�(T8qpc�"
Output for 5.4.19
string(16) " 5.4.19�(T8qpc�"
Output for 5.4.18
string(16) " 5.4.18�(T8qpc�"
Output for 5.4.17
string(16) " 5.4.17�(T8qpc�"
Output for 5.4.16
string(16) " 5.4.16�(T8qpc�"
Output for 5.4.15
string(16) " 5.4.15�(T8qpc�"
Output for 5.4.14
string(16) " 5.4.14�(T8qpc�"
Output for 5.4.13
string(16) " 5.4.13�(T8qpc�"
Output for 5.4.12
string(16) " 5.4.12�(T8qpc�"
Output for 5.4.11
string(16) " 5.4.11�(T8qpc�"
Output for 5.4.10
string(16) " 5.4.10�(T8qpc�"
Output for 5.4.9
string(16) " 5.4.9�(T8qpc�"
Output for 5.4.8
string(16) " 5.4.8�(T8qpc�"
Output for 5.4.7
string(16) " 5.4.7�(T8qpc�"
Output for 5.4.6
string(16) " 5.4.6�(T8qpc�"
Output for 5.4.5
string(16) " 5.4.5�(T8qpc�"
Output for 5.4.4
string(16) " 5.4.4�(T8qpc�"
Output for 5.4.3
string(16) " 5.4.3�(T8qpc�"
Output for 5.4.2
string(16) " 5.4.2�(T8qpc�"
Output for 5.4.1
string(16) " 5.4.1�(T8qpc�"
Output for 5.4.0
string(16) " 5.4.0�(T8qpc�"
Output for 5.3.29
string(16) " 5.3.29�(T8qpc�"
Output for 5.3.28
string(16) " 5.3.28�(T8qpc�"
Output for 5.3.27
string(16) " 5.3.27�(T8qpc�"
Output for 5.3.26
string(16) " 5.3.26�(T8qpc�"
Output for 5.3.25
string(16) " 5.3.25�(T8qpc�"
Output for 5.3.24
string(16) " 5.3.24�(T8qpc�"
Output for 5.3.23
string(16) " 5.3.23�(T8qpc�"
Output for 5.3.22
string(16) " 5.3.22�(T8qpc�"
Output for 5.3.21
string(16) " 5.3.21�(T8qpc�"
Output for 5.3.20
string(16) " 5.3.20�(T8qpc�"
Output for 5.3.19
string(16) " 5.3.19�(T8qpc�"
Output for 5.3.18
string(16) " 5.3.18�(T8qpc�"
Output for 5.3.17
string(16) " 5.3.17�(T8qpc�"
Output for 5.3.16
string(16) " 5.3.16�(T8qpc�"
Output for 5.3.15
string(16) " 5.3.15�(T8qpc�"
Output for 5.3.14
string(16) " 5.3.14�(T8qpc�"
Output for 5.3.13
string(16) " 5.3.13�(T8qpc�"
Output for 5.3.12
string(16) " 5.3.12�(T8qpc�"
Output for 5.3.11
string(16) " 5.3.11�(T8qpc�"
Output for 5.3.10
string(16) " 5.3.10�(T8qpc�"
Output for 5.3.9
string(16) " 5.3.9�(T8qpc�"
Output for 5.3.8
string(16) " 5.3.8�(T8qpc�"
Output for 5.3.7
string(16) " 5.3.7�(T8qpc�"
Output for 5.3.6
string(16) " 5.3.6�(T8qpc�"
Output for 5.3.5
string(16) " 5.3.5�(T8qpc�"
Output for 5.3.4
string(16) " 5.3.4�(T8qpc�"
Output for 5.3.3
string(16) " 5.3.3�(T8qpc�"
Output for 5.3.2
string(16) " 5.3.2�(T8qpc�"
Output for 5.3.1
string(16) " 5.3.1�(T8qpc�"
Output for 5.3.0
string(16) " 5.3.0�(T8qpc�"
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.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