3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(strlen($x=serialize($GLOBALS)), $x['_REQUEST']);
Output for 7.1.0
Warning: Illegal string offset '_REQUEST' in /in/qNVcZ on line 3 int(704) string(1) "a"
Output for 7.0.14
Warning: Illegal string offset '_REQUEST' in /in/qNVcZ on line 3 int(706) string(1) "a"
Output for 7.0.1 - 7.0.6, 7.0.8
Warning: Illegal string offset '_REQUEST' in /in/qNVcZ on line 3 int(713) string(1) "a"
Output for 7.0.7
Warning: Illegal string offset '_REQUEST' in /in/qNVcZ on line 3 int(712) string(1) "a"
Output for 7.0.0
Warning: Illegal string offset '_REQUEST' in /in/qNVcZ on line 3 int(711) string(1) "a"
Output for 5.6.28
Warning: Illegal string offset '_REQUEST' in /in/qNVcZ on line 3 int(2114) string(1) "a"
Output for 5.4.0 - 5.4.15, 5.4.17 - 5.4.22, 5.4.24 - 5.4.25, 5.4.27 - 5.5.18, 5.5.20 - 5.5.28, 5.5.31 - 5.5.34, 5.5.36 - 5.6.16, 5.6.18 - 5.6.23
Warning: Illegal string offset '_REQUEST' in /in/qNVcZ on line 3 int(2135) string(1) "a"
Output for 5.4.16, 5.4.23, 5.4.26, 5.5.19, 5.5.29 - 5.5.30, 5.5.35, 5.6.17
Warning: Illegal string offset '_REQUEST' in /in/qNVcZ on line 3 int(2132) string(1) "a"
Output for 5.2.3 - 5.3.29
int(5474) string(1) "a"
Output for 5.2.1 - 5.2.2
int(4574) string(1) "a"
Output for 5.1.0 - 5.2.0
int(3050) string(1) "a"
Output for 5.0.0 - 5.0.5
int(2918) string(1) "a"
Output for 4.3.2 - 4.4.9
int(3570) string(1) "a"
Output for 4.3.0 - 4.3.1
int(3604) string(1) "a"