3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Verification { public function __construct(private string $id) {} public function getId(): string { return $this->id; } } $items = [new Verification('1-2-3-4')]; $foo = Verification::getId(...);

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.0120.00617.11
8.5.80.0100.00916.98
8.5.70.0100.00718.78
8.5.60.0100.00416.96
8.5.50.0130.00416.87
8.5.30.0090.00921.34
8.5.20.0090.00920.25
8.5.10.0040.00420.20
8.5.00.0130.00820.11
8.4.240.0160.00621.23
8.4.230.0110.00419.64
8.4.220.0070.00319.62
8.4.210.0150.00719.67
8.4.180.0110.01025.63
8.4.170.0130.00723.77
8.4.160.0140.01223.86
8.4.150.0080.00516.95
8.4.140.0090.01417.68
8.4.130.0130.00717.96
8.4.120.0110.00820.57
8.4.110.0130.00722.53
8.4.100.0150.00617.77
8.4.90.0110.01018.82
8.4.80.0140.00617.96
8.4.70.0100.00818.05
8.4.60.0110.01018.75
8.4.50.0050.00323.89
8.4.40.0060.00320.61
8.4.30.0090.00918.48
8.4.20.0120.00817.94
8.4.10.0090.00623.81
8.3.330.0100.01218.33
8.3.320.0030.00518.48
8.3.310.0150.00518.24
8.3.300.0080.01222.66
8.3.290.0100.00818.29
8.3.280.0140.00718.34
8.3.270.0140.00716.58
8.3.260.0110.00816.51
8.3.250.0110.00718.98
8.3.240.0120.00816.57
8.3.230.0110.00816.85
8.3.220.0060.00317.14
8.3.210.0110.00818.73
8.3.200.0050.00416.61
8.3.190.0050.00317.11
8.3.180.0140.01016.44
8.3.170.0060.01217.05
8.3.160.0110.00720.41
8.3.150.0160.00316.78
8.3.140.0040.00417.18
8.3.130.0080.00018.60
8.3.120.0040.01119.00
8.3.110.0100.01022.58
8.3.100.0040.00422.58
8.3.50.0060.00322.58
8.2.320.0090.01318.10
8.2.310.0110.00918.09
8.2.300.0210.00818.04
8.2.290.0150.00320.20
8.2.280.0110.00818.66
8.2.270.0170.00317.21
8.2.260.0080.00018.74
8.2.250.0060.00316.82
8.2.240.0070.01120.76
8.2.230.0030.00922.58
8.2.220.0090.00022.58
8.2.50.0050.00418.10
8.2.40.0090.00818.10
8.2.30.0130.00418.10
8.2.20.0100.00618.10
8.2.10.0120.00618.10
8.2.00.0100.00618.10
8.1.340.0140.00718.49
8.1.330.0120.00720.47
8.1.320.0120.00716.10
8.1.310.0040.00418.16
8.1.300.0040.01517.98
8.1.180.0090.00718.10
8.1.170.0110.00518.10
8.1.160.0150.00218.10
8.1.150.0160.00118.10
8.1.140.0100.00618.10
8.1.130.0130.00718.10
8.1.120.0080.01018.10
8.1.110.0070.01018.10
8.1.100.0110.00618.10
8.1.90.0100.00618.10
8.1.80.0120.00618.10
8.1.70.0090.00818.10
8.1.60.0120.00618.10
8.1.50.0150.00318.10
8.1.40.0100.00818.10
8.1.30.0150.00318.10
8.1.20.0070.01118.10
8.1.10.0090.00918.10
8.1.00.0140.00318.10
8.0.280.0110.00518.10
8.0.270.0110.00418.10
8.0.260.0080.00818.10
8.0.250.0130.00318.10
8.0.240.0110.00618.10
8.0.230.0120.00518.10
8.0.220.0060.01018.10
8.0.210.0120.00518.10
8.0.200.0110.00618.10
8.0.190.0130.00418.10
8.0.180.0120.00518.10
8.0.170.0100.00618.10
8.0.160.0100.00718.10
8.0.150.0150.00418.10
8.0.140.0130.00318.10
8.0.130.0140.00118.10
8.0.120.0130.00218.10
8.0.110.0110.00418.10
8.0.100.0090.00718.10
8.0.90.0140.00118.10
8.0.80.0100.00618.10
8.0.70.0100.00518.10
8.0.60.0080.00818.10
8.0.50.0140.00118.10
8.0.30.0110.00618.10
8.0.20.0080.00718.10
8.0.10.0120.00418.10

preferences:
62.31 ms | 1009 KiB | 5 Q