3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private int $num; public function __construct(int $num) { $this->num = $num; } } var_dump(new Foo(1) == new Foo(2));

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.00.0090.01319.88
8.4.150.0020.00114.05
8.4.140.0130.00817.54
8.4.130.0120.00917.53
8.4.120.0100.00820.60
8.4.110.0130.00818.84
8.4.100.0070.00317.74
8.4.90.0060.00318.75
8.4.80.0130.00619.39
8.4.70.0140.00619.51
8.4.60.0130.00718.69
8.4.50.0070.01319.15
8.4.40.0040.00417.69
8.4.30.0070.01124.02
8.4.20.0100.01019.40
8.4.10.0050.00319.23
8.3.280.0090.01118.36
8.3.270.0110.00816.64
8.3.260.0060.01116.60
8.3.250.0090.00418.84
8.3.240.0060.00716.54
8.3.230.0110.00816.77
8.3.220.0110.00816.52
8.3.210.0110.00816.56
8.3.200.0060.00316.63
8.3.190.0120.00917.13
8.3.180.0100.00818.43
8.3.170.0070.01117.34
8.3.160.0120.00618.83
8.3.150.0100.01017.28
8.3.140.0000.00916.71
8.3.130.0150.00318.31
8.3.120.0080.00018.90
8.3.110.0410.00416.06
8.3.100.0280.00316.49
8.3.90.0270.00516.24
8.3.80.0260.00716.45
8.3.70.0140.01116.50
8.3.60.0240.00316.30
8.3.50.0190.00516.53
8.3.40.0180.00317.33
8.3.30.0190.00317.14
8.3.20.0230.00017.18
8.3.10.0160.00417.32
8.3.00.0090.00519.30
8.2.290.0110.01220.69
8.2.280.0090.00918.36
8.2.270.0090.00616.44
8.2.260.0110.00417.26
8.2.250.0050.00318.35
8.2.240.0060.00316.73
8.2.230.0160.00417.89
8.2.220.0130.00816.44
8.2.210.0180.00316.64
8.2.200.0160.00516.65
8.2.190.0240.00016.26
8.2.180.0200.00316.41
8.2.170.0130.00917.54
8.2.160.0170.00617.62
8.2.150.0110.01117.37
8.2.140.0200.00317.25
8.2.130.0170.00717.08
8.2.120.0210.00317.26
8.2.110.0160.00517.43
8.2.100.0140.00717.31
8.2.90.0140.00717.46
8.2.80.0200.00317.20
8.2.70.0190.00317.31
8.2.60.0160.00517.03
8.2.50.0210.00317.21
8.2.40.0160.00317.46
8.2.30.0130.00717.46
8.2.20.0130.00617.46
8.2.10.0140.00717.26
8.2.00.0200.00017.41
8.1.330.0110.00721.93
8.1.320.0090.01116.28
8.1.310.0140.00016.71
8.1.300.0060.00317.93
8.1.290.0140.01016.05
8.1.280.0200.00316.26
8.1.270.0120.00819.20
8.1.260.0200.00017.35
8.1.250.0150.00717.14
8.1.240.0180.00017.16
8.1.230.0150.00317.03
8.1.220.0120.00617.34
8.1.210.0130.00516.86
8.1.200.0100.00717.01
8.1.190.0160.00417.10
8.1.180.0150.00316.97
8.1.170.0170.00017.16
8.1.160.0140.00317.07
8.1.150.0200.00016.96
8.1.140.0180.01216.89
8.1.130.0220.00617.04
8.1.120.0310.00017.37
8.1.110.0140.00416.99
8.1.100.0250.00617.18
8.1.90.0240.00717.26
8.1.80.0240.00017.25
8.1.70.0130.00417.16
8.1.60.0200.00017.30
8.1.50.0240.01017.24
8.1.40.0250.01317.28
8.1.30.0210.01217.47
8.1.20.0310.00617.49
8.1.10.0290.00617.05
8.1.00.0330.00317.14

preferences:
34.49 ms | 403 KiB | 5 Q