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.4.130.0140.00717.76
8.4.120.0120.00820.41
8.4.110.0120.00522.61
8.4.100.0130.00720.54
8.4.90.0050.00520.35
8.4.80.0100.01117.95
8.4.70.0030.00517.77
8.4.60.0070.00217.84
8.4.50.0140.00619.45
8.4.40.0140.00719.28
8.4.30.0170.00318.48
8.4.20.0120.00326.12
8.4.10.0040.00423.86
8.3.260.0140.00616.79
8.3.250.0120.00618.84
8.3.240.0130.00619.00
8.3.230.0120.00616.63
8.3.220.0150.00319.00
8.3.210.0130.00616.93
8.3.200.0080.01016.69
8.3.190.0110.00816.57
8.3.180.0110.00816.90
8.3.170.0090.00919.10
8.3.160.0070.01118.45
8.3.150.0130.00720.84
8.3.140.0050.00316.84
8.3.130.0040.00416.77
8.3.120.0060.00319.01
8.3.110.0030.00620.94
8.3.100.0060.00324.06
8.3.90.0080.00026.77
8.3.80.0130.00017.97
8.3.70.0070.00718.52
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.290.0130.00520.57
8.2.280.0110.01118.13
8.2.270.0090.00917.07
8.2.260.0040.00416.73
8.2.250.0090.00918.21
8.2.240.0060.00318.92
8.2.230.0000.00822.58
8.2.220.0030.00637.54
8.2.210.0070.00726.77
8.2.200.0030.00716.63
8.2.190.0060.00916.63
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.330.0120.00721.76
8.1.320.0120.00716.01
8.1.310.0150.00418.22
8.1.300.0050.00515.85
8.1.290.0030.00630.84
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:
72.16 ms | 403 KiB | 5 Q