3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Pont { public float $longueur; public float $largeur; public function getSurface(): float { return $this->longueur * $this->largeur; } } $towerBridge = new Pont; $towerBridge->longueur = 286.0; $towerBridge->largeur = 15.0; $manhattanBridge = new Pont; $manhattanBridge->longueur = 2089.0; $manhattanBridge->largeur = 36.6; $towerBridgeSurface = $towerBridge->getSurface(); $manhattanBridgeSurface = $manhattanBridge->getSurface(); var_dump($towerBridgeSurface); var_dump($manhattanBridgeSurface);

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.10.0090.00019.46
8.3.140.0060.00317.12
8.3.130.0270.00616.94
8.3.120.0260.00717.40
8.3.110.0290.00716.83
8.3.100.0260.00916.50
8.3.90.0250.00617.42
8.3.80.0240.00816.38
8.3.70.0280.00716.32
8.3.60.0250.00816.49
8.3.50.0280.00916.53
8.3.40.0230.00817.59
8.3.30.0210.00717.96
8.3.20.0240.00818.95
8.3.10.0220.00619.47
8.3.00.0130.00620.03
8.2.250.0210.00816.58
8.2.240.0220.00716.75
8.2.230.0240.00617.01
8.2.220.0240.00717.20
8.2.210.0260.00617.44
8.2.200.0230.00716.68
8.2.190.0210.00816.48
8.2.180.0260.00417.45
8.2.170.0240.00717.79
8.2.160.0240.00818.50
8.2.150.0290.00518.93
8.2.140.0260.00718.88
8.2.130.0250.00619.68
8.2.120.0190.00919.26
8.2.110.0230.00619.32
8.2.100.0190.00718.91
8.2.90.0210.00618.92
8.2.80.0170.00819.00
8.2.70.0210.00525.57
8.2.60.0200.00718.80
8.2.50.0200.00818.71
8.2.40.0200.00518.67
8.2.30.0190.00718.65
8.2.20.0180.00818.81
8.2.10.0200.00618.77
8.2.00.0180.00718.82
8.1.300.0300.00516.14
8.1.290.0270.01017.46
8.1.280.0280.01217.02
8.1.270.0240.00819.53
8.1.260.0220.00619.76
8.1.250.0230.00719.87
8.1.240.0180.00618.86
8.1.230.0190.00618.96
8.1.220.0190.00618.67
8.1.210.0180.00718.81
8.1.200.0190.00618.55
8.1.190.0180.00618.46
8.1.180.0200.00718.52
8.1.170.0190.00618.51
8.1.160.0200.00518.47
8.1.150.0210.00518.56
8.1.140.0170.00718.43
8.1.130.0160.00618.29
8.1.120.0170.00518.19
8.1.110.0150.00518.20
8.1.100.0150.00618.19
8.1.90.0150.00618.09
8.1.80.0140.00618.00
8.1.70.0140.00517.97
8.1.60.0160.00518.12
8.1.50.0130.00718.06
8.1.40.0160.00518.05
8.1.30.0140.00518.09
8.1.20.0150.00618.17
8.1.10.0140.00617.94
8.1.00.0170.00517.90
8.0.300.0210.00518.27
8.0.290.0220.00517.82
8.0.280.0210.00617.99
8.0.270.0190.00717.87
8.0.260.0190.00617.66
8.0.250.0180.00617.66
8.0.240.0180.00517.66
8.0.230.0170.00617.60
8.0.220.0170.00617.52
8.0.210.0160.00617.39
8.0.200.0160.00617.45
8.0.190.0150.00717.39
8.0.180.0160.00617.43
8.0.170.0160.00617.34
8.0.160.0150.00617.38
8.0.150.0150.00617.21
8.0.140.0150.00517.22
8.0.130.0150.00517.07
8.0.120.0140.00516.81
8.0.110.0130.00516.97
8.0.100.0130.00516.94
8.0.90.0110.00516.90
8.0.80.0140.00516.94
8.0.70.0130.00516.96
8.0.60.0130.00516.95
8.0.50.0120.00616.91
8.0.30.0130.00516.96
8.0.20.0130.00617.04
8.0.10.0120.00517.07
8.0.00.0110.00517.16
7.4.330.0200.00416.89
7.4.320.0170.00517.29
7.4.300.0140.00517.04
7.4.290.0160.00617.11
7.4.280.0160.00417.05
7.4.270.0140.00517.01
7.4.260.0140.00516.85
7.4.250.0140.00516.74
7.4.240.0130.00416.74
7.4.230.0130.00516.72
7.4.220.0110.00516.71
7.4.210.0110.00516.70
7.4.200.0120.00516.70
7.4.190.0130.00516.76
7.4.180.0130.00416.77
7.4.160.0120.00516.75
7.4.150.0130.00516.68
7.4.140.0130.00516.65
7.4.130.0130.00516.66
7.4.120.0120.00616.68
7.4.110.0120.00616.63
7.4.100.0140.00516.69
7.4.90.0130.00516.66
7.4.80.0120.00516.65
7.4.70.0120.00516.64
7.4.60.0140.00416.64
7.4.50.0130.00516.58
7.4.40.0120.00516.58
7.4.30.0130.00516.65
7.4.20.0140.00416.66
7.4.10.0140.00516.64
7.4.00.0140.00516.64
7.3.330.0160.00416.72
7.3.320.0160.00416.40
7.3.310.0140.00516.51
7.3.300.0140.00516.50
7.3.290.0130.00516.45
7.3.280.0130.00616.43
7.3.270.0140.00416.46
7.3.260.0140.00416.42
7.3.250.0130.00516.44
7.3.240.0130.00516.44
7.3.230.0140.00516.45
7.3.220.0140.00516.40
7.3.210.0140.00516.38
7.3.200.0140.00516.37
7.3.190.0140.00516.36
7.3.180.0130.00516.38
7.3.170.0140.00516.38
7.3.160.0150.00416.42
7.3.150.0140.00516.39
7.3.140.0130.00516.36
7.3.130.0140.00416.39
7.3.120.0130.00416.39
7.3.110.0130.00516.36
7.3.100.0130.00416.36
7.3.90.0130.00516.60
7.3.80.0130.00416.39
7.3.70.0130.00516.41
7.3.60.0120.00516.48
7.3.50.0130.00516.47
7.3.40.0130.00516.52
7.3.30.0130.00616.52
7.3.20.0150.00417.79
7.3.10.0140.00517.74
7.3.00.0130.00517.77

preferences:
53.32 ms | 403 KiB | 5 Q