3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myceil(int|float $number, int $precision, int $decimals) { return number_format(ceil($number*(10**$precision))/(10**$precision), 2); } echo myceil(46.38,1, 2).PHP_EOL; echo myceil(46.40,1, 2).PHP_EOL; echo myceil(46.41,1, 2).PHP_EOL;

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.4.120.0020.00824.18
8.4.110.0060.00218.64
8.4.100.0090.01118.73
8.4.90.0130.00420.50
8.4.80.0140.00620.35
8.4.70.0030.00420.49
8.4.60.0090.01020.51
8.4.50.0130.00722.65
8.4.40.0100.00617.59
8.4.30.0130.00622.35
8.4.20.0040.00422.44
8.4.10.0030.00623.69
8.3.250.0070.00218.86
8.3.240.0090.00816.66
8.3.230.0120.00516.50
8.3.220.0100.00718.78
8.3.210.0120.00818.55
8.3.200.0070.00616.57
8.3.190.0090.00916.92
8.3.180.0060.00218.17
8.3.170.0070.01117.00
8.3.160.0170.00016.54
8.3.150.0040.00420.71
8.3.140.0140.00020.62
8.3.130.0050.00318.26
8.3.120.0040.00718.58
8.3.110.0040.00420.94
8.3.100.0110.00024.06
8.3.90.0150.00026.77
8.3.80.0030.00618.55
8.3.70.0070.01116.75
8.3.60.0140.00716.38
8.3.50.0110.00316.79
8.3.40.0110.00421.86
8.3.30.0130.00720.22
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0000.00926.16
8.2.290.0150.00620.12
8.2.280.0110.00818.37
8.2.270.0150.00316.95
8.2.260.0040.00418.50
8.2.250.0070.01118.02
8.2.240.0040.00417.24
8.2.230.0060.00922.58
8.2.220.0070.01037.54
8.2.210.0030.00526.77
8.2.200.0080.00016.50
8.2.190.0110.01118.21
8.2.180.0160.00025.92
8.2.170.0040.01119.13
8.2.160.0100.00322.96
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.77
8.2.110.0030.00620.52
8.2.100.0040.00817.72
8.2.90.0040.00418.09
8.2.80.0030.00519.04
8.2.70.0030.00617.50
8.2.60.0030.00517.50
8.2.50.0120.00617.36
8.2.40.0160.00017.25
8.2.30.0140.00317.38
8.2.20.0130.00317.13
8.2.10.0150.00417.50
8.2.00.0110.00517.25
8.1.330.0120.00715.87
8.1.320.0120.00917.74
8.1.310.0090.00616.66
8.1.300.0060.00316.42
8.1.290.0080.00018.88
8.1.280.0110.00425.92
8.1.270.0040.00424.66
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0060.00322.45
8.1.230.0090.00320.80
8.1.220.0040.00417.77
8.1.210.0060.00318.78
8.1.200.0110.00717.36
8.1.190.0190.00317.13
8.1.180.0190.00016.86
8.1.170.0100.00617.25
8.1.160.0090.00917.25
8.1.150.0100.00817.13
8.1.140.0120.00417.11
8.1.130.0140.00317.11
8.1.120.0130.00317.23
8.1.110.0070.00917.25
8.1.100.0140.00317.25
8.1.90.0170.00017.25
8.1.80.0080.01117.34
8.1.70.0110.00817.36
8.1.60.0160.00317.38
8.1.50.0150.00317.50
8.1.40.0120.00617.47
8.1.30.0130.00617.46
8.1.20.0130.00417.25
8.1.10.0150.00317.36
8.1.00.0170.00016.99
8.0.300.0040.00420.21
8.0.290.0140.00316.58
8.0.280.0110.00616.88
8.0.270.0130.00316.58
8.0.260.0160.00016.58
8.0.250.0130.00316.61
8.0.240.0130.00716.58
8.0.230.0170.00216.63
8.0.220.0110.00616.58
8.0.210.0080.00816.58
8.0.200.0060.01116.58
8.0.190.0160.00016.58
8.0.180.0120.00616.58
8.0.170.0120.00416.58
8.0.160.0110.00616.58
8.0.150.0060.01116.58
8.0.140.0080.00816.71
8.0.130.0130.00316.58
8.0.120.0130.00316.74
8.0.110.0100.00516.63
8.0.100.0110.00416.58
8.0.90.0100.00516.74
8.0.80.0150.00516.62
8.0.70.0140.00516.58
8.0.60.0180.00016.58
8.0.50.0110.00616.58
8.0.30.0130.00316.58
8.0.20.0090.00616.58
8.0.10.0090.00616.63

preferences:
70.24 ms | 403 KiB | 5 Q