3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Set timezone date_default_timezone_set('Australia/Melbourne'); // Set timestamps to compare $tts = date('Y-m-d h:i:s'); // Today's timestamp $fts = '2014-29-01 12:00:00'; // Final 'end' timestamp $fts24 = '2014-28-01 12:00:00'; // Last 24 hours timestamp // Set conditions $show24 = false; $show = false; // $tts must be between $fts24 and $fts if( $tts => $fts24 && $tts =< $fts ) { $show24 = true; } // $show24 must be false (don't show last 24 hours banner) and $tts must be before $fts if( $show24 == false && $tts =< $fts ) { $show = true; } // Show either general or last 24hrs banner if($show24) : ?> <a href="#url1" id="banner"> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/image24.jpg" alt="image" width="500" height="62" /> </a> <?php elseif($show): ?> <a href="#url2" id="banner"> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/image.jpg" alt="image" width="500" height="62" /> </a> <?php endif; ?>

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)
5.4.240.0200.07018.90
5.4.230.0170.05718.90
5.4.220.0270.07018.86
5.4.210.0270.03018.77
5.4.200.0200.05719.18
5.4.190.0230.04718.85
5.4.180.0370.06019.19
5.4.170.0130.05318.97
5.4.160.0330.03718.76
5.4.150.0230.05719.00
5.4.140.0170.07016.42
5.4.130.0230.06316.35
5.4.120.0230.05016.52
5.4.110.0200.04316.38
5.4.100.0300.06316.20
5.4.90.0200.03016.45
5.4.80.0130.04316.38
5.4.70.0270.03316.57
5.4.60.0200.07316.45
5.4.50.0200.04316.23
5.4.40.0170.07316.54
5.4.30.0270.06316.42
5.4.20.0130.04316.36
5.4.10.0200.07716.13
5.4.00.0300.03716.11
5.3.280.0170.04314.43
5.3.270.0070.05014.45
5.3.260.0200.04314.55
5.3.250.0270.03314.65
5.3.240.0270.06714.70
5.3.230.0230.05314.47
5.3.220.0170.04314.42
5.3.210.0230.06314.60
5.3.200.0270.07014.51
5.3.190.0270.07014.43
5.3.180.0270.04014.40
5.3.170.0230.07014.58
5.3.160.0170.03714.52
5.3.150.0230.08014.52
5.3.140.0370.06314.65
5.3.130.0200.06014.39
5.3.120.0270.05314.45
5.3.110.0230.05314.41
5.3.100.0200.03713.91
5.3.90.0200.03313.93
5.3.80.0300.04013.90
5.3.70.0230.07314.07
5.3.60.0270.06013.91
5.3.50.0370.05713.82
5.3.40.0200.04313.74
5.3.30.0200.04013.76
5.3.20.0230.03313.78
5.3.10.0330.06713.54
5.3.00.0200.07713.52

preferences:
149.52 ms | 1394 KiB | 7 Q