3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(0.1 + 0.7 === 0.8); // bool(false) var_dump((0.1 + 0.7) * 10); // float(7.999999999999999) var_dump((int) ((0.1 + 0.7) * 10)); // int(7) <- The classic! // It hides well, too: echo 0.1 + 0.2.\PHP_EOL; // 0.3 <- The float value will be coerced to string. printf("%.20f\n", 0.1 + 0.2); // 0.30000000000000004441

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.90.0220.00516.55
8.5.80.0140.00516.79
8.5.70.0220.00716.45
8.5.60.0220.00316.52
8.5.50.0170.00416.67
8.5.40.0150.00616.55
8.5.30.0160.00516.44
8.5.20.0160.00516.67
8.5.10.0170.00416.31
8.5.00.0050.00416.34
8.4.240.0060.00419.59
8.4.230.0140.00619.29
8.4.220.0150.00819.41
8.4.210.0140.00819.22
8.4.200.0150.00619.34
8.4.190.0150.00619.46
8.4.180.0160.00419.15
8.4.170.0130.00719.55
8.4.160.0160.00419.45
8.4.150.0180.00419.23
8.4.140.0140.00417.31
8.4.130.0160.00517.36
8.4.120.0180.00417.80
8.4.110.0180.00317.50
8.4.100.0140.00617.51
8.4.90.0120.00817.46
8.4.80.0190.00217.46
8.4.70.0190.00317.70
8.4.60.0190.00317.44
8.4.50.0180.00517.46
8.4.40.0170.00517.54
8.4.30.0150.00617.54
8.4.20.0160.00517.78
8.4.10.0150.00617.47
8.3.330.0140.00418.20
8.3.320.0160.00418.27
8.3.310.0100.00918.38
8.3.300.0120.00718.19
8.3.290.0150.00418.08
8.3.280.0150.00418.38
8.3.270.0130.00716.63
8.3.260.0160.00516.64
8.3.250.0160.00316.61
8.3.240.0150.00516.46
8.3.230.0170.00316.45
8.3.220.0170.00516.43
8.3.210.0150.00816.38
8.3.200.0180.00316.46
8.3.190.0160.00416.71
8.3.180.0170.00416.37
8.3.170.0180.00416.55
8.3.160.0170.00416.45
8.3.150.0170.00416.61
8.3.140.0190.00316.41
8.3.130.0140.00416.42
8.3.120.0160.00316.34
8.3.110.0150.00316.32
8.3.100.0150.00716.40
8.3.90.0190.00216.30
8.3.80.0180.00316.30
8.3.70.0140.00616.56
8.3.60.0150.00416.64
8.3.50.0150.00416.34
8.3.40.0180.00317.80
8.3.30.0110.00517.84
8.3.20.0110.00517.48
8.3.10.0130.00517.72
8.3.00.0150.00317.62
8.2.330.0180.00117.82
8.2.320.0180.00117.93
8.2.310.0140.00417.81

preferences:
42.86 ms | 781 KiB | 5 Q