3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class Price { public function __construct(private int $price, private int $decimalCount) { var_dump($price); var_dump($decimalCount); } } $price = new Price('100.82', '1');

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.90.0220.00626.77
8.3.80.0260.00622.71
8.3.70.0270.00923.17
8.3.60.0350.00925.00
8.3.50.0150.01125.13
8.3.40.0290.00725.25
8.3.30.0280.00825.19
8.3.20.0320.00825.22
8.3.10.0290.00925.22
8.3.00.0270.00925.22
8.2.210.0170.00426.77
8.2.200.0150.00425.38
8.2.190.0170.00722.74
8.2.180.0250.00924.97
8.2.170.0300.00325.25
8.2.160.0290.00825.22
8.2.150.0290.01125.19
8.2.140.0280.00925.67
8.2.130.0340.00625.66
8.2.120.0380.00225.71
8.2.110.0320.00725.25
8.2.100.0230.00925.19
8.2.90.0240.00725.22
8.2.80.0240.01025.19
8.2.70.0330.00725.13
8.2.60.0270.00525.64
8.2.50.0300.00625.10
8.2.40.0260.00625.19
8.2.30.0310.00525.18
8.2.20.0270.01025.16
8.2.10.0310.00525.13
8.2.00.0270.01125.13
8.1.290.0300.00324.58
8.1.280.0340.00424.85
8.1.270.0370.00625.63
8.1.260.0320.00425.61
8.1.250.0260.01025.16
8.1.240.0240.00525.10
8.1.230.0270.00625.16
8.1.220.0270.00725.13
8.1.210.0280.00725.13
8.1.200.0310.00525.10
8.1.190.0220.00625.16
8.1.180.0180.00625.13
8.1.170.0200.00525.58
8.1.160.0190.00525.09
8.1.150.0210.00425.09
8.1.140.0180.00525.54
8.1.130.0220.00725.12
8.1.120.0230.00925.59
8.1.110.0250.00925.10
8.1.100.0280.00525.59
8.1.90.0320.00325.16
8.1.80.0260.00825.10
8.1.70.0260.00925.10
8.1.60.0280.00725.19
8.1.50.0310.00625.16
8.1.40.0330.00925.25
8.1.30.0330.00625.22
8.1.20.0340.00625.22
8.1.10.0320.00625.13
8.1.00.0330.00425.16

preferences:
29.04 ms | 402 KiB | 5 Q