3v4l.org

run code in 500+ PHP versions simultaneously
<?php use BcMath\Number; $a = new Number('1.005691112'); $b = new Number('2.567891112'); $result = $a ** $b; echo $result->round(2); echo PHP_EOL; echo $result; echo PHP_EOL; echo 1.005691112 ** 2.567891112; echo PHP_EOL; echo 'precision is '.ini_get('precision');

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.70.0020.00518.39
8.5.60.0130.00318.67
8.5.50.0180.00117.05
8.5.40.0170.00516.78
8.5.30.0060.00418.50
8.5.20.0150.00616.77
8.5.10.0070.00416.84
8.5.00.0050.00318.67
8.4.210.0150.00321.40
8.4.200.0120.00719.73
8.4.190.0150.00519.78
8.4.180.0150.00519.57
8.4.170.0130.00521.34
8.4.160.0130.00519.77
8.4.150.0130.00719.73
8.4.140.0160.00417.90
8.4.130.0150.00517.79
8.4.120.0170.00217.88
8.4.110.0160.00418.26
8.4.100.0160.00518.04
8.4.90.0170.00318.10
8.4.80.0160.00618.27
8.4.70.0140.00517.84
8.4.60.0180.00218.18
8.4.50.0160.00418.11
8.4.40.0170.00418.00
8.4.30.0140.00617.64
8.4.20.0190.00417.59
8.4.10.0150.00518.00
8.3.310.0180.00518.47
8.3.300.0170.00218.55
8.3.290.0150.00218.37
8.3.280.0130.00620.26
8.3.270.0190.00718.48
8.3.260.0130.00516.87
8.3.250.0170.00316.55
8.3.240.0110.00716.92
8.3.230.0120.00716.76
8.3.220.0140.00418.55
8.3.210.0150.00416.93
8.3.200.0140.00216.86
8.3.190.0150.00416.63
8.3.180.0150.00518.65
8.3.170.0140.00516.74
8.3.160.0140.00516.84
8.3.150.0140.00416.45
8.3.140.0150.00516.78
8.3.130.0140.00416.77
8.3.120.0140.00416.66
8.3.110.0140.00518.24
8.3.100.0170.00316.94
8.3.90.0150.00516.77
8.3.80.0160.00516.67
8.3.70.0180.00316.91
8.3.60.0190.00116.96
8.3.50.0200.00417.04
8.3.40.0180.00418.02
8.3.30.0100.00518.08
8.3.20.0120.00417.98
8.3.10.0110.00418.17
8.3.00.0120.00418.03
8.2.310.0200.00417.92

preferences:
48.34 ms | 745 KiB | 5 Q