3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Pont { public function __construct(private float $longueur, private float $largeur) { } } $towerBridge = new Pont(286.0, 62.0); var_dump($towerBridge);

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.75
8.4.10.0040.00422.59
8.3.150.0090.00916.78
8.3.140.0140.00418.50
8.3.130.0050.00318.40
8.3.120.0210.00517.97
8.3.110.0090.00018.55
8.3.100.0190.00930.80
8.3.90.0150.01325.41
8.3.80.0110.00525.05
8.3.70.0200.00723.82
8.3.60.0240.00724.40
8.3.50.0160.00824.41
8.3.40.0160.00423.42
8.3.30.0150.00423.18
8.3.20.0110.00525.18
8.3.10.0110.00524.63
8.3.00.0110.00525.70
8.2.260.0040.01118.22
8.2.250.0030.00516.70
8.2.240.0150.00017.31
8.2.230.0040.00420.94
8.2.220.0120.00924.06
8.2.210.0110.00525.41
8.2.200.0110.00723.84
8.2.190.0210.00424.35
8.2.180.0180.00826.94
8.2.170.0310.00824.56
8.2.160.0230.00324.46
8.2.150.0150.00724.85
8.2.140.0170.00524.08
8.2.130.0150.00524.34
8.2.120.0140.00322.77
8.2.110.0110.00722.07
8.2.100.0150.00521.22
8.2.90.0100.00821.28
8.2.80.0120.00621.15
8.2.70.0120.00542.07
8.2.60.0100.00619.39
8.2.50.0140.00620.84
8.2.40.0120.00619.93
8.2.30.0100.00720.41
8.2.20.0120.00520.75
8.2.10.0120.00621.15
8.2.00.0110.00520.50
8.1.310.0040.00416.04
8.1.300.0100.00016.19
8.1.290.0160.00824.59
8.1.280.0190.00526.94
8.1.270.0120.00524.76
8.1.260.0120.00525.02
8.1.250.0110.00625.43
8.1.240.0100.00522.62
8.1.230.0100.00722.56
8.1.220.0100.00621.92
8.1.210.0110.00621.14
8.1.200.0110.00520.60
8.1.190.0140.00320.57
8.1.180.0120.00520.68
8.1.170.0100.00620.77
8.1.160.0100.00620.77
8.1.150.0100.00520.80
8.1.140.0100.00420.81
8.1.130.0120.00420.63
8.1.120.0120.00320.64
8.1.110.0100.00519.86
8.1.100.0090.00619.21
8.1.90.0090.00419.00
8.1.80.0090.00419.04
8.1.70.0090.00518.96
8.1.60.0100.00419.24
8.1.50.0100.00418.53
8.1.40.0090.00618.80
8.1.30.0130.00418.97
8.1.20.0110.00518.79
8.1.10.0100.00518.50
8.1.00.0140.00418.37
8.0.300.0100.00720.85
8.0.290.0130.00520.15
8.0.280.0110.00720.40
8.0.270.0130.00520.25
8.0.260.0140.00420.18
8.0.250.0120.00620.20
8.0.240.0140.00419.44
8.0.230.0150.00319.15
8.0.220.0130.00618.78
8.0.210.0140.00419.09
8.0.200.0110.00518.82
8.0.190.0110.00518.68
8.0.180.0090.00518.50
8.0.170.0120.00418.41
8.0.160.0100.00518.25
8.0.150.0120.00418.20
8.0.140.0120.00518.00
8.0.130.0120.00617.72
8.0.120.0130.00417.89
8.0.110.0110.00617.90
8.0.100.0130.00417.90
8.0.90.0120.00517.85
8.0.80.0130.00517.87
8.0.70.0120.00417.79
8.0.60.0130.00417.83
8.0.50.0130.00517.81
8.0.30.0120.00617.72
8.0.20.0120.00517.89
8.0.10.0120.00517.90
8.0.00.0080.00417.97
7.4.330.0130.00418.89
7.4.320.0120.00518.65
7.4.300.0100.00517.66
7.4.290.0130.00618.09
7.4.280.0140.00518.03
7.4.270.0130.00417.69
7.4.260.0120.00417.49
7.4.250.0120.00517.49
7.4.240.0130.00517.44
7.4.230.0150.00417.44
7.4.220.0120.00517.48
7.4.210.0120.00417.48
7.4.200.0110.00517.50
7.4.190.0120.00517.54
7.4.180.0130.00317.55
7.4.160.0120.00617.46
7.4.150.0120.00517.38
7.4.140.0120.00517.35
7.4.130.0120.00517.32
7.4.120.0120.00517.30
7.4.110.0130.00417.32
7.4.100.0130.00517.41
7.4.90.0120.00617.29
7.4.80.0130.00417.33
7.4.70.0120.00517.31
7.4.60.0110.00517.30
7.4.50.0110.00517.26
7.4.40.0110.00517.25
7.4.30.0100.00517.31
7.4.20.0110.00517.30
7.4.10.0120.00617.33
7.4.00.0110.00517.22
7.3.330.0150.00417.38
7.3.320.0150.00417.22
7.3.310.0140.00517.32
7.3.300.0130.00517.33
7.3.290.0140.00417.32
7.3.280.0140.00417.29
7.3.270.0120.00717.25
7.3.260.0130.00517.23
7.3.250.0140.00517.28
7.3.240.0140.00417.29
7.3.230.0130.00617.21
7.3.220.0140.00417.17
7.3.210.0120.00516.87
7.3.200.0130.00517.19
7.3.190.0130.00517.17
7.3.180.0130.00517.21
7.3.170.0120.00517.29
7.3.160.0140.00417.19
7.3.150.0110.00617.19
7.3.140.0120.00417.22
7.3.130.0110.00517.23
7.3.120.0110.00517.18
7.3.110.0120.00517.06
7.3.100.0130.00517.15
7.3.90.0120.00517.43
7.3.80.0130.00617.22
7.3.70.0130.00417.27
7.3.60.0130.00417.29
7.3.50.0120.00617.32
7.3.40.0130.00417.25
7.3.30.0130.00517.27
7.3.20.0160.00417.94
7.3.10.0130.00517.90
7.3.00.0140.00617.91

preferences:
64.13 ms | 403 KiB | 5 Q