3v4l.org

run code in 300+ PHP versions simultaneously
<?php $block_line = (int) round(8/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.0120.01019.99
8.4.150.0020.00014.05
8.4.140.0100.01017.50
8.4.130.0050.00817.80
8.4.120.0060.00320.45
8.4.110.0100.00922.41
8.4.100.0120.00417.53
8.4.90.0120.00817.75
8.4.80.0140.00717.91
8.4.70.0040.00517.69
8.4.60.0120.01017.39
8.4.50.0140.00817.72
8.4.40.0130.00617.71
8.4.30.0030.00618.43
8.4.20.0000.01620.77
8.4.10.0110.00819.48
8.3.280.0130.00718.36
8.3.270.0100.00916.41
8.3.260.0130.00716.43
8.3.250.0090.00718.89
8.3.240.0100.00916.57
8.3.230.0130.00616.58
8.3.220.0040.00418.84
8.3.210.0070.00716.50
8.3.200.0120.00416.40
8.3.190.0080.00919.16
8.3.180.0100.00916.41
8.3.170.0060.01218.94
8.3.160.0140.00422.44
8.3.150.0070.00716.39
8.3.140.0030.00517.23
8.3.130.0050.00318.32
8.3.120.0060.00320.76
8.3.110.0030.01218.45
8.3.100.0060.00316.62
8.3.90.0000.00826.77
8.3.80.0040.00418.28
8.3.70.0100.00318.55
8.3.60.0090.00616.61
8.3.50.0040.01816.55
8.3.40.0150.00320.21
8.3.30.0090.00621.77
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.290.0040.00420.26
8.2.280.0130.00518.03
8.2.270.0090.00917.09
8.2.260.0000.00818.50
8.2.250.0140.00716.92
8.2.240.0030.00618.80
8.2.230.0090.00920.94
8.2.220.0000.00824.06
8.2.210.0070.01126.77
8.2.200.0070.00416.25
8.2.190.0060.00918.38
8.2.180.0110.01116.50
8.2.170.0140.00719.14
8.2.160.0110.00722.96
8.2.150.0090.00025.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00721.02
8.2.110.0160.00321.01
8.2.100.0090.01019.25
8.2.90.0250.00818.91
8.2.80.0220.00318.87
8.2.70.0270.01018.70
8.2.60.0170.00718.80
8.2.50.0130.00519.86
8.2.40.0190.00618.79
8.2.30.0140.01018.81
8.2.20.0090.00819.05
8.2.10.0160.00919.22
8.2.00.0180.00919.05
8.1.330.0050.00516.45
8.1.320.0110.00815.88
8.1.310.0040.01116.47
8.1.300.0040.01115.95
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0070.00023.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0170.01118.57
8.1.230.0150.00318.54
8.1.220.0150.00418.63
8.1.210.0140.01019.93
8.1.200.0140.00218.56
8.1.190.0100.00519.94
8.1.180.0160.01118.42
8.1.170.0140.00518.47
8.1.160.0110.00718.60
8.1.150.0130.00520.65
8.1.140.0170.00318.48
8.1.130.0160.00218.50
8.1.120.0120.00418.62
8.1.110.0120.00519.69
8.1.100.0160.00318.49
8.1.90.0090.00818.52
8.1.80.0120.00318.56
8.1.70.0080.00618.74
8.1.60.0150.00418.65
8.1.50.0170.00918.64
8.1.40.0100.00218.93
8.1.30.0090.00318.97
8.1.20.0150.00518.67
8.1.10.0150.00218.71
8.1.00.0110.00518.70
8.0.300.0180.00717.86
8.0.290.0130.00517.88
8.0.280.0180.00117.89
8.0.270.0170.00417.76
8.0.260.0120.00418.27
8.0.250.0180.00217.87
8.0.240.0110.00717.96
8.0.230.0160.00418.42
8.0.220.0180.00517.82
8.0.210.0180.00717.86
8.0.200.0210.00617.83
8.0.190.0130.00918.19
8.0.180.0190.00717.85
8.0.170.0240.00317.88
8.0.160.0180.00717.89
8.0.150.0270.00217.72
8.0.140.0160.00917.74
8.0.130.0170.00718.22
8.0.120.0180.01017.68
8.0.110.0160.00318.39
8.0.100.0220.00517.79
8.0.90.0220.00517.60
8.0.80.0180.00617.73
8.0.70.0190.00517.75
8.0.60.0160.00318.16
8.0.50.0160.00517.78
8.0.30.0140.00518.24
8.0.20.0110.00417.92
8.0.10.0140.00818.02

preferences:
94.05 ms | 403 KiB | 5 Q