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.80.0210.00621.36
8.3.70.0230.00921.96
8.3.60.0330.00924.42
8.3.50.0090.00924.58
8.3.40.0280.00824.75
8.3.30.0260.01024.67
8.3.20.0300.01024.71
8.3.10.0290.00724.71
8.3.00.0270.00824.71
8.2.200.0150.00325.10
8.2.190.0130.00721.40
8.2.180.0230.00924.37
8.2.170.0270.00324.75
8.2.160.0290.00824.70
8.2.150.0280.01424.67
8.2.140.0320.00725.31
8.2.130.0310.00725.29
8.2.120.0350.00225.36
8.2.110.0310.00724.74
8.2.100.0220.00824.67
8.2.90.0210.00724.70
8.2.80.0220.00924.67
8.2.70.0330.00624.58
8.2.60.0240.00425.26
8.2.50.0290.00424.54
8.2.40.0230.00824.67
8.2.30.0310.00424.66
8.2.20.0230.01224.63
8.2.10.0310.00424.59
8.2.00.0260.01224.59
8.1.290.0280.00323.48
8.1.280.0330.00424.21
8.1.270.0330.00425.25
8.1.260.0270.00625.23
8.1.250.0250.00924.63
8.1.240.0220.00524.54
8.1.230.0280.00524.63
8.1.220.0280.00624.59
8.1.210.0270.00824.58
8.1.200.0290.00624.54
8.1.190.0240.00524.62
8.1.180.0220.00424.59
8.1.170.0200.00725.19
8.1.160.0210.00624.54
8.1.150.0230.00424.53
8.1.140.0200.00425.13
8.1.130.0190.00624.58
8.1.120.0190.01025.20
8.1.110.0230.00824.54
8.1.100.0280.00325.20
8.1.90.0310.00324.63
8.1.80.0260.00724.54
8.1.70.0270.00924.54
8.1.60.0270.00724.67
8.1.50.0320.00724.63
8.1.40.0350.01024.75
8.1.30.0340.00524.71
8.1.20.0330.00524.71
8.1.10.0300.00824.59
8.1.00.0320.00324.63

preferences:
39.16 ms | 401 KiB | 5 Q