3v4l.org

run code in 300+ PHP versions simultaneously
<?php $block_line = (int) round(7/3); $totalSum = 40; if($block_line > 1){ $overLine = $block_line - 1; $totalSum = 40 - $overLine*2; } $singleSum = (int) $totalSum/2; var_dump($singleSum);
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.26, 8.2.0 - 8.2.13, 8.3.0
int(19)

preferences:
66.14 ms | 402 KiB | 76 Q