3v4l.org

run code in 300+ PHP versions simultaneously
<?php $A = new class() { private $name; function __construct(string $name) { $this->name = $name; } public function getName() : string { return $this->name; } }; $B = new $A('Matti'); $C = new $A('Pekka'); var_dump($B === $C);

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.0100.00716.88
8.3.50.0070.01016.40
8.3.40.0170.00318.80
8.3.30.0130.00318.79
8.3.20.0040.00420.51
8.3.10.0050.00321.63
8.3.00.0080.00023.48
8.2.180.0110.00718.56
8.2.170.0150.00622.96
8.2.160.0070.00720.52
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0110.00419.64
8.2.120.0040.00426.35
8.2.110.0030.00621.04
8.2.100.0080.00418.04
8.2.90.0000.00919.27
8.2.80.0000.00818.04
8.2.70.0060.00317.63
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0040.00422.36
8.2.30.0000.00820.74
8.2.20.0070.00017.63
8.2.10.0000.00718.09
8.2.00.0050.00318.07
8.1.280.0000.01525.92
8.1.270.0100.00023.96
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0110.00017.48
8.1.230.0100.00019.10
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0070.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0040.00420.72
8.1.150.0040.00418.91
8.1.140.0040.00419.38
8.1.130.0030.00317.66
8.1.120.0040.00417.48
8.1.110.0030.00517.32
8.1.100.0000.00717.30
8.1.90.0000.00717.40
8.1.80.0050.00217.29
8.1.70.0000.00717.34
8.1.60.0000.00717.63
8.1.50.0000.00817.39
8.1.40.0080.00017.51
8.1.30.0000.00817.50
8.1.20.0000.00817.66
8.1.10.0050.00317.40
8.1.00.0080.00017.45
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.53
8.0.270.0070.00017.19
8.0.260.0080.00017.12
8.0.250.0030.00317.08
8.0.240.0030.00317.08
8.0.230.0030.00317.04
8.0.220.0000.00816.85
8.0.210.0070.00016.87
8.0.200.0000.00916.98
8.0.190.0030.00917.02
8.0.180.0050.00217.02
8.0.170.0040.00416.89
8.0.160.0030.00316.89
8.0.150.0040.00417.02
8.0.140.0080.00416.98
8.0.130.0000.00513.39
8.0.120.0040.00416.89
8.0.110.0040.00416.97
8.0.100.0000.00716.95
8.0.90.0040.00416.93
8.0.80.0090.00617.03
8.0.70.0000.00717.05
8.0.60.0020.00516.90
8.0.50.0030.00517.03
8.0.30.0180.00517.02
8.0.20.0130.00617.40
8.0.10.0000.00716.86
8.0.00.0090.01116.81
7.4.330.0050.00016.74
7.4.320.0030.00316.56
7.4.300.0000.00716.44
7.4.290.0000.00716.44
7.4.280.0050.00416.48
7.4.270.0030.00316.46
7.4.260.0030.00316.50
7.4.250.0000.00716.58
7.4.240.0020.00516.57
7.4.230.0030.00316.57
7.4.220.0110.01516.45
7.4.210.0070.01316.51
7.4.200.0030.00316.46
7.4.160.0090.01416.78
7.4.150.0070.01017.40
7.4.140.0100.01117.86
7.4.130.0130.00616.60
7.4.120.0140.00616.60
7.4.110.0100.00716.73
7.4.100.0030.01616.38
7.4.90.0040.01316.55
7.4.80.0090.01019.39
7.4.70.0070.01016.36
7.4.60.0070.01416.64
7.4.50.0100.00016.56
7.4.40.0030.01316.50
7.4.30.0130.00916.62
7.4.00.0060.01014.87
7.3.330.0000.00513.38
7.3.320.0000.00513.19
7.3.310.0030.00316.32
7.3.300.0020.00516.38
7.3.290.0100.00616.42
7.3.280.0100.00516.38
7.3.270.0060.01217.40
7.3.260.0130.00716.25
7.3.250.0100.01116.42
7.3.240.0130.00516.41
7.3.230.0110.00916.39
7.3.210.0130.00316.44
7.3.200.0120.00919.39
7.3.190.0090.00616.31
7.3.180.0180.00416.44
7.3.170.0000.01716.27
7.3.160.0090.00616.32
7.2.330.0070.01416.30
7.2.320.0120.00616.32
7.2.310.0080.00816.32
7.2.300.0040.01816.35
7.2.290.0060.01616.27
7.2.60.0000.01316.78
7.2.00.0030.00918.98
7.1.200.0090.00315.61
7.1.100.0040.00817.81
7.1.70.0000.01016.89
7.1.60.0060.01819.20
7.1.50.0100.01016.76
7.1.00.0070.07022.45
7.0.200.0030.00516.77
7.0.60.0030.08021.59
7.0.50.0030.08717.89
7.0.40.0070.04320.18
7.0.30.0230.04020.23
7.0.20.0270.07020.23
7.0.10.0070.09020.10
7.0.00.0070.08320.10
5.6.280.0030.04721.14
5.6.210.0070.04720.47
5.6.200.0100.06318.25
5.6.190.0000.05720.34
5.6.180.0370.06020.68
5.6.170.0370.08320.50
5.6.160.0130.06020.44
5.6.150.0000.04318.23
5.6.140.0100.04318.20
5.6.130.0100.07318.18
5.6.120.0100.05320.89
5.6.110.0130.05720.98
5.6.100.0230.06720.98
5.6.90.0070.06720.97
5.6.80.0070.07320.52
5.5.350.0200.06020.41
5.5.340.0070.08017.98
5.5.330.0030.05320.30
5.5.320.0570.06720.27
5.5.310.0300.06320.37
5.5.300.0030.08718.06
5.5.290.0000.09317.95
5.5.280.0170.05020.68
5.5.270.0230.07320.88
5.5.260.0100.08720.95
5.5.250.0100.08020.46
5.5.240.0270.07020.18

preferences:
57.01 ms | 401 KiB | 5 Q