3v4l.org

run code in 300+ PHP versions simultaneously
<?php function format_pln(float $price): string { $rounded = round($price, 2, PHP_ROUND_HALF_UP); return number_format($rounded, 2, ',', ' ') . ' zł'; } // example: echo format_pln(9104.6640); // 9 104,66 zł echo format_pln(2094.0727); // 2 094,07 zł echo format_pln(11198.7367); // 11 198,74 zł

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.140.0100.01117.66
8.4.130.0130.00517.73
8.4.120.0120.00820.64
8.4.110.0110.00919.13
8.4.100.0070.00417.78
8.4.90.0120.00919.40
8.4.80.0110.00719.27
8.4.70.0350.01117.62
8.4.60.0350.00817.62
8.4.50.0480.00917.79
8.4.40.0410.00917.53
8.4.30.0360.01217.52
8.4.20.0290.00617.53
8.4.10.0400.01017.46
8.3.270.0110.00916.53
8.3.260.0160.00316.55
8.3.250.0110.00618.95
8.3.240.0070.01316.73
8.3.230.0120.00716.62
8.3.220.0120.00516.68
8.3.210.0080.01018.27
8.3.200.0390.00616.20
8.3.190.0380.00716.59
8.3.180.0160.00416.52
8.3.170.0380.00616.59
8.3.160.0300.00416.59
8.3.150.0420.00716.53
8.3.140.0310.00916.57
8.3.130.0420.00716.54
8.3.120.0280.01016.53
8.3.110.0320.01016.59
8.3.100.0390.00916.61
8.3.90.0400.00716.41
8.3.80.0360.01116.22
8.3.70.0380.00716.38
8.3.60.0370.00816.21
8.3.50.0340.00616.32
8.3.40.0490.00817.23
8.3.30.0260.01217.46
8.3.20.0280.00917.48
8.3.10.0320.00617.29
8.3.00.0310.00717.37
8.2.290.0050.00318.84
8.2.280.0410.01016.69
8.2.270.0320.01116.54
8.2.260.0310.00916.39
8.2.250.0300.01016.54
8.2.240.0320.00716.33
8.2.230.0320.01316.20
8.2.220.0330.00916.23
8.2.210.0290.01116.35
8.2.200.0310.00816.71
8.2.190.0310.01016.44
8.2.180.0370.00416.48
8.2.170.0310.01117.77
8.2.160.0310.01217.71
8.2.150.0330.00917.82
8.2.140.0340.00817.76
8.2.130.0340.00917.63
8.2.120.0350.00417.61
8.2.110.0330.00917.34
8.2.100.0300.01117.73
8.2.90.0320.01017.77
8.2.80.0360.00617.64
8.2.70.0320.01417.49
8.2.60.0320.00917.31
8.2.50.0310.01017.62
8.2.40.0360.00917.45
8.2.30.0330.00817.68
8.2.20.0310.00717.64
8.2.10.0290.00917.54
8.2.00.0300.01017.57

preferences:
45.83 ms | 403 KiB | 5 Q