3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( ini_get('short_open_tag'), token_get_all('<? ?>') );
Output for 8.5.1
string(1) "1" array(3) { [0]=> array(3) { [0]=> int(394) [1]=> string(2) "<?" [2]=> int(1) } [1]=> array(3) { [0]=> int(397) [1]=> string(1) " " [2]=> int(1) } [2]=> array(3) { [0]=> int(396) [1]=> string(2) "?>" [2]=> int(1) } }
Output for 8.1.23 - 8.1.33, 8.2.10 - 8.2.29, 8.3.1, 8.3.3, 8.3.5 - 8.3.6, 8.3.8, 8.3.10, 8.3.12, 8.3.14, 8.3.16, 8.3.18 - 8.3.19, 8.3.21, 8.3.23 - 8.3.28, 8.4.1 - 8.4.14, 8.5.0
string(0) "" array(1) { [0]=> array(3) { [0]=> int(267) [1]=> string(5) "<? ?>" [2]=> int(1) } }
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 8.3.0, 8.3.2, 8.3.4, 8.3.7, 8.3.9, 8.3.11, 8.3.13, 8.3.15, 8.3.17, 8.3.20, 8.3.22
string(0) "" array(1) { [0]=> array(3) { [0]=> int(318) [1]=> string(5) "<? ?>" [2]=> int(1) } }
Output for 7.4.3
string(0) "" array(1) { [0]=> array(3) { [0]=> int(313) [1]=> string(5) "<? ?>" [2]=> int(1) } }

preferences:
117.75 ms | 411 KiB | 5 Q