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);

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.10.0140.00616.73
8.5.00.0100.01419.79
8.4.150.0020.00014.05
8.4.140.0130.00817.49
8.4.130.0100.00418.62
8.4.120.0020.00624.16
8.4.110.0070.00320.86
8.4.100.0120.00918.84
8.4.90.0110.00920.48
8.4.80.0060.00518.44
8.4.70.0050.00318.69
8.4.60.0130.00818.88
8.4.50.0100.01018.69
8.4.40.0130.00717.63
8.4.30.0060.00318.66
8.4.20.0100.01020.35
8.4.10.0060.01319.38
8.3.280.0140.00618.29
8.3.270.0120.00816.57
8.3.260.0120.00416.55
8.3.250.0110.00718.91
8.3.240.0110.00917.16
8.3.230.0050.00418.26
8.3.220.0110.00719.05
8.3.210.0090.00918.53
8.3.200.0060.00516.63
8.3.190.0050.00318.75
8.3.180.0080.01018.97
8.3.170.0070.01118.98
8.3.160.0080.00617.09
8.3.150.0130.00716.49
8.3.140.0000.00817.18
8.3.130.0040.00418.34
8.3.120.0040.00420.84
8.3.110.0160.00320.94
8.3.100.0030.00624.06
8.3.90.0050.00326.77
8.3.80.0030.00618.55
8.3.70.0120.00918.31
8.3.60.0110.00416.50
8.3.50.0100.01316.55
8.3.40.0110.00320.25
8.3.30.0030.01021.86
8.3.20.0050.00224.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.290.0110.00821.90
8.2.280.0120.00718.28
8.2.270.0040.01516.46
8.2.260.0030.00616.57
8.2.250.0040.00416.48
8.2.240.0030.00617.29
8.2.230.0100.00022.58
8.2.220.0080.00037.54
8.2.210.0150.00326.77
8.2.200.0060.00318.18
8.2.190.0120.00318.54
8.2.180.0110.01118.41
8.2.170.0180.00318.74
8.2.160.0090.00922.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00021.07
8.2.110.0090.00922.23
8.2.100.0140.00721.03
8.2.90.0250.00718.78
8.2.80.0240.01218.74
8.2.70.0280.00018.55
8.2.60.0260.00318.89
8.2.50.0200.01019.96
8.2.40.0200.00718.70
8.2.30.0240.00718.81
8.2.20.0180.01219.25
8.2.10.0230.01019.20
8.2.00.0130.01319.16
8.1.330.0140.00621.93
8.1.320.0130.00721.85
8.1.310.0040.00415.90
8.1.300.0040.00420.10
8.1.290.0030.00930.84
8.1.280.0070.01025.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0230.01018.60
8.1.230.0200.00618.45
8.1.220.0170.00718.48
8.1.210.0150.00019.91
8.1.200.0120.00318.55
8.1.190.0210.00919.63
8.1.180.0200.01318.41
8.1.170.0210.00918.52
8.1.160.0130.00818.82
8.1.150.0200.01220.41
8.1.140.0180.00718.52
8.1.130.0250.00018.40
8.1.120.0210.00318.51
8.1.110.0090.00919.62
8.1.100.0190.00018.66
8.1.90.0110.00318.47
8.1.80.0080.00518.67
8.1.70.0070.00418.84
8.1.60.0150.00018.73
8.1.50.0060.00918.71
8.1.40.0120.00018.92
8.1.30.0080.00419.02
8.1.20.0120.00418.76
8.1.10.0130.00018.74
8.1.00.0040.00818.69
8.0.300.0150.00018.01
8.0.290.0070.00717.82
8.0.280.0070.00717.96
8.0.270.0150.00017.77
8.0.260.0100.00018.27
8.0.250.0100.00317.86
8.0.240.0080.00517.59
8.0.230.0090.00518.27
8.0.220.0130.00317.80
8.0.210.0070.00717.86
8.0.200.0130.00317.92
8.0.190.0080.00418.32
8.0.180.0110.00317.87
8.0.170.0120.00220.25
8.0.160.0090.00617.92
8.0.150.0130.00317.94
8.0.140.0080.00817.91
8.0.130.0130.00018.20
8.0.120.0110.00417.73
8.0.110.0080.00318.20
8.0.100.0080.00317.82
8.0.90.0060.00317.88
8.0.80.0090.00617.83
8.0.70.0120.00317.78
8.0.60.0060.00617.95
8.0.50.0140.00017.70
8.0.30.0090.00318.30
8.0.20.0070.00717.95
8.0.10.0090.00617.98

preferences:
69.79 ms | 403 KiB | 5 Q