3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ValidationError { use Getter; private string $text; public function __construct(string $text) { $this->text = $text; } }

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.20.0110.00817.82
8.5.10.0070.00416.60
8.5.00.0100.01120.07
8.4.170.0130.00823.91
8.4.160.0100.01323.82
8.4.150.0030.00014.05
8.4.140.0090.01217.57
8.4.130.0150.00517.76
8.4.120.0110.01020.44
8.4.110.0090.01218.74
8.4.100.0140.00817.59
8.4.90.0140.00520.45
8.4.80.0060.00320.76
8.4.70.0100.01018.72
8.4.60.0040.00520.66
8.4.50.0110.01018.79
8.4.40.0200.00017.47
8.4.30.0130.00718.71
8.4.20.0190.00019.00
8.4.10.0100.01019.56
8.3.300.0140.00822.80
8.3.290.0130.00820.79
8.3.280.0110.00918.41
8.3.270.0120.00816.79
8.3.260.0100.00916.76
8.3.250.0070.01019.03
8.3.240.0130.00616.53
8.3.230.0070.01016.66
8.3.220.0090.00818.87
8.3.210.0100.00816.73
8.3.200.0040.00516.52
8.3.190.0100.00817.18
8.3.180.0090.00918.97
8.3.170.0130.00618.98
8.3.160.0040.01518.54
8.3.150.0040.01416.48
8.3.140.0080.00016.68
8.3.130.0030.00618.49
8.3.120.0050.00319.00
8.3.110.0100.00020.94
8.3.100.0090.00616.63
8.3.90.0030.00526.77
8.3.80.0090.00017.97
8.3.70.0150.00018.30
8.3.60.0100.01018.40
8.3.50.0140.00716.84
8.3.40.0120.00620.34
8.3.30.0030.01021.71
8.3.20.0050.00324.18
8.3.10.0080.00024.66
8.3.00.0070.01328.09
8.2.300.0070.01220.30
8.2.290.0120.00617.19
8.2.280.0100.00620.27
8.2.270.0140.00316.93
8.2.260.0140.00016.86
8.2.250.0050.00316.42
8.2.240.0030.00618.73
8.2.230.0030.00622.58
8.2.220.0050.00324.06
8.2.210.0000.00826.77
8.2.200.0060.00316.38
8.2.190.0070.01416.58
8.2.180.0040.01116.60
8.2.170.0160.00618.90
8.2.160.0040.01122.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0120.00628.09
8.2.120.0140.00428.09
8.2.110.0150.00328.09
8.2.100.0120.00628.09
8.2.90.0140.00728.09
8.2.80.0100.01028.09
8.2.70.0130.00728.09
8.2.60.0070.01128.09
8.2.50.0030.01528.09
8.2.40.0100.01028.09
8.2.30.0150.00428.09
8.2.20.0120.00628.09
8.2.10.0090.01228.09
8.2.00.0120.00428.09
8.1.340.0100.00921.53
8.1.330.0130.00616.12
8.1.320.0140.00616.23
8.1.310.0040.01118.17
8.1.300.0120.00315.89
8.1.290.0050.00530.84
8.1.280.0070.01425.92
8.1.270.0050.00323.88
8.1.260.0130.00728.09
8.1.250.0090.00928.09
8.1.240.0130.00328.09
8.1.230.0030.01728.09
8.1.220.0060.00928.09
8.1.210.0070.01528.09
8.1.200.0130.00728.09
8.1.190.0100.01028.09
8.1.180.0080.00828.09
8.1.170.0170.00328.09
8.1.160.0120.00428.09
8.1.150.0090.00628.09
8.1.140.0070.01528.09
8.1.130.0070.01428.09
8.1.120.0120.00328.09
8.1.110.0120.00328.09
8.1.100.0030.00628.09
8.1.90.0190.00028.09
8.1.80.0100.01328.09
8.1.70.0000.00828.09
8.1.60.0110.00728.09
8.1.50.0070.00728.09
8.1.40.0040.00428.09
8.1.30.0040.00428.09
8.1.20.0040.00428.09
8.1.10.0040.00428.09
8.1.00.0040.00428.09

preferences:
60.4 ms | 403 KiB | 5 Q