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; } } $pont = new Pont; $pont->longueur = 286.0; $pont->largeur = 15.0; $surface = $pont->getSurface(); var_dump($surface);

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.0000.00818.75
8.3.130.0160.00917.40
8.3.120.0300.00716.72
8.3.110.0280.00717.26
8.3.100.0300.00924.37
8.3.90.0330.00821.63
8.3.80.0320.00721.73
8.3.70.0320.00721.05
8.3.60.0350.00822.42
8.3.50.0210.00822.55
8.3.40.0230.00922.38
8.3.30.0260.00822.62
8.3.20.0230.00823.65
8.3.10.0230.00623.81
8.3.00.0200.00823.50
8.2.260.0130.00716.72
8.2.250.0200.00516.42
8.2.240.0240.00816.48
8.2.230.0260.00717.33
8.2.220.0270.00722.46
8.2.210.0240.00621.62
8.2.200.0260.00621.58
8.2.190.0250.00721.20
8.2.180.0270.00823.47
8.2.170.0310.00922.66
8.2.160.0280.00723.01
8.2.150.0210.00822.54
8.2.140.0220.00723.49
8.2.130.0190.00923.71
8.2.120.0200.00823.26
8.2.110.0210.00623.22
8.2.100.0200.00722.08
8.2.90.0210.00822.44
8.2.80.0180.00822.52
8.2.70.0200.00733.21
8.2.60.0220.00623.98
8.2.50.0200.00623.59
8.2.40.0150.00722.34
8.2.30.0200.00623.97
8.2.20.0170.00723.81
8.2.10.0180.00723.17
8.2.00.0160.00622.38
8.1.310.0030.01616.18
8.1.300.0260.00816.30
8.1.290.0240.00622.90
8.1.280.0280.00822.95
8.1.270.0220.00823.65
8.1.260.0220.00823.92
8.1.250.0220.00724.00
8.1.240.0200.00822.77
8.1.230.0200.00622.48
8.1.220.0190.00622.37
8.1.210.0210.00622.46
8.1.200.0200.00724.38
8.1.190.0190.00724.35
8.1.180.0190.00723.73
8.1.170.0180.00724.00
8.1.160.0200.00623.89
8.1.150.0180.00723.79
8.1.140.0170.00822.97
8.1.130.0170.00622.54
8.1.120.0150.00621.86
8.1.110.0140.00621.74
8.1.100.0140.00521.53
8.1.90.0140.00520.91
8.1.80.0130.00620.75
8.1.70.0140.00520.41
8.1.60.0160.00520.53
8.1.50.0150.00620.21
8.1.40.0160.00520.31
8.1.30.0150.00520.09
8.1.20.0150.00620.07
8.1.10.0140.00619.64
8.1.00.0160.00519.84
8.0.300.0200.00621.99
8.0.290.0210.00723.89
8.0.280.0210.00623.00
8.0.270.0170.00622.80
8.0.260.0180.00521.87
8.0.250.0160.00521.51
8.0.240.0160.00621.37
8.0.230.0160.00521.08
8.0.220.0150.00520.54
8.0.210.0160.00520.40
8.0.200.0150.00620.15
8.0.190.0150.00519.90
8.0.180.0140.00619.72
8.0.170.0150.00519.68
8.0.160.0130.00719.51
8.0.150.0150.00519.34
8.0.140.0140.00619.18
8.0.130.0140.00519.11
8.0.120.0150.00518.82
8.0.110.0130.00518.79
8.0.100.0130.00518.54
8.0.90.0120.00518.48
8.0.80.0130.00518.55
8.0.70.0130.00518.60
8.0.60.0130.00518.55
8.0.50.0130.00518.56
8.0.30.0120.00518.57
8.0.20.0110.00518.67
8.0.10.0130.00518.68
8.0.00.0100.00518.84
7.4.330.0140.00419.98
7.4.320.0180.00420.88
7.4.300.0150.00519.70
7.4.290.0150.00519.49
7.4.280.0150.00619.25
7.4.270.0150.00518.88
7.4.260.0160.00518.92
7.4.250.0150.00518.50
7.4.240.0140.00518.56
7.4.230.0140.00518.44
7.4.220.0130.00418.30
7.4.210.0130.00518.33
7.4.200.0120.00518.36
7.4.190.0120.00518.44
7.4.180.0120.00518.44
7.4.160.0130.00518.41
7.4.150.0120.00518.34
7.4.140.0120.00518.30
7.4.130.0120.00518.30
7.4.120.0130.00518.28
7.4.110.0130.00518.29
7.4.100.0130.00518.36
7.4.90.0130.00518.29
7.4.80.0130.00418.30
7.4.70.0130.00518.30
7.4.60.0120.00518.31
7.4.50.0120.00518.22
7.4.40.0120.00518.21
7.4.30.0120.00518.25
7.4.20.0120.00518.27
7.4.10.0120.00518.27
7.4.00.0120.00518.27
7.3.330.0150.00518.67
7.3.320.0150.00518.36
7.3.310.0150.00518.26
7.3.300.0140.00518.17
7.3.290.0140.00518.03
7.3.280.0150.00418.09
7.3.270.0140.00518.06
7.3.260.0130.00518.02
7.3.250.0140.00518.08
7.3.240.0140.00418.07
7.3.230.0140.00418.06
7.3.220.0150.00418.02
7.3.210.0140.00518.01
7.3.200.0140.00417.99
7.3.190.0140.00418.03
7.3.180.0140.00418.01
7.3.170.0130.00518.04
7.3.160.0140.00418.01
7.3.150.0140.00418.00
7.3.140.0140.00418.01
7.3.130.0140.00418.00
7.3.120.0130.00418.01
7.3.110.0140.00517.99
7.3.100.0130.00517.97
7.3.90.0130.00518.22
7.3.80.0140.00518.01
7.3.70.0140.00418.08
7.3.60.0130.00518.08
7.3.50.0140.00418.10
7.3.40.0130.00518.11
7.3.30.0140.00518.12
7.3.20.0150.00519.14
7.3.10.0140.00519.09
7.3.00.0150.00519.10

preferences:
27.92 ms | 403 KiB | 5 Q