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.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
int(100) int(67) int(100) int(100)

preferences:
105.06 ms | 406 KiB | 5 Q