3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Pont { private float $longueur; private float $largeur; public function setLongueur(float $longueur): void { $this->longueur = $longueur; } public function setLargeur(float $largeur): void { $this->largeur = $largeur; } } $towerBridge = new Pont; $towerBridge->setLongueur(286.0); $towerBridge->setLargeur(62.2);

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.0100.01018.84
8.4.10.0140.00719.42
8.3.150.0100.01018.96
8.3.140.0080.00016.63
8.3.130.0120.00918.20
8.3.120.0160.00817.53
8.3.110.0240.00917.41
8.3.100.0300.00823.63
8.3.90.0270.00719.82
8.3.80.0240.00823.20
8.3.70.0320.00720.76
8.3.60.0320.00821.02
8.3.50.0170.01021.22
8.3.40.0220.00721.27
8.3.30.0190.00921.22
8.3.20.0200.00622.37
8.3.10.0210.00622.41
8.3.00.0150.00723.78
8.2.260.0110.00718.83
8.2.250.0040.00416.53
8.2.240.0150.00417.12
8.2.230.0210.00517.68
8.2.220.0230.00520.80
8.2.210.0230.00419.83
8.2.200.0220.00921.32
8.2.190.0230.00820.80
8.2.180.0220.00721.81
8.2.170.0240.00621.68
8.2.160.0230.00521.88
8.2.150.0230.00522.05
8.2.140.0240.00522.16
8.2.130.0190.00622.29
8.2.120.0210.00522.12
8.2.110.0210.00621.83
8.2.100.0170.00619.82
8.2.90.0220.00820.86
8.2.80.0220.00720.98
8.2.70.0150.00636.64
8.2.60.0170.00723.25
8.2.50.0200.00724.73
8.2.40.0190.00423.21
8.2.30.0220.00524.38
8.2.20.0150.00621.36
8.2.10.0200.00623.79
8.2.00.0170.00623.28
8.1.310.0080.00018.70
8.1.300.0220.00616.60
8.1.290.0250.00621.34
8.1.280.0250.00621.63
8.1.270.0210.00722.37
8.1.260.0230.00722.65
8.1.250.0230.00722.66
8.1.240.0190.00821.71
8.1.230.0200.00721.10
8.1.220.0180.00620.78
8.1.210.0170.00620.80
8.1.200.0190.00624.58
8.1.190.0190.00624.58
8.1.180.0180.00524.00
8.1.170.0180.00524.23
8.1.160.0190.00624.35
8.1.150.0190.00623.85
8.1.140.0170.00723.43
8.1.130.0190.00623.23
8.1.120.0180.00623.08
8.1.110.0180.00523.15
8.1.100.0160.00723.22
8.1.90.0160.00523.06
8.1.80.0180.00523.29
8.1.70.0160.00723.05
8.1.60.0180.00723.22
8.1.50.0170.00522.17
8.1.40.0190.00523.21
8.1.30.0160.00622.49
8.1.20.0140.00621.80
8.1.10.0170.00522.42
8.1.00.0160.00622.31
8.0.300.0180.00619.62
8.0.290.0150.00722.03
8.0.280.0200.00523.90
8.0.270.0190.00423.37
8.0.260.0170.00522.75
8.0.250.0180.00622.72
8.0.240.0170.00522.68
8.0.230.0150.00522.71
8.0.220.0150.00522.69
8.0.210.0150.00422.66
8.0.200.0160.00622.71
8.0.190.0170.00622.71
8.0.180.0180.00522.71
8.0.170.0190.00622.70
8.0.160.0150.00722.42
8.0.150.0170.00622.45
8.0.140.0180.00521.97
8.0.130.0170.00521.78
8.0.120.0160.00421.51
8.0.110.0150.00521.50
8.0.100.0150.00521.02
8.0.90.0160.00621.39
8.0.80.0160.00521.22
8.0.70.0130.00521.37
8.0.60.0140.00521.30
8.0.50.0150.00521.29
8.0.30.0140.00521.20
8.0.20.0140.00521.42
8.0.10.0160.00521.37
8.0.00.0130.00521.73
7.4.330.0140.00421.33
7.4.320.0180.00522.49
7.4.300.0170.00522.19
7.4.290.0190.00522.50
7.4.280.0170.00522.24
7.4.270.0140.00521.71
7.4.260.0160.00621.52
7.4.250.0160.00521.33
7.4.240.0180.00421.35
7.4.230.0160.00421.11
7.4.220.0140.00520.93
7.4.210.0140.00720.78
7.4.200.0160.00521.14
7.4.190.0170.00521.39
7.4.180.0160.00521.39
7.4.160.0150.00621.17
7.4.150.0150.00521.15
7.4.140.0150.00621.07
7.4.130.0150.00621.07
7.4.120.0160.00521.05
7.4.110.0150.00521.05
7.4.100.0150.00521.14
7.4.90.0150.00421.08
7.4.80.0140.00421.06
7.4.70.0150.00421.08
7.4.60.0150.00621.03
7.4.50.0130.00621.03
7.4.40.0150.00621.04
7.4.30.0140.00621.05
7.4.20.0160.00421.05
7.4.10.0150.00521.08
7.4.00.0150.00521.06
7.3.330.0160.00521.45
7.3.320.0170.00521.01
7.3.310.0170.00521.13
7.3.300.0150.00520.95
7.3.290.0160.00420.63
7.3.280.0160.00521.14
7.3.270.0150.00520.93
7.3.260.0160.00620.95
7.3.250.0160.00620.93
7.3.240.0180.00420.94
7.3.230.0170.00420.91
7.3.220.0180.00520.93
7.3.210.0190.00520.88
7.3.200.0170.00620.88
7.3.190.0170.00520.94
7.3.180.0180.00520.91
7.3.170.0190.00420.98
7.3.160.0170.00620.95
7.3.150.0190.00420.89
7.3.140.0180.00520.90
7.3.130.0170.00520.91
7.3.120.0150.00620.87
7.3.110.0150.00620.90
7.3.100.0170.00520.90
7.3.90.0160.00521.05
7.3.80.0160.00520.91
7.3.70.0160.00521.01
7.3.60.0160.00620.97
7.3.50.0180.00520.97
7.3.40.0170.00520.97
7.3.30.0160.00620.94
7.3.20.0190.00521.86
7.3.10.0190.00521.77
7.3.00.0170.00521.83

preferences:
69.09 ms | 406 KiB | 6 Q