3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Pont { public float $longueur; public float $largeur; } $pont = new Pont; $pont->longueur = 286.0; $pont->largeur = 15.0; $surface = $pont->longueur * $pont->largeur; 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.0120.00919.33
8.3.140.0080.00616.78
8.3.130.0220.00616.71
8.3.120.0220.00517.53
8.3.110.0210.00817.35
8.3.100.0290.00820.52
8.3.90.0270.00921.60
8.3.80.0300.00822.73
8.3.70.0310.00622.51
8.3.60.0300.00823.25
8.3.50.0220.01022.74
8.3.40.0210.00823.04
8.3.30.0250.00523.20
8.3.20.0250.00823.81
8.3.10.0240.00623.60
8.3.00.0180.00723.38
8.2.260.0160.00316.60
8.2.250.0220.00316.37
8.2.240.0180.01116.42
8.2.230.0250.00616.34
8.2.220.0220.00822.41
8.2.210.0230.00621.54
8.2.200.0250.00622.65
8.2.190.0220.00522.57
8.2.180.0210.00623.60
8.2.170.0240.00623.07
8.2.160.0240.00623.51
8.2.150.0210.00623.04
8.2.140.0220.00523.59
8.2.130.0210.00523.57
8.2.120.0190.00823.11
8.2.110.0180.00822.71
8.2.100.0190.00721.59
8.2.90.0190.00622.14
8.2.80.0190.00422.15
8.2.70.0160.00632.02
8.2.60.0200.00627.09
8.2.50.0180.00626.12
8.2.40.0160.00625.71
8.2.30.0140.00725.25
8.2.20.0130.00625.37
8.2.10.0140.00524.98
8.2.00.0140.00524.28
8.1.310.0160.00316.03
8.1.300.0190.00616.60
8.1.290.0200.00723.71
8.1.280.0230.00723.40
8.1.270.0230.00523.72
8.1.260.0190.00524.04
8.1.250.0170.00824.24
8.1.240.0170.00622.59
8.1.230.0170.00522.15
8.1.220.0170.00722.26
8.1.210.0170.00622.19
8.1.200.0160.00627.46
8.1.190.0150.00626.91
8.1.180.0160.00525.99
8.1.170.0150.00626.15
8.1.160.0160.00525.48
8.1.150.0140.00628.97
8.1.140.0140.00525.18
8.1.130.0130.00523.41
8.1.120.0140.00523.68
8.1.110.0140.00623.36
8.1.100.0140.00523.30
8.1.90.0110.00521.96
8.1.80.0130.00521.79
8.1.70.0130.00421.66
8.1.60.0150.00521.90
8.1.50.0130.00621.33
8.1.40.0150.00521.29
8.1.30.0150.00620.98
8.1.20.0150.00621.04
8.1.10.0160.00520.89
8.1.00.0160.00620.92
8.0.300.0190.00621.43
8.0.290.0190.00526.96
8.0.280.0170.00525.12
8.0.270.0140.00624.82
8.0.260.0140.00522.97
8.0.250.0130.00623.28
8.0.240.0140.00623.26
8.0.230.0150.00522.87
8.0.220.0130.00521.81
8.0.210.0140.00421.65
8.0.200.0140.00521.59
8.0.190.0140.00521.58
8.0.180.0140.00521.07
8.0.170.0150.00420.88
8.0.160.0140.00520.44
8.0.150.0140.00520.30
8.0.140.0140.00620.27
8.0.130.0150.00420.12
8.0.120.0130.00519.86
8.0.110.0130.00519.70
8.0.100.0110.00619.28
8.0.90.0120.00619.43
8.0.80.0130.00519.59
8.0.70.0130.00519.60
8.0.60.0130.00519.58
8.0.50.0130.00519.60
8.0.30.0130.00519.65
8.0.20.0120.00519.71
8.0.10.0120.00519.74
8.0.00.0100.00519.84
7.4.330.0140.00322.19
7.4.320.0160.00522.59
7.4.300.0130.00521.00
7.4.290.0130.00620.72
7.4.280.0160.00520.19
7.4.270.0160.00520.06
7.4.260.0150.00519.74
7.4.250.0140.00519.60
7.4.240.0140.00419.43
7.4.230.0140.00419.40
7.4.220.0120.00419.23
7.4.210.0120.00519.29
7.4.200.0120.00519.35
7.4.190.0120.00519.45
7.4.180.0120.00619.47
7.4.160.0130.00519.43
7.4.150.0120.00519.34
7.4.140.0120.00519.29
7.4.130.0120.00519.29
7.4.120.0130.00519.31
7.4.110.0130.00419.31
7.4.100.0120.00519.38
7.4.90.0130.00419.32
7.4.80.0130.00419.30
7.4.70.0120.00519.31
7.4.60.0130.00519.30
7.4.50.0130.00419.16
7.4.40.0120.00519.28
7.4.30.0130.00519.33
7.4.20.0120.00519.31
7.4.10.0130.00419.23
7.4.00.0120.00419.32
7.3.330.0140.00519.74
7.3.320.0150.00519.37
7.3.310.0140.00419.28
7.3.300.0140.00519.19
7.3.290.0120.00518.98
7.3.280.0140.00419.21
7.3.270.0140.00419.19
7.3.260.0140.00419.15
7.3.250.0130.00519.16
7.3.240.0130.00519.14
7.3.230.0140.00419.15
7.3.220.0130.00519.11
7.3.210.0140.00419.11
7.3.200.0130.00519.11
7.3.190.0140.00519.10
7.3.180.0140.00519.08
7.3.170.0140.00519.16
7.3.160.0130.00519.10
7.3.150.0140.00519.04
7.3.140.0130.00519.10
7.3.130.0140.00519.10
7.3.120.0130.00519.09
7.3.110.0140.00519.08
7.3.100.0140.00519.04
7.3.90.0130.00519.31
7.3.80.0140.00519.14
7.3.70.0140.00419.17
7.3.60.0130.00519.21
7.3.50.0140.00419.21
7.3.40.0130.00419.19
7.3.30.0130.00419.20
7.3.20.0140.00520.29
7.3.10.0140.00420.26
7.3.00.0160.00520.26

preferences:
26.74 ms | 403 KiB | 5 Q