3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Pont { private string $unite = 'm²'; private float $longueur; private float $largeur; public function setLongueur(float $longueur): void { if ($longueur < 0) { trigger_error( 'La longueur est trop courte. (min 1)', E_USER_ERROR ); } $this->longueur = $longueur; } } $towerBridge = new Pont; $towerBridge->setLongueur(286.0); $towerBridge->setLongueur(-286.0);

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.20.0040.00420.57
8.4.10.0060.00318.62
8.3.150.0080.00019.12
8.3.140.0090.00616.85
8.3.130.0160.00816.66
8.3.120.0190.00717.31
8.3.110.0250.00617.30
8.3.100.0300.00725.70
8.3.90.0280.00722.96
8.3.80.0320.00622.16
8.3.70.0270.00822.04
8.3.60.0240.01023.72
8.3.50.0300.00821.79
8.3.40.0240.00721.74
8.3.30.0210.00722.73
8.3.20.0180.00723.57
8.3.10.0150.00723.78
8.3.00.0140.00524.15
8.2.260.0110.00218.58
8.2.250.0190.00316.44
8.2.240.0180.00516.88
8.2.230.0170.00417.53
8.2.220.0190.00524.34
8.2.210.0210.00522.99
8.2.200.0220.00622.07
8.2.190.0220.00721.74
8.2.180.0230.00823.56
8.2.170.0270.00923.08
8.2.160.0220.00823.11
8.2.150.0210.00623.67
8.2.140.0190.00623.58
8.2.130.0180.00524.00
8.2.120.0160.00623.68
8.2.110.0150.00722.82
8.2.100.0170.00622.77
8.2.90.0190.00821.55
8.2.80.0210.00621.68
8.2.70.0170.00640.14
8.2.60.0210.00730.68
8.2.50.0160.00628.81
8.2.40.0160.00628.32
8.2.30.0150.00729.90
8.2.20.0160.00629.03
8.2.10.0160.00528.68
8.2.00.0140.00526.65
8.1.310.0160.00316.09
8.1.300.0250.00616.29
8.1.290.0240.00626.15
8.1.280.0220.00722.74
8.1.270.0160.00623.58
8.1.260.0160.00623.98
8.1.250.0180.00624.11
8.1.240.0160.00623.07
8.1.230.0150.00722.75
8.1.220.0170.00621.51
8.1.210.0170.00621.59
8.1.200.0160.00730.60
8.1.190.0160.00630.64
8.1.180.0140.00528.20
8.1.170.0150.00529.75
8.1.160.0140.00629.76
8.1.150.0150.00629.41
8.1.140.0140.00628.53
8.1.130.0140.00627.88
8.1.120.0130.00627.02
8.1.110.0140.00526.76
8.1.100.0130.00525.97
8.1.90.0120.00626.00
8.1.80.0140.00424.99
8.1.70.0120.00624.22
8.1.60.0140.00624.19
8.1.50.0140.00522.76
8.1.40.0140.00522.19
8.1.30.0140.00521.83
8.1.20.0150.00521.54
8.1.10.0140.00621.17
8.1.00.0150.00521.40
8.0.300.0150.00620.79
8.0.290.0160.00630.37
8.0.280.0150.00629.54
8.0.270.0150.00528.67
8.0.260.0130.00526.79
8.0.250.0130.00626.73
8.0.240.0150.00526.42
8.0.230.0130.00626.17
8.0.220.0140.00525.66
8.0.210.0150.00424.64
8.0.200.0140.00524.49
8.0.190.0140.00523.48
8.0.180.0130.00522.87
8.0.170.0140.00422.11
8.0.160.0120.00621.59
8.0.150.0130.00521.30
8.0.140.0130.00520.92
8.0.130.0120.00520.39
8.0.120.0140.00520.62
8.0.110.0120.00620.57
8.0.100.0110.00520.10
8.0.90.0110.00519.86
8.0.80.0110.00520.16
8.0.70.0120.00520.14
8.0.60.0120.00520.16
8.0.50.0120.00620.14
8.0.30.0110.00520.16
8.0.20.0110.00620.23
8.0.10.0120.00620.25
8.0.00.0090.00520.28
7.4.330.0140.00426.84
7.4.320.0150.00626.22
7.4.300.0130.00523.22
7.4.290.0140.00522.43
7.4.280.0140.00521.32
7.4.270.0140.00520.61
7.4.260.0130.00520.29
7.4.250.0140.00520.23
7.4.240.0150.00520.33
7.4.230.0140.00519.99
7.4.220.0120.00519.92
7.4.210.0130.00419.92
7.4.200.0110.00519.92
7.4.190.0120.00519.96
7.4.180.0120.00419.96
7.4.160.0120.00519.94
7.4.150.0110.00519.88
7.4.140.0120.00419.83
7.4.130.0110.00519.78
7.4.120.0120.00519.80
7.4.110.0110.00519.79
7.4.100.0120.00519.89
7.4.90.0110.00519.82
7.4.80.0110.00519.78
7.4.70.0110.00419.79
7.4.60.0110.00519.80
7.4.50.0110.00519.75
7.4.40.0110.00519.75
7.4.30.0110.00419.79
7.4.20.0110.00519.79
7.4.10.0110.00519.68
7.4.00.0100.00519.82
7.3.330.0150.00420.25
7.3.320.0150.00520.16
7.3.310.0150.00520.08
7.3.300.0140.00419.74
7.3.290.0130.00519.64
7.3.280.0140.00519.63
7.3.270.0130.00419.61
7.3.260.0130.00519.65
7.3.250.0130.00519.64
7.3.240.0140.00519.64
7.3.230.0140.00419.63
7.3.220.0140.00419.60
7.3.210.0140.00519.59
7.3.200.0140.00519.59
7.3.190.0130.00519.59
7.3.180.0140.00519.60
7.3.170.0140.00419.58
7.3.160.0140.00419.58
7.3.150.0130.00519.58
7.3.140.0130.00519.58
7.3.130.0140.00419.58
7.3.120.0140.00419.56
7.3.110.0130.00519.55
7.3.100.0140.00419.55
7.3.90.0140.00419.81
7.3.80.0140.00419.60
7.3.70.0130.00419.63
7.3.60.0130.00519.67
7.3.50.0130.00419.68
7.3.40.0130.00419.68
7.3.30.0130.00419.67
7.3.20.0140.00520.71
7.3.10.0140.00520.65
7.3.00.0150.00420.68

preferences:
26.01 ms | 403 KiB | 5 Q