3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Pont { public static function validerTaille(float $taille): bool { if ($taille < 50.0) { trigger_error( 'La taille est trop courte. (min 50m)', E_USER_ERROR ); } return true; } public function setLongueur(float $longueur): void { self::validerTaille($longueur); $this->longueur = $longueur; } } $towerBridge = new Pont; $towerBridge->setLongueur(20.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.0110.00018.96
8.4.10.0210.01117.95
8.3.150.0130.00618.72
8.3.140.0200.00516.57
8.3.130.0050.00518.49
8.3.120.0220.00617.54
8.3.110.0260.00817.32
8.3.100.0290.00920.13
8.3.90.0320.00720.40
8.3.80.0310.01019.44
8.3.70.0330.00719.03
8.3.60.0290.00719.05
8.3.50.0250.00619.22
8.3.40.0250.00619.75
8.3.30.0240.00919.75
8.3.20.0240.00720.41
8.3.10.0200.00620.43
8.3.00.0160.00621.70
8.2.260.0100.00718.79
8.2.250.0060.01318.57
8.2.240.0150.00716.87
8.2.230.0180.00617.42
8.2.220.0170.00621.85
8.2.210.0180.00720.36
8.2.200.0210.00719.39
8.2.190.0180.00519.24
8.2.180.0190.00721.08
8.2.170.0190.00819.70
8.2.160.0250.00620.31
8.2.150.0280.00620.60
8.2.140.0290.00420.42
8.2.130.0220.00621.12
8.2.120.0240.00620.71
8.2.110.0250.00620.81
8.2.100.0220.00820.54
8.2.90.0230.00720.41
8.2.80.0220.00620.23
8.2.70.0200.00637.18
8.2.60.0190.00832.72
8.2.50.0180.00731.22
8.2.40.0150.00629.76
8.2.30.0150.00629.47
8.2.20.0150.00631.21
8.2.10.0170.00631.26
8.2.00.0160.00528.36
8.1.310.0060.00316.79
8.1.300.0250.00616.09
8.1.290.0250.00720.69
8.1.280.0250.00419.84
8.1.270.0260.00620.37
8.1.260.0210.00721.38
8.1.250.0240.00421.49
8.1.240.0220.00520.52
8.1.230.0210.00720.53
8.1.220.0190.00620.19
8.1.210.0210.00520.26
8.1.200.0180.00634.82
8.1.190.0200.00533.93
8.1.180.0160.00731.18
8.1.170.0170.00631.63
8.1.160.0140.00631.10
8.1.150.0150.00631.17
8.1.140.0170.00631.06
8.1.130.0150.00629.79
8.1.120.0160.00528.69
8.1.110.0140.00428.04
8.1.100.0130.00627.14
8.1.90.0130.00425.97
8.1.80.0120.00625.58
8.1.70.0130.00625.56
8.1.60.0150.00525.35
8.1.50.0140.00523.78
8.1.40.0150.00524.85
8.1.30.0140.00524.26
8.1.20.0140.00623.75
8.1.10.0150.00422.75
8.1.00.0150.00523.02
8.0.300.0170.00719.65
8.0.290.0170.00532.79
8.0.280.0160.00630.77
8.0.270.0150.00630.79
8.0.260.0150.00529.47
8.0.250.0160.00528.37
8.0.240.0150.00527.63
8.0.230.0140.00526.75
8.0.220.0140.00525.98
8.0.210.0150.00426.02
8.0.200.0140.00525.62
8.0.190.0140.00625.23
8.0.180.0130.00524.35
8.0.170.0140.00524.64
8.0.160.0130.00523.43
8.0.150.0140.00523.35
8.0.140.0140.00522.70
8.0.130.0120.00622.22
8.0.120.0130.00522.08
8.0.110.0120.00521.76
8.0.100.0130.00421.54
8.0.90.0130.00521.65
8.0.80.0130.00421.61
8.0.70.0120.00521.67
8.0.60.0130.00521.64
8.0.50.0130.00521.64
8.0.30.0120.00521.62
8.0.20.0130.00521.73
8.0.10.0130.00521.77
8.0.00.0100.00521.59
7.4.330.0140.00527.47
7.4.320.0140.00526.78
7.4.300.0130.00523.77
7.4.290.0130.00523.77
7.4.280.0150.00523.48
7.4.270.0140.00522.07
7.4.260.0160.00421.96
7.4.250.0150.00521.82
7.4.240.0140.00521.54
7.4.230.0130.00521.42
7.4.220.0110.00521.38
7.4.210.0120.00521.28
7.4.200.0110.00521.43
7.4.190.0120.00421.51
7.4.180.0110.00521.52
7.4.160.0120.00521.43
7.4.150.0110.00521.38
7.4.140.0120.00421.33
7.4.130.0120.00521.28
7.4.120.0120.00521.29
7.4.110.0120.00421.27
7.4.100.0120.00421.38
7.4.90.0120.00521.34
7.4.80.0120.00421.29
7.4.70.0120.00521.30
7.4.60.0120.00521.30
7.4.50.0110.00521.23
7.4.40.0120.00421.22
7.4.30.0110.00521.27
7.4.20.0110.00521.27
7.4.10.0110.00521.30
7.4.00.0110.00421.06
7.3.330.0140.00521.99
7.3.320.0150.00421.68
7.3.310.0130.00421.37
7.3.300.0130.00421.24
7.3.290.0120.00521.14
7.3.280.0130.00421.29
7.3.270.0120.00521.24
7.3.260.0120.00521.22
7.3.250.0130.00421.22
7.3.240.0130.00521.21
7.3.230.0130.00521.21
7.3.220.0130.00521.17
7.3.210.0140.00421.15
7.3.200.0140.00421.16
7.3.190.0130.00521.17
7.3.180.0130.00521.21
7.3.170.0130.00521.18
7.3.160.0130.00421.17
7.3.150.0130.00421.18
7.3.140.0130.00421.17
7.3.130.0130.00421.16
7.3.120.0130.00521.17
7.3.110.0120.00421.11
7.3.100.0120.00421.10
7.3.90.0130.00421.38
7.3.80.0130.00421.21
7.3.70.0130.00421.25
7.3.60.0130.00421.28
7.3.50.0140.00421.26
7.3.40.0130.00521.26
7.3.30.0130.00421.25
7.3.20.0140.00422.27
7.3.10.0130.00522.23
7.3.00.0140.00422.22

preferences:
52.57 ms | 403 KiB | 5 Q