3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Pont { public static function validerTaille(float $taille): bool { if ($taille < 50) { trigger_error( 'La longueur est trop courte. (min 50m)', E_USER_ERROR ); } return true; } } var_dump(Pont::validerTaille(150)); var_dump(Pont::validerTaille(20));

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.3.60.0270.00921.34
8.3.50.0150.00522.00
8.3.40.0280.00722.32
8.3.30.0200.00722.60
8.3.20.0140.00824.34
8.3.10.0140.00524.43
8.3.00.0150.00625.29
8.2.180.0230.01125.92
8.2.170.0330.00322.38
8.2.160.0220.01123.70
8.2.150.0150.00724.63
8.2.140.0130.00824.43
8.2.130.0140.00425.29
8.2.120.0120.00724.24
8.2.110.0120.00722.76
8.2.100.0160.00521.34
8.2.90.0180.00522.83
8.2.80.0160.00521.84
8.2.70.0110.00639.55
8.2.60.0160.00521.43
8.2.50.0140.00521.05
8.2.40.0120.00520.52
8.2.30.0140.00620.49
8.2.20.0130.00620.75
8.2.10.0140.00520.77
8.2.00.0100.00519.71
8.1.280.0200.01225.92
8.1.270.0120.00724.43
8.1.260.0120.00625.32
8.1.250.0120.00625.61
8.1.240.0120.00623.54
8.1.230.0140.00522.96
8.1.220.0120.00822.42
8.1.210.0130.00822.71
8.1.200.0130.00621.73
8.1.190.0140.00521.18
8.1.180.0140.00421.33
8.1.170.0130.00521.33
8.1.160.0120.00620.77
8.1.150.0130.00420.92
8.1.140.0130.00520.49
8.1.130.0100.00419.42
8.1.120.0110.00419.22
8.1.110.0120.00418.97
8.1.100.0110.00518.69
8.1.90.0100.00518.52
8.1.80.0090.00618.27
8.1.70.0100.00518.25
8.1.60.0110.00518.37
8.1.50.0110.00618.24
8.1.40.0120.00518.21
8.1.30.0130.00518.13
8.1.20.0120.00618.13
8.1.10.0130.00518.01
8.1.00.0130.00517.95
8.0.300.0120.00621.65
8.0.290.0140.00521.57
8.0.280.0150.00420.51
8.0.270.0120.00420.37
8.0.260.0100.00719.38
8.0.250.0110.00518.80
8.0.240.0120.00518.58
8.0.230.0100.00518.49
8.0.220.0110.00418.11
8.0.210.0110.00517.98
8.0.200.0110.00517.90
8.0.190.0110.00517.88
8.0.180.0110.00417.74
8.0.170.0100.00517.72
8.0.160.0100.00517.59
8.0.150.0100.00617.51
8.0.140.0110.00517.44
8.0.130.0100.00517.16
8.0.120.0100.00517.24
8.0.110.0100.00517.20
8.0.100.0100.00517.14
8.0.90.0090.00517.16
8.0.80.0100.00517.17
8.0.70.0100.00517.16
8.0.60.0100.00517.16
8.0.50.0110.00417.16
8.0.30.0100.00517.16
8.0.20.0100.00517.21
8.0.10.0100.00417.21
8.0.00.0070.00517.31
7.4.330.0100.00418.49
7.4.320.0130.00418.18
7.4.300.0110.00417.55
7.4.290.0110.00517.43
7.4.280.0110.00517.23
7.4.270.0130.00417.13
7.4.260.0130.00517.05
7.4.250.0120.00516.89
7.4.240.0110.00516.85
7.4.230.0110.00516.83
7.4.220.0100.00516.86
7.4.210.0100.00416.80
7.4.200.0100.00416.82
7.4.190.0100.00416.88
7.4.180.0100.00416.89
7.4.160.0100.00416.90
7.4.150.0090.00516.81
7.4.140.0090.00516.75
7.4.130.0090.00416.74
7.4.120.0090.00516.75
7.4.110.0090.00516.68
7.4.100.0090.00416.82
7.4.90.0090.00416.73
7.4.80.0090.00516.72
7.4.70.0090.00516.72
7.4.60.0090.00416.73
7.4.50.0090.00416.61
7.4.40.0100.00416.62
7.4.30.0090.00416.66
7.4.20.0080.00516.69
7.4.10.0090.00516.66
7.4.00.0090.00416.72
7.3.330.0140.00416.94
7.3.320.0130.00416.75
7.3.310.0120.00416.70
7.3.300.0110.00516.68
7.3.290.0120.00416.68
7.3.280.0110.00516.68
7.3.270.0120.00416.68
7.3.260.0120.00416.67
7.3.250.0110.00516.68
7.3.240.0110.00516.65
7.3.230.0120.00416.64
7.3.220.0120.00416.60
7.3.210.0120.00416.62
7.3.200.0120.00416.62
7.3.190.0120.00416.64
7.3.180.0110.00516.62
7.3.170.0110.00416.60
7.3.160.0120.00516.60
7.3.150.0110.00516.62
7.3.140.0120.00416.60
7.3.130.0120.00416.62
7.3.120.0110.00516.63
7.3.110.0120.00416.56
7.3.100.0120.00416.54
7.3.90.0120.00416.85
7.3.80.0120.00516.61
7.3.70.0120.00416.65
7.3.60.0110.00516.72
7.3.50.0120.00416.71
7.3.40.0110.00516.72
7.3.30.0110.00516.72
7.3.20.0120.00417.99
7.3.10.0130.00417.91
7.3.00.0130.00417.93

preferences:
50.12 ms | 401 KiB | 5 Q