3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Eq { abstract public function equiv(Eq $lhs, Eq $rhs): bool; } class Number { use Eq; public function __construct(public int $value) {} public function equiv(int $lhs, int $rhs): bool { return $lhs === $rhs; } }

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.60.0110.00716.75
8.3.50.0110.01116.92
8.3.40.0140.00020.43
8.3.30.0100.00318.68
8.3.20.0040.00424.18
8.3.10.0000.00524.66
8.3.00.0070.00326.16
8.2.180.0120.00616.63
8.2.170.0070.00718.70
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00421.18
8.2.110.0060.00322.31
8.2.100.0140.00317.66
8.2.90.0040.00417.63
8.2.80.0040.00418.64
8.2.70.0040.00417.63
8.2.60.0000.00817.50
8.2.50.0030.00617.47
8.2.40.0060.00319.27
8.2.30.0080.00017.68
8.2.20.0000.00819.24
8.2.10.0000.00817.91
8.2.00.0050.00317.55
8.1.280.0120.00325.92
8.1.270.0160.00324.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.97
8.1.230.0070.00419.05
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0040.00416.98
8.1.190.0050.00317.22
8.1.180.0000.00818.10
8.1.170.0000.00817.62
8.1.160.0040.00418.81
8.1.150.0050.00518.64
8.1.140.0040.00417.29
8.1.130.0040.00417.41
8.1.120.0080.00017.44
8.1.110.0040.00417.41
8.1.100.0050.00317.45
8.1.90.0060.00317.47
8.1.80.0040.00417.49
8.1.70.0030.00517.41
8.1.60.0040.00417.58
8.1.50.0000.00717.42
8.1.40.0030.00617.54
8.1.30.0040.00417.64
8.1.20.0000.00717.56
8.1.10.0030.00617.41
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0070.00316.75
8.0.280.0040.00418.04
8.0.270.0000.00717.87
8.0.260.0000.00817.41
8.0.250.0090.00017.41
8.0.240.0000.01117.41
8.0.230.0040.00417.41
8.0.220.0000.00817.41
8.0.210.0040.00417.41
8.0.200.0040.00417.41
8.0.190.0000.00817.41
8.0.180.0030.00517.41
8.0.170.0030.00317.41
8.0.160.0050.00317.41
8.0.150.0000.00717.41
8.0.140.0000.00717.41
8.0.130.0000.00717.41
8.0.120.0000.00717.41
8.0.110.0070.00017.41
8.0.100.0030.00317.41
8.0.90.0000.00717.41
8.0.80.0080.00017.41
8.0.70.0040.00417.41
8.0.60.0040.00417.41
8.0.50.0040.00417.41
8.0.30.0030.00317.41
8.0.20.0000.00717.41
8.0.10.0000.00717.41

preferences:
52.93 ms | 400 KiB | 5 Q