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.5.00.0110.01319.90
8.4.150.0020.00114.05
8.4.140.0120.00917.75
8.4.130.0190.00818.06
8.4.120.0110.00518.51
8.4.110.0120.01017.99
8.4.100.0160.00617.71
8.4.90.0150.00718.99
8.4.80.0180.00518.20
8.4.70.0220.00818.13
8.4.60.0340.00818.12
8.4.50.0190.00718.61
8.4.40.0270.00717.75
8.4.30.0300.00717.73
8.4.20.0250.00817.84
8.4.10.0300.00817.64
8.3.280.0160.00518.34
8.3.270.0140.00716.59
8.3.260.0110.00416.88
8.3.250.0150.00616.62
8.3.240.0170.00516.57
8.3.230.0280.01016.62
8.3.220.0260.00717.32
8.3.210.0250.00917.14
8.3.200.0330.00616.67
8.3.190.0190.00716.79
8.3.180.0250.00616.66
8.3.170.0240.00517.26
8.3.160.0250.00616.76
8.3.150.0260.00816.83
8.3.140.0290.00816.84
8.3.130.0230.00816.58
8.3.120.0220.00716.87
8.3.110.0240.00817.18
8.3.100.0290.00717.29
8.3.90.0280.00717.91
8.3.80.0300.00717.44
8.3.70.0290.00717.45
8.3.60.0280.00717.83
8.3.50.0270.00517.93
8.3.40.0260.00718.46
8.3.30.0200.00618.82
8.3.20.0200.00719.32
8.3.10.0200.00619.37
8.3.00.0170.00619.85
8.2.290.0230.00916.49
8.2.280.0180.00716.48
8.2.270.0210.00516.60
8.2.260.0200.00716.53
8.2.250.0210.00616.50
8.2.240.0220.00616.47
8.2.230.0220.00617.11
8.2.220.0230.00618.04
8.2.210.0230.00717.25
8.2.200.0230.00617.40
8.2.190.0210.00617.44
8.2.180.0240.00618.18
8.2.170.0280.00518.47
8.2.160.0240.00819.02
8.2.150.0250.00619.40
8.2.140.0240.00719.31
8.2.130.0230.00719.73
8.2.120.0240.00719.53
8.2.110.0210.00719.98
8.2.100.0230.00519.31
8.2.90.0250.00619.51
8.2.80.0220.00719.30
8.2.70.0210.00626.48
8.2.60.0230.00619.19
8.2.50.0210.00619.15
8.2.40.0190.00619.09
8.2.30.0190.00619.07
8.2.20.0200.00619.07
8.2.10.0190.00719.11
8.2.00.0160.00618.94
8.1.330.0140.01016.04
8.1.320.0300.00716.17
8.1.310.0290.00616.30
8.1.300.0250.00716.38
8.1.290.0220.00817.77
8.1.280.0240.00717.99
8.1.270.0230.00719.24
8.1.260.0210.00719.66
8.1.250.0230.00719.71
8.1.240.0190.00919.36
8.1.230.0200.00619.36
8.1.220.0210.00719.19
8.1.210.0220.00719.18
8.1.200.0200.00719.05
8.1.190.0200.00518.94
8.1.180.0190.00518.99
8.1.170.0190.00519.06
8.1.160.0170.00719.00
8.1.150.0190.00519.02
8.1.140.0190.00618.86
8.1.130.0160.00518.74
8.1.120.0160.00518.66
8.1.110.0160.00418.52
8.1.100.0140.00518.40
8.1.90.0140.00518.32
8.1.80.0120.00618.15
8.1.70.0140.00518.14
8.1.60.0140.00618.27
8.1.50.0140.00618.18
8.1.40.0140.00518.15
8.1.30.0150.00618.11
8.1.20.0140.00618.12
8.1.10.0150.00518.01
8.1.00.0160.00517.93
8.0.300.0190.00718.85
8.0.290.0200.00618.76
8.0.280.0200.00518.61
8.0.270.0200.00518.55
8.0.260.0170.00618.34
8.0.250.0160.00518.24
8.0.240.0160.00518.14
8.0.230.0160.00518.11
8.0.220.0160.00517.88
8.0.210.0150.00517.79
8.0.200.0140.00617.79
8.0.190.0150.00517.77
8.0.180.0140.00517.68
8.0.170.0140.00517.65
8.0.160.0130.00517.57
8.0.150.0130.00617.49
8.0.140.0140.00517.43
8.0.130.0130.00517.21
8.0.120.0130.00517.27
8.0.110.0130.00517.25
8.0.100.0120.00517.19
8.0.90.0120.00517.21
8.0.80.0120.00517.21
8.0.70.0120.00517.21
8.0.60.0120.00517.21
8.0.50.0120.00517.21
8.0.30.0120.00517.20
8.0.20.0120.00517.26
8.0.10.0120.00517.26
8.0.00.0100.00517.35
7.4.330.0150.00417.95
7.4.320.0160.00517.77
7.4.300.0130.00517.45
7.4.290.0130.00517.38
7.4.280.0140.00517.22
7.4.270.0150.00417.14
7.4.260.0140.00517.08
7.4.250.0140.00516.95
7.4.240.0130.00516.91
7.4.230.0130.00516.89
7.4.220.0110.00516.91
7.4.210.0120.00516.86
7.4.200.0110.00416.87
7.4.190.0120.00416.94
7.4.180.0120.00516.94
7.4.160.0120.00416.95
7.4.150.0110.00516.87
7.4.140.0110.00516.81
7.4.130.0120.00516.80
7.4.120.0120.00516.82
7.4.110.0120.00516.75
7.4.100.0120.00516.88
7.4.90.0110.00516.79
7.4.80.0110.00516.79
7.4.70.0110.00516.79
7.4.60.0110.00516.80
7.4.50.0110.00516.69
7.4.40.0120.00416.69
7.4.30.0110.00516.73
7.4.20.0110.00516.75
7.4.10.0110.00516.73
7.4.00.0110.00516.77
7.3.330.0150.00516.96
7.3.320.0140.00516.82
7.3.310.0140.00516.76
7.3.300.0120.00516.75
7.3.290.0130.00416.75
7.3.280.0130.00516.74
7.3.270.0130.00416.74
7.3.260.0130.00416.74
7.3.250.0120.00516.74
7.3.240.0130.00516.72
7.3.230.0130.00516.71
7.3.220.0140.00416.67
7.3.210.0140.00516.69
7.3.200.0130.00516.69
7.3.190.0140.00416.71
7.3.180.0130.00516.69
7.3.170.0130.00516.68
7.3.160.0130.00516.68
7.3.150.0130.00516.69
7.3.140.0140.00416.68
7.3.130.0130.00416.70
7.3.120.0130.00516.70
7.3.110.0140.00416.63
7.3.100.0130.00516.62
7.3.90.0130.00516.91
7.3.80.0130.00516.69
7.3.70.0140.00416.73
7.3.60.0130.00516.79
7.3.50.0130.00516.77
7.3.40.0120.00516.79
7.3.30.0130.00516.78
7.3.20.0140.00518.04
7.3.10.0150.00417.97
7.3.00.0150.00417.98

preferences:
40.7 ms | 403 KiB | 5 Q