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; } $towerBridge = new Pont; $towerBridge->longueur = 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.0090.00020.89
8.4.10.0000.00919.53
8.3.150.0070.01117.02
8.3.140.0040.00417.08
8.3.130.0040.00418.40
8.3.120.0230.00817.26
8.3.110.0230.00717.60
8.3.100.0250.00923.54
8.3.90.0240.00819.04
8.3.80.0220.00821.38
8.3.70.0280.00616.91
8.3.60.0260.01218.50
8.3.50.0240.00718.06
8.3.40.0220.01019.14
8.3.30.0240.00720.63
8.3.20.0190.00721.30
8.3.10.0200.00621.42
8.3.00.0150.00522.13
8.2.260.0090.00018.74
8.2.250.0150.00717.37
8.2.240.0180.00717.19
8.2.230.0210.00618.13
8.2.220.0190.00718.30
8.2.210.0180.00719.01
8.2.200.0150.00817.00
8.2.190.0200.00516.90
8.2.180.0220.00821.26
8.2.170.0240.01019.25
8.2.160.0230.00521.07
8.2.150.0220.00621.47
8.2.140.0170.00821.33
8.2.130.0150.00722.16
8.2.120.0160.00821.49
8.2.110.0150.00521.91
8.2.100.0130.00720.32
8.2.90.0180.00820.82
8.2.80.0160.00820.74
8.2.70.0140.00639.67
8.2.60.0160.00719.85
8.2.50.0170.00619.82
8.2.40.0140.00419.45
8.2.30.0170.00419.70
8.2.20.0120.00719.65
8.2.10.0120.00719.62
8.2.00.0120.00519.57
8.1.310.0030.00616.89
8.1.300.0180.00716.52
8.1.290.0210.00319.72
8.1.280.0210.00519.46
8.1.270.0180.00521.27
8.1.260.0150.00722.14
8.1.250.0140.00722.37
8.1.240.0120.00621.20
8.1.230.0130.00521.04
8.1.220.0130.00620.61
8.1.210.0150.00520.81
8.1.200.0140.00519.63
8.1.190.0150.00519.66
8.1.180.0120.00619.62
8.1.170.0130.00619.69
8.1.160.0130.00619.59
8.1.150.0130.00519.57
8.1.140.0140.00519.52
8.1.130.0150.00519.28
8.1.120.0130.00619.32
8.1.110.0130.00519.15
8.1.100.0120.00618.96
8.1.90.0120.00518.80
8.1.80.0100.00518.40
8.1.70.0120.00518.62
8.1.60.0130.00518.81
8.1.50.0130.00618.84
8.1.40.0130.00518.70
8.1.30.0110.00518.47
8.1.20.0120.00618.55
8.1.10.0130.00518.42
8.1.00.0130.00518.42
8.0.300.0160.00520.12
8.0.290.0130.00719.32
8.0.280.0120.00619.05
8.0.270.0120.00618.97
8.0.260.0130.00518.99
8.0.250.0120.00518.99
8.0.240.0120.00618.90
8.0.230.0110.00718.71
8.0.220.0130.00518.53
8.0.210.0120.00618.42
8.0.200.0120.00618.47
8.0.190.0130.00418.33
8.0.180.0130.00518.29
8.0.170.0130.00418.22
8.0.160.0120.00518.13
8.0.150.0120.00518.07
8.0.140.0130.00417.91
8.0.130.0120.00517.73
8.0.120.0120.00517.49
8.0.110.0100.00517.68
8.0.100.0110.00517.64
8.0.90.0110.00517.60
8.0.80.0110.00517.70
8.0.70.0120.00517.70
8.0.60.0110.00517.70
8.0.50.0110.00517.72
8.0.30.0110.00417.70
8.0.20.0120.00517.75
8.0.10.0110.00517.79
8.0.00.0100.00517.94
7.4.330.0130.00518.57
7.4.320.0150.00618.48
7.4.300.0140.00518.19
7.4.290.0140.00518.18
7.4.280.0140.00517.81
7.4.270.0130.00517.60
7.4.260.0130.00517.56
7.4.250.0120.00517.32
7.4.240.0120.00417.57
7.4.230.0120.00517.47
7.4.220.0110.00417.45
7.4.210.0110.00517.47
7.4.200.0110.00517.44
7.4.190.0110.00517.52
7.4.180.0100.00517.51
7.4.160.0120.00417.50
7.4.150.0120.00517.43
7.4.140.0120.00517.40
7.4.130.0130.00417.43
7.4.120.0120.00517.44
7.4.110.0110.00517.40
7.4.100.0120.00417.44
7.4.90.0120.00417.38
7.4.80.0100.00517.41
7.4.70.0110.00517.38
7.4.60.0110.00417.38
7.4.50.0100.00517.34
7.4.40.0110.00517.34
7.4.30.0120.00417.37
7.4.20.0110.00517.38
7.4.10.0110.00417.39
7.4.00.0110.00517.43
7.3.330.0140.00517.31
7.3.320.0140.00417.30
7.3.310.0140.00417.24
7.3.300.0130.00517.19
7.3.290.0130.00417.18
7.3.280.0130.00517.20
7.3.270.0130.00517.20
7.3.260.0130.00517.21
7.3.250.0130.00517.21
7.3.240.0130.00417.19
7.3.230.0140.00417.19
7.3.220.0130.00517.15
7.3.210.0140.00417.12
7.3.200.0130.00517.15
7.3.190.0130.00517.14
7.3.180.0130.00517.13
7.3.170.0110.00617.15
7.3.160.0130.00417.15
7.3.150.0120.00517.14
7.3.140.0130.00517.14
7.3.130.0130.00417.15
7.3.120.0120.00417.16
7.3.110.0120.00517.09
7.3.100.0120.00517.12
7.3.90.0120.00517.33
7.3.80.0120.00517.15
7.3.70.0130.00417.18
7.3.60.0130.00417.23
7.3.50.0130.00517.22
7.3.40.0110.00517.22
7.3.30.0130.00517.23
7.3.20.0140.00518.35
7.3.10.0130.00518.29
7.3.00.0150.00518.28

preferences:
31.33 ms | 403 KiB | 5 Q