3v4l.org

run code in 300+ PHP versions simultaneously
<?php $block_line = (int) ceil(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.0160.00519.67
8.4.150.0020.00014.05
8.4.140.0110.01017.40
8.4.130.0120.00818.66
8.4.120.0120.00720.37
8.4.110.0130.00722.39
8.4.100.0100.00717.67
8.4.90.0080.00420.39
8.4.80.0130.00618.84
8.4.70.0030.00520.34
8.4.60.0110.00920.40
8.4.50.0100.01020.76
8.4.40.0100.01017.59
8.4.30.0060.00318.74
8.4.20.0130.00320.47
8.4.10.0130.00619.54
8.3.280.0070.01318.27
8.3.270.0110.01216.79
8.3.260.0130.00616.42
8.3.250.0050.00316.58
8.3.240.0100.01016.54
8.3.230.0050.00416.57
8.3.220.0110.00718.85
8.3.210.0030.00416.28
8.3.200.0060.00316.51
8.3.190.0130.00517.23
8.3.180.0080.01218.98
8.3.170.0070.01117.23
8.3.160.0170.00416.43
8.3.150.0150.00316.71
8.3.140.0040.00416.73
8.3.130.0110.00016.55
8.3.120.0090.00020.81
8.3.110.0140.00020.94
8.3.100.0100.01024.06
8.3.90.0040.00426.77
8.3.80.0050.00518.43
8.3.70.0130.00718.43
8.3.60.0070.00716.63
8.3.50.0070.01416.79
8.3.40.0110.00320.20
8.3.30.0070.00721.70
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.290.0120.00816.54
8.2.280.0100.00818.05
8.2.270.0110.00718.59
8.2.260.0040.01416.70
8.2.250.0080.00018.52
8.2.240.0060.00916.89
8.2.230.0060.00322.58
8.2.220.0080.00037.54
8.2.210.0000.00826.77
8.2.200.0060.00316.38
8.2.190.0200.00018.41
8.2.180.0070.01416.32
8.2.170.0100.00719.03
8.2.160.0110.00422.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00721.11
8.2.110.0100.01022.28
8.2.100.0150.00721.12
8.2.90.0260.00718.78
8.2.80.0170.00618.86
8.2.70.0270.00718.94
8.2.60.0150.00918.90
8.2.50.0130.00020.01
8.2.40.0090.00418.77
8.2.30.0090.00418.70
8.2.20.0140.00019.08
8.2.10.0100.00519.16
8.2.00.0050.00919.20
8.1.330.0130.00616.27
8.1.320.0120.00817.93
8.1.310.0070.01018.47
8.1.300.0050.00316.27
8.1.290.0030.00630.84
8.1.280.0080.00625.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00718.62
8.1.230.0110.00418.55
8.1.220.0130.00018.61
8.1.210.0130.00019.79
8.1.200.0050.00918.50
8.1.190.0040.01119.68
8.1.180.0130.00318.30
8.1.170.0040.00918.52
8.1.160.0090.00318.86
8.1.150.0080.00420.69
8.1.140.0090.00418.52
8.1.130.0150.00018.50
8.1.120.0120.00018.50
8.1.110.0090.00519.70
8.1.100.0150.00018.31
8.1.90.0090.00518.30
8.1.80.0040.00918.59
8.1.70.0110.00018.75
8.1.60.0160.00018.85
8.1.50.0160.00018.68
8.1.40.0120.00418.72
8.1.30.0220.00318.91
8.1.20.0140.01418.82
8.1.10.0060.00618.65
8.1.00.0060.00618.53
8.0.300.0110.00517.95
8.0.290.0140.00317.78
8.0.280.0100.00317.90
8.0.270.0120.00317.93
8.0.260.0000.01118.50
8.0.250.0080.00618.06
8.0.240.0130.00017.87
8.0.230.0100.00318.43
8.0.220.0080.00817.82
8.0.210.0070.00717.82
8.0.200.0120.00417.77
8.0.190.0090.00318.27
8.0.180.0080.00618.00
8.0.170.0110.00417.95
8.0.160.0110.00417.88
8.0.150.0110.00417.75
8.0.140.0090.00617.75
8.0.130.0080.00418.26
8.0.120.0080.00417.84
8.0.110.0050.00518.42
8.0.100.0090.00617.88
8.0.90.0150.00017.79
8.0.80.0120.00317.83
8.0.70.0060.00917.70
8.0.60.0110.00218.19
8.0.50.0100.00517.87
8.0.30.0080.00418.39
8.0.20.0110.00418.01
8.0.10.0080.00818.16

preferences:
96.89 ms | 403 KiB | 5 Q