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.4.20.0070.00320.88
8.4.10.0230.00817.96
8.3.150.0060.01219.16
8.3.140.0220.01117.87
8.3.130.0200.00716.59
8.3.120.0210.00717.14
8.3.110.0240.00817.82
8.3.100.0290.00718.21
8.3.90.0270.00719.21
8.3.80.0310.00618.30
8.3.70.0280.00818.23
8.3.60.0260.00718.77
8.3.50.0240.00518.90
8.3.40.0240.00719.30
8.3.30.0190.00719.74
8.3.20.0200.00620.45
8.3.10.0190.00620.53
8.3.00.0170.00621.17
8.2.260.0190.00516.79
8.2.250.0200.00716.55
8.2.240.0220.00716.51
8.2.230.0210.00617.87
8.2.220.0210.00619.90
8.2.210.0230.00918.10
8.2.200.0210.00618.28
8.2.190.0200.00618.18
8.2.180.0230.00619.37
8.2.170.0260.00419.36
8.2.160.0220.00820.05
8.2.150.0220.00520.60
8.2.140.0220.00720.50
8.2.130.0220.00721.04
8.2.120.0220.00720.69
8.2.110.0190.00720.95
8.2.100.0210.00620.12
8.2.90.0230.00520.52
8.2.80.0200.00620.21
8.2.70.0180.00629.98
8.2.60.0210.00620.00
8.2.50.0190.00619.91
8.2.40.0160.00619.74
8.2.30.0170.00619.73
8.2.20.0170.00619.79
8.2.10.0170.00619.81
8.2.00.0130.00619.40
8.1.310.0120.00416.79
8.1.300.0190.00816.64
8.1.290.0200.00719.27
8.1.280.0220.00719.25
8.1.270.0220.00620.42
8.1.260.0180.00721.00
8.1.250.0210.00521.10
8.1.240.0170.00820.51
8.1.230.0190.00620.42
8.1.220.0180.00720.19
8.1.210.0200.00620.25
8.1.200.0180.00719.95
8.1.190.0190.00519.78
8.1.180.0180.00419.86
8.1.170.0170.00419.90
8.1.160.0150.00619.73
8.1.150.0180.00419.79
8.1.140.0170.00519.60
8.1.130.0130.00419.15
8.1.120.0140.00419.04
8.1.110.0140.00418.86
8.1.100.0130.00518.67
8.1.90.0120.00518.53
8.1.80.0110.00618.32
8.1.70.0120.00518.32
8.1.60.0130.00618.42
8.1.50.0130.00618.32
8.1.40.0130.00518.28
8.1.30.0140.00618.21
8.1.20.0130.00618.21
8.1.10.0140.00518.10
8.1.00.0150.00518.02
8.0.300.0180.00619.83
8.0.290.0180.00519.75
8.0.280.0180.00519.42
8.0.270.0170.00519.33
8.0.260.0150.00618.93
8.0.250.0140.00518.64
8.0.240.0150.00518.50
8.0.230.0140.00518.42
8.0.220.0140.00518.14
8.0.210.0140.00518.01
8.0.200.0130.00517.97
8.0.190.0130.00517.95
8.0.180.0120.00517.83
8.0.170.0120.00517.80
8.0.160.0120.00517.69
8.0.150.0120.00617.61
8.0.140.0130.00517.53
8.0.130.0120.00517.29
8.0.120.0120.00517.35
8.0.110.0110.00517.31
8.0.100.0110.00517.24
8.0.90.0110.00517.26
8.0.80.0110.00517.27
8.0.70.0110.00517.27
8.0.60.0110.00517.26
8.0.50.0120.00417.27
8.0.30.0110.00517.26
8.0.20.0110.00517.32
8.0.10.0110.00517.32
8.0.00.0080.00517.41
7.4.330.0120.00418.37
7.4.320.0140.00418.14
7.4.300.0120.00517.64
7.4.290.0120.00517.53
7.4.280.0130.00517.34
7.4.270.0140.00417.24
7.4.260.0130.00517.17
7.4.250.0130.00517.02
7.4.240.0120.00516.97
7.4.230.0120.00516.95
7.4.220.0100.00516.97
7.4.210.0110.00416.92
7.4.200.0110.00416.93
7.4.190.0110.00417.00
7.4.180.0110.00417.00
7.4.160.0110.00417.01
7.4.150.0100.00516.93
7.4.140.0100.00516.87
7.4.130.0110.00516.86
7.4.120.0100.00516.87
7.4.110.0100.00516.80
7.4.100.0100.00416.94
7.4.90.0100.00516.86
7.4.80.0100.00516.84
7.4.70.0090.00516.84
7.4.60.0100.00516.85
7.4.50.0100.00416.74
7.4.40.0100.00416.75
7.4.30.0100.00416.79
7.4.20.0100.00516.81
7.4.10.0100.00516.79
7.4.00.0100.00416.84
7.3.330.0140.00417.05
7.3.320.0140.00516.89
7.3.310.0130.00416.82
7.3.300.0110.00516.80
7.3.290.0120.00416.80
7.3.280.0120.00516.81
7.3.270.0120.00416.80
7.3.260.0120.00416.79
7.3.250.0110.00516.80
7.3.240.0120.00516.77
7.3.230.0120.00516.77
7.3.220.0130.00416.73
7.3.210.0130.00416.74
7.3.200.0130.00416.75
7.3.190.0130.00416.76
7.3.180.0120.00516.75
7.3.170.0120.00516.73
7.3.160.0120.00516.73
7.3.150.0120.00516.75
7.3.140.0130.00416.73
7.3.130.0120.00416.75
7.3.120.0110.00516.75
7.3.110.0130.00416.69
7.3.100.0120.00516.67
7.3.90.0130.00416.97
7.3.80.0120.00516.74
7.3.70.0130.00416.79
7.3.60.0120.00516.85
7.3.50.0120.00416.83
7.3.40.0110.00516.84
7.3.30.0120.00516.84
7.3.20.0130.00418.07
7.3.10.0140.00418.00
7.3.00.0140.00418.01

preferences:
53.39 ms | 403 KiB | 5 Q