3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); ini_set('display_errors', 1); $data = array( 'request_id' => '', 'entity_id' => '', 'data' => '8b45d3a22ccc64d19e6147878101d6dd', 'code' => '200' ); if ( is_array( $data ) && isset( $data[ 'data' ][ 'code' ] ) ) { die('failed'); } else { die('ok'); }
Output for 5.0.0 - 5.0.2, 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
ok
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.3.29
failed