3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = 7; var_dump(round($result/2, 0, PHP_ROUND_HALF_DOWN));

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.3.30.0070.00718.68
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.160.0030.01022.96
8.2.150.0070.00025.66
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0000.01022.34
8.2.100.0090.00318.03
8.2.90.0050.00319.25
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0000.00817.93
8.2.50.0000.00918.07
8.2.40.0070.00318.28
8.2.30.0000.00718.12
8.2.20.0000.00718.18
8.2.10.0000.00721.14
8.2.00.0000.00719.17
8.1.270.0080.00023.99
8.1.260.0070.00028.09
8.1.250.0050.00328.09
8.1.240.0030.00620.79
8.1.230.0040.00817.95
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0000.00918.58
8.1.160.0000.00818.91
8.1.150.0040.00418.93
8.1.140.0000.00718.79
8.1.130.0070.00017.34
8.1.120.0000.00717.49
8.1.110.0000.00717.33
8.1.100.0000.00817.46
8.1.90.0030.00517.44
8.1.80.0030.00617.48
8.1.70.0000.00917.41
8.1.60.0040.00417.59
8.1.50.0040.00717.52
8.1.40.0080.00417.51
8.1.30.0030.00517.63
8.1.20.0040.00417.59
8.1.10.0030.00617.57
8.1.00.0040.00417.55
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0040.00418.48
8.0.270.0070.00017.93
8.0.260.0060.00016.87
8.0.250.0000.00716.90
8.0.240.0000.00716.89
8.0.230.0000.00717.05
8.0.220.0050.00216.89
8.0.210.0030.00516.86
8.0.200.0000.00716.89
8.0.190.0070.00016.83
8.0.180.0040.00416.99
8.0.170.0030.00616.82
8.0.160.0000.00816.75
8.0.150.0000.00716.72
8.0.140.0050.00216.83
8.0.130.0000.00513.29
8.0.120.0040.00416.73
8.0.110.0040.00416.85
8.0.100.0000.00816.68
8.0.90.0040.00416.91
8.0.80.0110.00716.82
8.0.70.0030.00516.87
8.0.60.0050.00216.93
8.0.50.0000.00716.85
8.0.30.0060.01616.92
8.0.20.0160.00616.90
8.0.10.0160.01016.88
8.0.00.0120.01216.93
7.4.330.0020.00215.55
7.4.320.0000.00716.50
7.4.300.0040.00416.38
7.4.290.0040.00416.42
7.4.280.0050.00316.53
7.4.270.0030.00316.48
7.4.260.0000.00513.25
7.4.250.0040.00416.45
7.4.240.0020.00516.54
7.4.230.0000.00716.24
7.4.220.0000.00716.59
7.4.210.0090.00816.64
7.4.200.0000.00716.52
7.4.160.0000.01716.63
7.4.150.0130.00316.52
7.4.140.0180.00716.49
7.4.130.0110.01116.54
7.4.120.0030.01716.54
7.4.110.0080.01516.40
7.4.100.0180.00316.53
7.4.90.0060.01216.47
7.4.80.0060.01316.45
7.4.70.0070.01416.39
7.4.60.0030.01716.48
7.4.50.0140.00416.53
7.4.40.0110.01116.38
7.4.30.0060.00916.48
7.4.20.0040.01116.37
7.4.10.0060.01316.50
7.4.00.0090.00616.32
7.3.330.0000.00716.13
7.3.320.0000.00613.23
7.3.310.0080.00016.29
7.3.300.0030.00316.27
7.3.290.0100.00616.26
7.3.270.0070.01116.27
7.3.260.0070.01116.27
7.3.250.0120.01116.28
7.3.240.0060.01316.29
7.3.230.0070.01416.19
7.3.220.0150.00316.22
7.3.210.0140.00716.22
7.3.200.0100.01016.21
7.3.190.0130.00716.16
7.3.180.0100.01016.18
7.3.170.0070.01316.24
7.3.160.0060.00916.19
7.3.150.0090.00616.21
7.3.140.0090.00916.22
7.3.130.0080.00816.23
7.3.120.0080.00616.21
7.3.110.0060.00916.16
7.3.100.0030.01016.14
7.3.90.0100.01016.39
7.3.80.0060.00916.15
7.3.70.0070.01016.32
7.3.60.0040.01116.46
7.3.50.0120.00416.40
7.3.40.0100.01016.34
7.3.30.0070.01016.31
7.3.20.0140.00618.18
7.3.10.0170.00318.23
7.3.00.0140.00718.07

preferences:
28.08 ms | 401 KiB | 5 Q