3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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'; } $imgClass = 'no-img'; $img = ''; $title = the_title(); $link = the_permalink(); // $BG_Img = 'background-image:url('$value');display:block;'; // if(has_post_thumbnail()) { $imgClass = ''; $img = the_post_thumbnail('alm-thumbnail'); } echo " <li class='${imgClass}'> ${img} <h3> <a href='${link}' style='${BG_Img}'>${title} </a> </h3> </li> ";

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.2.110.0110.00416.16
7.2.100.0100.00316.43
7.2.90.0060.00916.50
7.2.80.0130.00316.30
7.2.70.0070.00716.47
7.2.60.0090.00316.36
7.2.50.0030.01316.71
7.2.40.0060.00616.58
7.2.30.0120.00316.53
7.2.20.0030.01416.46
7.2.10.0040.01116.40
7.2.00.0080.00616.30
7.1.230.0110.00615.52
7.1.220.0110.00015.19
7.1.210.0070.00715.43
7.1.200.0050.01015.21
7.1.190.0120.00315.34
7.1.180.0060.00915.16
7.1.170.0110.00015.32
7.1.160.0000.01615.16
7.1.150.0030.01215.39
7.1.140.0060.00715.55
7.1.130.0030.01415.55
7.1.120.0040.00715.47
7.1.110.0110.00415.44
7.1.100.0070.00715.49
7.1.90.0040.00815.45
7.1.80.0000.01415.28
7.1.70.0000.01415.51
7.1.60.0240.00933.37
7.1.50.0250.00633.46
7.1.40.0250.00933.46
7.1.30.0250.01333.55
7.1.20.0170.01633.21
7.1.10.0080.00815.38
7.1.00.0060.00615.42
5.6.380.0040.01214.20

preferences:
147.33 ms | 1394 KiB | 7 Q