3v4l.org

run code in 300+ PHP versions simultaneously
<?php $block_line = (int) ceil(7/3); $totalSum = 40; if($block_line > 1){ $overLine = $block_line - 1; $totalSum = 40 - $overLine*2; } $singleSum = (int) $totalSum/2; var_dump($singleSum);

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)
8.5.00.0160.00919.82
8.4.150.0020.00014.05
8.4.140.0140.01117.46
8.4.130.0120.00717.45
8.4.120.0120.00723.84
8.4.110.0070.00322.47
8.4.100.0110.00618.65
8.4.90.0100.00818.73
8.4.80.0030.00520.62
8.4.70.0060.00717.91
8.4.60.0130.00918.79
8.4.50.0130.00918.63
8.4.40.0190.00017.52
8.4.30.0160.00318.59
8.4.20.0150.00620.79
8.4.10.0060.01019.46
8.3.280.0160.00720.09
8.3.270.0040.00316.86
8.3.260.0120.00716.50
8.3.250.0130.00618.65
8.3.240.0120.00817.06
8.3.230.0100.00916.81
8.3.220.0120.00719.11
8.3.210.0090.00916.64
8.3.200.0040.00416.45
8.3.190.0060.00917.06
8.3.180.0120.00917.31
8.3.170.0090.00920.89
8.3.160.0070.01117.14
8.3.150.0070.00716.92
8.3.140.0120.00618.25
8.3.130.0040.00416.78
8.3.120.0030.00620.67
8.3.110.0090.00020.94
8.3.100.0060.00316.33
8.3.90.0050.00526.77
8.3.80.0030.00617.97
8.3.70.0040.01116.38
8.3.60.0080.00816.61
8.3.50.0140.00718.09
8.3.40.0060.00920.23
8.3.30.0100.00321.86
8.3.20.0050.00224.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0100.00720.59
8.2.280.0060.00318.21
8.2.270.0100.00716.88
8.2.260.0080.00016.59
8.2.250.0000.00918.20
8.2.240.0040.00417.12
8.2.230.0060.00322.58
8.2.220.0000.00924.06
8.2.210.0040.00426.77
8.2.200.0070.00316.50
8.2.190.0120.00316.58
8.2.180.0070.01416.63
8.2.170.0090.00618.73
8.2.160.0200.00022.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00721.07
8.2.110.0120.00822.36
8.2.100.0130.00820.99
8.2.90.0230.00918.93
8.2.80.0170.00518.69
8.2.70.0260.01018.76
8.2.60.0190.00718.74
8.2.50.0130.01219.91
8.2.40.0220.00518.71
8.2.30.0150.00318.76
8.2.20.0110.00619.08
8.2.10.0230.00819.05
8.2.00.0140.00919.29
8.1.330.0120.00621.83
8.1.320.0070.00216.06
8.1.310.0080.00818.33
8.1.300.0080.00020.20
8.1.290.0040.00830.84
8.1.280.0040.01125.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0130.00818.68
8.1.230.0220.00918.68
8.1.220.0200.00418.65
8.1.210.0100.00419.84
8.1.200.0130.00318.57
8.1.190.0120.00219.87
8.1.180.0180.00718.36
8.1.170.0110.01018.59
8.1.160.0130.00518.80
8.1.150.0060.00720.63
8.1.140.0100.00518.46
8.1.130.0080.00618.54
8.1.120.0130.00618.54
8.1.110.0110.00719.65
8.1.100.0170.00418.49
8.1.90.0130.00818.50
8.1.80.0140.00718.62
8.1.70.0050.00718.82
8.1.60.0130.00418.64
8.1.50.0180.00818.70
8.1.40.0230.00318.99
8.1.30.0090.01118.99
8.1.20.0150.00418.87
8.1.10.0070.00618.71
8.1.00.0030.00918.60
8.0.300.0120.00317.87
8.0.290.0160.00717.85
8.0.280.0130.00717.86
8.0.270.0090.00617.90
8.0.260.0070.00418.53
8.0.250.0120.00117.92
8.0.240.0100.00317.99
8.0.230.0100.00318.37
8.0.220.0120.00317.87
8.0.210.0090.00517.72
8.0.200.0120.00317.86
8.0.190.0100.00118.28
8.0.180.0140.00017.88
8.0.170.0160.00017.99
8.0.160.0140.00317.87
8.0.150.0150.00317.54
8.0.140.0110.00417.77
8.0.130.0110.00118.08
8.0.120.0140.00217.90
8.0.110.0030.00818.43
8.0.100.0130.00317.68
8.0.90.0140.00217.85
8.0.80.0160.00017.86
8.0.70.0140.00217.90
8.0.60.0070.00518.16
8.0.50.0130.00717.79
8.0.30.0080.00718.24
8.0.20.0130.00717.86
8.0.10.0130.00718.03

preferences:
91.32 ms | 403 KiB | 5 Q