3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xxx = 'foobarbaz' ^ 'abcd'; echo $xxx; echo $xxx ^ 'abcd';
based on hJBao
Output for 4.3.0, 5.4.34 - 7.1.0
 foob
Output for 5.4.32
l0gDf 5.4.32foob
Output for 5.4.31
l0gDf 5.4.31foob
Output for 5.4.30
l0gDf 5.4.30foob
Output for 5.4.29
l0gDf 5.4.29foob
Output for 5.4.28
l0gDf 5.4.28foob
Output for 5.4.27
l0gDf 5.4.27foob
Output for 5.4.26
l0gDf 5.4.26foob
Output for 5.4.25
l0gDf 5.4.25foob
Output for 5.4.24
l0gDf 5.4.24foob
Output for 5.4.23
l0gDf 5.4.23foob
Output for 5.4.22
l0gDf 5.4.22foob
Output for 5.4.21
l0gDf 5.4.21foob
Output for 5.4.20
l0gDf 5.4.20foob
Output for 5.4.19
l0gDf 5.4.19foob
Output for 5.4.18
l0gDf 5.4.18foob
Output for 5.4.17
l0gDf 5.4.17foob
Output for 5.4.16
l0gDf 5.4.16foob
Output for 5.4.15
l0gDf 5.4.15foob
Output for 5.4.14
l0gDf 5.4.14foob
Output for 5.4.13
l0gDf 5.4.13foob
Output for 5.4.12
l0gDf 5.4.12foob
Output for 5.4.11
l0gDf 5.4.11foob
Output for 5.4.10
l0gDf 5.4.10foob
Output for 5.4.9
l0gDf 5.4.9foob
Output for 5.4.8
l0gDf 5.4.8foob
Output for 5.4.7
l0gDf 5.4.7foob
Output for 5.4.6
l0gDf 5.4.6foob
Output for 5.4.5
l0gDf 5.4.5foob
Output for 5.4.4
l0gDf 5.4.4foob
Output for 5.4.3
l0gDf 5.4.3foob
Output for 5.4.2
l0gDf 5.4.2foob
Output for 5.4.1
l0gDf 5.4.1foob
Output for 5.4.0
l0gDf 5.4.0foob
Output for 5.3.29
l0gDf 5.3.29foob
Output for 5.3.28
l0gDf 5.3.28foob
Output for 5.3.27
l0gDf 5.3.27foob
Output for 5.3.26
l0gDf 5.3.26foob
Output for 5.3.25
l0gDf 5.3.25foob
Output for 5.3.24
l0gDf 5.3.24foob
Output for 5.3.23
l0gDf 5.3.23foob
Output for 5.3.22
l0gDf 5.3.22foob
Output for 5.3.21
l0gDf 5.3.21foob
Output for 5.3.20
l0gDf 5.3.20foob
Output for 5.3.19
l0gDf 5.3.19foob
Output for 5.3.18
l0gDf 5.3.18foob
Output for 5.3.17
l0gDf 5.3.17foob
Output for 5.3.16
l0gDf 5.3.16foob
Output for 5.3.15
l0gDf 5.3.15foob
Output for 5.3.14
l0gDf 5.3.14foob
Output for 5.3.13
l0gDf 5.3.13foob
Output for 5.3.12
l0gDf 5.3.12foob
Output for 5.3.11
l0gDf 5.3.11foob
Output for 5.3.10
l0gDf 5.3.10foob
Output for 5.3.9
l0gDf 5.3.9foob
Output for 5.3.8
l0gDf 5.3.8foob
Output for 5.3.7
l0gDf 5.3.7foob
Output for 5.3.6
l0gDf 5.3.6foob
Output for 5.3.5
l0gDf 5.3.5foob
Output for 5.3.4
l0gDf 5.3.4foob
Output for 5.3.3
l0gDf 5.3.3foob
Output for 5.3.2
l0gDf 5.3.2foob
Output for 5.3.1
l0gDf 5.3.1foob
Output for 5.3.0
l0gDf 5.3.0foob
Output for 5.2.17
l0gDf 5.2.17foob
Output for 5.2.16
l0gDf 5.2.16foob
Output for 5.2.15
l0gDf 5.2.15foob
Output for 5.2.14
l0gDf 5.2.14foob
Output for 5.2.13
l0gDf 5.2.13foob
Output for 5.2.12
l0gDf 5.2.12foob
Output for 5.2.11
l0gDf 5.2.11foob
Output for 5.2.10
l0gDf 5.2.10foob
Output for 5.2.9
l0gDf 5.2.9foob
Output for 5.2.8
l0gDf 5.2.8foob
Output for 5.2.7
l0gDf 5.2.7foob
Output for 5.2.6
l0gDf 5.2.6foob
Output for 5.2.5
l0gDf 5.2.5foob
Output for 5.2.4
l0gDf 5.2.4foob
Output for 5.2.3
l0gDf 5.2.3foob
Output for 5.2.2
l0gDf 5.2.2foob
Output for 5.2.1
l0gDf 5.2.1foob
Output for 5.2.0
l0gDf 5.2.0foob
Output for 5.1.6
l0gDf 5.1.6foob
Output for 5.1.5
l0gDf 5.1.5foob
Output for 5.1.4
l0gDf 5.1.4foob
Output for 5.1.3
l0gDf 5.1.3foob
Output for 5.1.2
l0gDf 5.1.2foob
Output for 5.1.1
l0gDf 5.1.1foob
Output for 5.1.0
l0gDf 5.1.0foob
Output for 5.0.5
l0gDf 5.0.5foob
Output for 5.0.4
l0gDf 5.0.4foob
Output for 5.0.3
l0gDf 5.0.3foob
Output for 5.0.2
l0gDf 5.0.2foob
Output for 5.0.1
l0gDf 5.0.1foob
Output for 5.0.0
l0gDf 5.0.0foob
Output for 4.4.9
l0gDf 4.4.9foob
Output for 4.4.8
l0gDf 4.4.8foob
Output for 4.4.7
l0gDf 4.4.7foob
Output for 4.4.6
l0gDf 4.4.6foob
Output for 4.4.5
l0gDf 4.4.5foob
Output for 4.4.4
l0gDf 4.4.4foob
Output for 4.4.3
l0gDf 4.4.3foob
Output for 4.4.2
l0gDf 4.4.2foob
Output for 4.4.1
l0gDf 4.4.1foob
Output for 4.4.0
l0gDf 4.4.0foob
Output for 4.3.11
l0gDf 4.3.11foob
Output for 4.3.10
l0gDf 4.3.10foob
Output for 4.3.9
l0gDf 4.3.9foob
Output for 4.3.8
l0gDf 4.3.8foob
Output for 4.3.7
l0gDf 4.3.7foob
Output for 4.3.6
l0gDf 4.3.6foob
Output for 4.3.5
l0gDf 4.3.5foob
Output for 4.3.4
l0gDf 4.3.4foob
Output for 4.3.3
l0gDf 4.3.3foob
Output for 4.3.2
l0gDf 4.3.2foob
Output for 4.3.1
l0gDf 4.3.1foob