3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function the_title() { return 'A Title';} function the_permalink() { return 'https://google.com';} function has_post_thumbnail() { return true;} function the_post_thumbnail($whateverThisIs) { return '<img src="https://upload.wikimedia.org/wikipedia/en/2/22/Charlie_Brown.png" />'; } function get_post_custom_values() { $key = 'Gal_IMG'; $value = 'https://en.wikipedia.org/wiki/Main_Page#/media/File:BepiColombo_spacecraft_model.png'; return 'https://en.wikipedia.org/wiki/Main_Page#/media/File:BepiColombo_spacecraft_model.png'; } $imgClass = 'no-img'; $img = ''; $title = the_title(); $link = the_permalink(); // $BG_Img = get_post_custom_values('GalIMG') ; ?> <li<?php if (! has_post_thumbnail() ) { echo ' class="no-img"'; } ?>> <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?> <h3> <a href="<?php the_permalink(); ?>" style=" background:transparent; background-image:url(''); color:<?php $key_values2 = get_post_custom_values( 'hlwhite' ); foreach ( $key_values2 as $key => $value2 ) {echo "$value2";} ?>; display:block;"> <?php the_title(); ?> </a> </h3> </li>
Output for git.master, git.master_jit, rfc.property-hooks
<li> Fatal error: Uncaught ArgumentCountError: Too few arguments to function the_post_thumbnail(), 0 passed in /in/Rj453 on line 27 and exactly 1 expected in /in/Rj453:7 Stack trace: #0 /in/Rj453(27): the_post_thumbnail() #1 {main} thrown in /in/Rj453 on line 7
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
64.24 ms | 401 KiB | 8 Q