3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "PHP version ".phpversion()."\n"; if (version_compare(phpversion(), '5.5.0', '>=') ){ echo "Yay!\n"; } else{ echo "Nay\n"; }
Output for 7.1.10
PHP version 7.1.10 Yay!
Output for 7.1.7
PHP version 7.1.7 Yay!
Output for 7.1.6
PHP version 7.1.6 Yay!
Output for 7.1.5
PHP version 7.1.5 Yay!
Output for 7.1.0
PHP version 7.1.0 Yay!
Output for 7.0.20
PHP version 7.0.20 Yay!
Output for 7.0.14
PHP version 7.0.14 Yay!
Output for 7.0.10
PHP version 7.0.10 Yay!
Output for 7.0.9
PHP version 7.0.9 Yay!
Output for 7.0.8
PHP version 7.0.8 Yay!
Output for 7.0.7
PHP version 7.0.7 Yay!
Output for 7.0.6
PHP version 7.0.6 Yay!
Output for 7.0.5
PHP version 7.0.5 Yay!
Output for 7.0.4
PHP version 7.0.4 Yay!
Output for 7.0.3
PHP version 7.0.3 Yay!
Output for 7.0.2
PHP version 7.0.2 Yay!
Output for 7.0.1
PHP version 7.0.1 Yay!
Output for 7.0.0
PHP version 7.0.0 Yay!
Output for 5.6.28
PHP version 5.6.28 Yay!
Output for 5.6.25
PHP version 5.6.25 Yay!
Output for 5.6.24
PHP version 5.6.24 Yay!
Output for 5.6.23
PHP version 5.6.23 Yay!
Output for 5.6.22
PHP version 5.6.22 Yay!
Output for 5.6.21
PHP version 5.6.21 Yay!
Output for 5.6.20
PHP version 5.6.20 Yay!
Output for 5.6.19
PHP version 5.6.19 Yay!
Output for 5.6.18
PHP version 5.6.18 Yay!
Output for 5.6.17
PHP version 5.6.17 Yay!
Output for 5.6.16
PHP version 5.6.16 Yay!
Output for 5.6.15
PHP version 5.6.15 Yay!
Output for 5.6.14
PHP version 5.6.14 Yay!
Output for 5.6.13
PHP version 5.6.13 Yay!
Output for 5.6.12
PHP version 5.6.12 Yay!
Output for 5.6.11
PHP version 5.6.11 Yay!
Output for 5.6.10
PHP version 5.6.10 Yay!
Output for 5.6.9
PHP version 5.6.9 Yay!
Output for 5.6.8
PHP version 5.6.8 Yay!
Output for 5.6.7
PHP version 5.6.7 Yay!
Output for 5.6.6
PHP version 5.6.6 Yay!
Output for 5.6.5
PHP version 5.6.5 Yay!
Output for 5.6.4
PHP version 5.6.4 Yay!
Output for 5.6.3
PHP version 5.6.3 Yay!
Output for 5.6.2
PHP version 5.6.2 Yay!
Output for 5.6.1
PHP version 5.6.1 Yay!
Output for 5.6.0
PHP version 5.6.0 Yay!
Output for 5.5.38
PHP version 5.5.38 Yay!
Output for 5.5.37
PHP version 5.5.37 Yay!
Output for 5.5.36
PHP version 5.5.36 Yay!
Output for 5.5.35
PHP version 5.5.35 Yay!
Output for 5.5.34
PHP version 5.5.34 Yay!
Output for 5.5.33
PHP version 5.5.33 Yay!
Output for 5.5.32
PHP version 5.5.32 Yay!
Output for 5.5.31
PHP version 5.5.31 Yay!
Output for 5.5.30
PHP version 5.5.30 Yay!
Output for 5.5.29
PHP version 5.5.29 Yay!
Output for 5.5.28
PHP version 5.5.28 Yay!
Output for 5.5.27
PHP version 5.5.27 Yay!
Output for 5.5.26
PHP version 5.5.26 Yay!
Output for 5.5.25
PHP version 5.5.25 Yay!
Output for 5.5.24
PHP version 5.5.24 Yay!
Output for 5.5.23
PHP version 5.5.23 Yay!
Output for 5.5.22
PHP version 5.5.22 Yay!
Output for 5.5.21
PHP version 5.5.21 Yay!
Output for 5.5.20
PHP version 5.5.20 Yay!
Output for 5.5.19
PHP version 5.5.19 Yay!
Output for 5.5.18
PHP version 5.5.18 Yay!
Output for 5.5.16
PHP version 5.5.16 Yay!
Output for 5.5.15
PHP version 5.5.15 Yay!
Output for 5.5.14
PHP version 5.5.14 Yay!
Output for 5.5.13
PHP version 5.5.13 Yay!
Output for 5.5.12
PHP version 5.5.12 Yay!
Output for 5.5.11
PHP version 5.5.11 Yay!
Output for 5.5.10
PHP version 5.5.10 Yay!
Output for 5.5.9
PHP version 5.5.9 Yay!
Output for 5.5.8
PHP version 5.5.8 Yay!
Output for 5.5.7
PHP version 5.5.7 Yay!
Output for 5.5.6
PHP version 5.5.6 Yay!
Output for 5.5.5
PHP version 5.5.5 Yay!
Output for 5.5.4
PHP version 5.5.4 Yay!
Output for 5.5.3
PHP version 5.5.3 Yay!
Output for 5.5.2
PHP version 5.5.2 Yay!
Output for 5.5.1
PHP version 5.5.1 Yay!
Output for 5.5.0
PHP version 5.5.0 Yay!
Output for 5.4.45
PHP version 5.4.45 Nay
Output for 5.4.44
PHP version 5.4.44 Nay
Output for 5.4.43
PHP version 5.4.43 Nay
Output for 5.4.42
PHP version 5.4.42 Nay
Output for 5.4.41
PHP version 5.4.41 Nay
Output for 5.4.40
PHP version 5.4.40 Nay
Output for 5.4.39
PHP version 5.4.39 Nay
Output for 5.4.38
PHP version 5.4.38 Nay
Output for 5.4.37
PHP version 5.4.37 Nay
Output for 5.4.36
PHP version 5.4.36 Nay
Output for 5.4.35
PHP version 5.4.35 Nay
Output for 5.4.34
PHP version 5.4.34 Nay
Output for 5.4.32
PHP version 5.4.32 Nay
Output for 5.4.31
PHP version 5.4.31 Nay
Output for 5.4.30
PHP version 5.4.30 Nay
Output for 5.4.29
PHP version 5.4.29 Nay
Output for 5.4.28
PHP version 5.4.28 Nay
Output for 5.4.27
PHP version 5.4.27 Nay
Output for 5.4.26
PHP version 5.4.26 Nay
Output for 5.4.25
PHP version 5.4.25 Nay
Output for 5.4.24
PHP version 5.4.24 Nay
Output for 5.4.23
PHP version 5.4.23 Nay
Output for 5.4.22
PHP version 5.4.22 Nay
Output for 5.4.21
PHP version 5.4.21 Nay
Output for 5.4.20
PHP version 5.4.20 Nay
Output for 5.4.19
PHP version 5.4.19 Nay
Output for 5.4.18
PHP version 5.4.18 Nay
Output for 5.4.17
PHP version 5.4.17 Nay
Output for 5.4.16
PHP version 5.4.16 Nay
Output for 5.4.15
PHP version 5.4.15 Nay
Output for 5.4.14
PHP version 5.4.14 Nay
Output for 5.4.13
PHP version 5.4.13 Nay
Output for 5.4.12
PHP version 5.4.12 Nay
Output for 5.4.11
PHP version 5.4.11 Nay
Output for 5.4.10
PHP version 5.4.10 Nay
Output for 5.4.9
PHP version 5.4.9 Nay
Output for 5.4.8
PHP version 5.4.8 Nay
Output for 5.4.7
PHP version 5.4.7 Nay
Output for 5.4.6
PHP version 5.4.6 Nay
Output for 5.4.5
PHP version 5.4.5 Nay
Output for 5.4.4
PHP version 5.4.4 Nay
Output for 5.4.3
PHP version 5.4.3 Nay
Output for 5.4.2
PHP version 5.4.2 Nay
Output for 5.4.1
PHP version 5.4.1 Nay
Output for 5.4.0
PHP version 5.4.0 Nay
Output for 5.3.29
PHP version 5.3.29 Nay
Output for 5.3.28
PHP version 5.3.28 Nay
Output for 5.3.27
PHP version 5.3.27 Nay
Output for 5.3.26
PHP version 5.3.26 Nay
Output for 5.3.25
PHP version 5.3.25 Nay
Output for 5.3.24
PHP version 5.3.24 Nay
Output for 5.3.23
PHP version 5.3.23 Nay
Output for 5.3.22
PHP version 5.3.22 Nay
Output for 5.3.21
PHP version 5.3.21 Nay
Output for 5.3.20
PHP version 5.3.20 Nay
Output for 5.3.19
PHP version 5.3.19 Nay
Output for 5.3.18
PHP version 5.3.18 Nay
Output for 5.3.17
PHP version 5.3.17 Nay
Output for 5.3.16
PHP version 5.3.16 Nay
Output for 5.3.15
PHP version 5.3.15 Nay
Output for 5.3.14
PHP version 5.3.14 Nay
Output for 5.3.13
PHP version 5.3.13 Nay
Output for 5.3.12
PHP version 5.3.12 Nay
Output for 5.3.11
PHP version 5.3.11 Nay
Output for 5.3.10
PHP version 5.3.10 Nay
Output for 5.3.9
PHP version 5.3.9 Nay
Output for 5.3.8
PHP version 5.3.8 Nay
Output for 5.3.7
PHP version 5.3.7 Nay
Output for 5.3.6
PHP version 5.3.6 Nay
Output for 5.3.5
PHP version 5.3.5 Nay
Output for 5.3.4
PHP version 5.3.4 Nay
Output for 5.3.3
PHP version 5.3.3 Nay
Output for 5.3.2
PHP version 5.3.2 Nay
Output for 5.3.1
PHP version 5.3.1 Nay
Output for 5.3.0
PHP version 5.3.0 Nay
Output for 5.2.17
PHP version 5.2.17 Nay
Output for 5.2.16
PHP version 5.2.16 Nay
Output for 5.2.15
PHP version 5.2.15 Nay
Output for 5.2.14
PHP version 5.2.14 Nay
Output for 5.2.13
PHP version 5.2.13 Nay
Output for 5.2.12
PHP version 5.2.12 Nay
Output for 5.2.11
PHP version 5.2.11 Nay
Output for 5.2.10
PHP version 5.2.10 Nay
Output for 5.2.9
PHP version 5.2.9 Nay
Output for 5.2.8
PHP version 5.2.8 Nay
Output for 5.2.7
PHP version 5.2.7 Nay
Output for 5.2.6
PHP version 5.2.6 Nay
Output for 5.2.5
PHP version 5.2.5 Nay
Output for 5.2.4
PHP version 5.2.4 Nay
Output for 5.2.3
PHP version 5.2.3 Nay
Output for 5.2.2
PHP version 5.2.2 Nay
Output for 5.2.1
PHP version 5.2.1 Nay
Output for 5.2.0
PHP version 5.2.0 Nay
Output for 5.1.6
PHP version 5.1.6 Nay
Output for 5.1.5
PHP version 5.1.5 Nay
Output for 5.1.4
PHP version 5.1.4 Nay
Output for 5.1.3
PHP version 5.1.3 Nay
Output for 5.1.2
PHP version 5.1.2 Nay
Output for 5.1.1
PHP version 5.1.1 Nay
Output for 5.1.0
PHP version 5.1.0 Nay
Output for 5.0.5
PHP version 5.0.5 Nay
Output for 5.0.4
PHP version 5.0.4 Nay
Output for 5.0.3
PHP version 5.0.3 Nay
Output for 5.0.2
PHP version 5.0.2 Nay
Output for 5.0.1
PHP version 5.0.1 Nay
Output for 5.0.0
PHP version 5.0.0 Nay
Output for 4.4.9
PHP version 4.4.9 Nay
Output for 4.4.8
PHP version 4.4.8 Nay
Output for 4.4.7
PHP version 4.4.7 Nay
Output for 4.4.6
PHP version 4.4.6 Nay
Output for 4.4.5
PHP version 4.4.5 Nay
Output for 4.4.4
PHP version 4.4.4 Nay
Output for 4.4.3
PHP version 4.4.3 Nay
Output for 4.4.2
PHP version 4.4.2 Nay
Output for 4.4.1
PHP version 4.4.1 Nay
Output for 4.4.0
PHP version 4.4.0 Nay
Output for 4.3.11
PHP version 4.3.11 Nay
Output for 4.3.10
PHP version 4.3.10 Nay
Output for 4.3.9
PHP version 4.3.9 Nay
Output for 4.3.8
PHP version 4.3.8 Nay
Output for 4.3.7
PHP version 4.3.7 Nay
Output for 4.3.6
PHP version 4.3.6 Nay
Output for 4.3.5
PHP version 4.3.5 Nay
Output for 4.3.4
PHP version 4.3.4 Nay
Output for 4.3.3
PHP version 4.3.3 Nay
Output for 4.3.2
PHP version 4.3.2 Nay
Output for 4.3.1
PHP version 4.3.1 Nay
Output for 4.3.0
PHP version 4.3.0 Nay