3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max_width = 100; $actual_width = 67; // When an actual width is returned by the oEmbed provider. $concluded_width_currently = $max_width ?: $actual_width; $concluded_width_proposed = $actual_width ?: $max_width; var_dump($concluded_width_currently); var_dump($concluded_width_proposed); // When NO actual width is returned by the oEmbed provider. $actual_width = NULL; $concluded_width_currently = $max_width ?: $actual_width; $concluded_width_proposed = $actual_width ?: $max_width; var_dump($concluded_width_currently); var_dump($concluded_width_proposed);
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
int(100) int(67) int(100) int(100)

preferences:
105.31 ms | 1245 KiB | 4 Q