3v4l.org

run code in 300+ PHP versions simultaneously
<?php $float = 1.1111111111; $int = round ($float * 1000); $float = $int / 1000; var_dump ($float);

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.60.0180.00418.30
8.3.50.0310.00322.05
8.3.40.0090.00618.84
8.3.30.0120.00318.63
8.3.20.0130.00620.33
8.3.10.0040.00420.65
8.3.00.0040.00420.82
8.2.180.0180.00316.50
8.2.170.0110.00422.96
8.2.160.0110.00419.29
8.2.150.0000.00724.18
8.2.140.0060.00324.66
8.2.130.0080.00021.09
8.2.120.0030.00526.35
8.2.110.0060.00321.16
8.2.100.0000.01117.91
8.2.90.0030.00619.20
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0040.00717.91
8.2.50.0050.00318.07
8.2.40.0040.00418.23
8.2.30.0040.00417.93
8.2.20.0040.00417.73
8.2.10.0070.00018.09
8.2.00.0060.00318.22
8.1.280.0030.01225.92
8.1.270.0090.00923.82
8.1.260.0050.00328.09
8.1.250.0000.00828.09
8.1.240.0030.00620.86
8.1.230.0110.00017.70
8.1.220.0030.00517.77
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0050.00517.35
8.1.180.0040.00418.10
8.1.170.0030.00618.69
8.1.160.0040.00418.79
8.1.150.0040.00418.88
8.1.140.0030.00619.56
8.1.130.0030.00317.69
8.1.120.0030.00317.52
8.1.110.0040.00417.43
8.1.100.0040.00417.34
8.1.90.0050.00217.35
8.1.80.0020.00517.41
8.1.70.0060.00317.46
8.1.60.0040.00417.59
8.1.50.0090.00017.56
8.1.40.0030.00517.48
8.1.30.0030.00617.54
8.1.20.0050.00217.49
8.1.10.0030.00517.62
8.1.00.0070.00017.54
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0020.00518.50
8.0.270.0070.00016.86
8.0.260.0060.00017.23
8.0.250.0030.00317.00
8.0.240.0030.00516.90
8.0.230.0030.00516.87
8.0.220.0030.00416.91
8.0.210.0000.00716.93
8.0.200.0050.00217.00
8.0.190.0080.00016.88
8.0.180.0080.00016.83
8.0.170.0070.00016.93
8.0.160.0000.00716.92
8.0.150.0050.00216.72
8.0.140.0000.00716.84
8.0.130.0030.00313.28
8.0.120.0050.00316.88
8.0.110.0070.00016.71
8.0.100.0040.00416.71
8.0.90.0050.00217.00
8.0.80.0070.00716.92
8.0.70.0050.00316.74
8.0.60.0050.00316.92
8.0.50.0000.00716.68
8.0.30.0120.00617.19
8.0.20.0110.01117.40
8.0.10.0000.00717.00
8.0.00.0070.01516.66
7.4.330.0050.00016.75
7.4.320.0060.00016.45
7.4.300.0030.00616.59
7.4.290.0040.00416.59
7.4.280.0070.00016.63
7.4.270.0070.00016.47
7.4.260.0080.00016.40
7.4.250.0030.00516.42
7.4.240.0030.00316.40
7.4.230.0000.00716.61
7.4.220.0000.00716.69
7.4.210.0070.00716.59
7.4.200.0030.00316.29
7.4.160.0070.01016.39
7.4.150.0140.00817.40
7.4.140.0170.01117.86
7.4.130.0050.01216.50
7.4.120.0100.00716.58
7.4.110.0100.01316.39
7.4.100.0130.01016.30
7.4.90.0150.00616.36
7.4.80.0060.01219.39
7.4.70.0030.01216.56
7.4.60.0050.01116.36
7.4.50.0000.01416.54
7.4.40.0060.01916.48
7.4.30.0080.00816.55
7.4.00.0110.00714.85
7.3.330.0000.00513.09
7.3.320.0000.00613.24
7.3.310.0030.00316.27
7.3.300.0000.00716.28
7.3.290.0000.00716.23
7.3.280.0070.01016.30
7.3.270.0040.01517.40
7.3.260.0170.00516.61
7.3.250.0110.01016.49
7.3.240.0100.00616.43
7.3.230.0100.00716.46
7.3.210.0060.01016.38
7.3.200.0100.00716.38
7.3.190.0100.00716.30
7.3.180.0120.00916.28
7.3.170.0160.01016.38
7.3.160.0090.00616.52
7.2.330.0040.01416.75
7.2.320.0060.01316.63
7.2.310.0160.00316.40
7.2.300.0030.01616.41
7.2.290.0090.00616.41
7.2.60.0060.00616.79
7.2.00.0070.00719.28
7.1.200.0000.01315.55
7.1.100.0110.01117.89
7.1.70.0030.00717.16
7.1.60.0100.01319.27
7.1.50.0100.01017.04
7.1.00.0030.07722.33
7.0.200.0300.00414.77
7.0.60.0030.07721.73
7.0.50.0130.08017.79
7.0.40.0030.05720.09
7.0.30.0330.07320.16
7.0.20.0270.06720.02
7.0.10.0130.07720.06
7.0.00.0000.04719.99
5.6.280.0000.03720.90
5.6.210.0100.04020.62
5.6.200.0130.07318.16
5.6.190.0070.08720.61
5.6.180.0300.07720.63
5.6.170.0330.07320.39
5.6.160.0000.08720.38
5.6.150.0070.05318.21
5.6.140.0130.07318.21
5.6.130.0100.07018.22
5.6.120.0100.06721.04
5.6.110.0100.06720.86
5.6.100.0000.08021.02
5.6.90.0100.08320.97
5.6.80.0070.08020.40
5.5.350.0330.08020.42
5.5.340.0070.04018.02
5.5.330.0100.08720.45
5.5.320.0170.05320.27
5.5.310.0400.07020.20
5.5.300.0070.07017.96
5.5.290.0030.06718.00
5.5.280.0170.06320.73
5.5.270.0130.07720.84
5.5.260.0000.04320.79
5.5.250.0100.07720.46
5.5.240.0100.06720.04

preferences:
59.45 ms | 401 KiB | 5 Q