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.30.0190.00818.58
8.5.20.0210.00818.09
8.5.10.0190.00716.94
8.5.00.0220.00917.77
8.4.180.0170.00619.70
8.4.170.0230.00921.81
8.4.160.0350.00819.57
8.4.150.0240.00617.61
8.4.140.0290.00917.60
8.4.130.0210.00817.92
8.4.120.0240.00718.14
8.4.110.0250.01017.93
8.4.100.0270.00717.76
8.4.90.0270.00818.41
8.4.80.0240.00718.07
8.4.70.0270.00917.98
8.4.60.0360.00717.95
8.4.50.0220.00718.42
8.4.40.0310.00717.73
8.4.30.0320.00817.71
8.4.20.0270.00817.81
8.4.10.0300.00817.64
8.3.300.0200.00818.15
8.3.290.0360.00918.16
8.3.280.0270.00818.22
8.3.270.0300.00816.50
8.3.260.0250.00616.71
8.3.250.0270.00716.64
8.3.240.0280.00616.63
8.3.230.0310.00916.59
8.3.220.0290.00817.05
8.3.210.0290.00916.94
8.3.200.0340.00716.64
8.3.190.0220.00716.77
8.3.180.0280.00716.64
8.3.170.0270.00617.08
8.3.160.0270.00616.74
8.3.150.0280.00816.78
8.3.140.0310.00816.82
8.3.130.0240.00716.59
8.3.120.0220.00716.85
8.3.110.0240.00817.12
8.3.100.0300.00717.23
8.3.90.0290.00717.78
8.3.80.0310.00717.35
8.3.70.0300.00717.37
8.3.60.0280.00717.72
8.3.50.0270.00517.81
8.3.40.0270.00718.40
8.3.30.0200.00618.74
8.3.20.0200.00719.20
8.3.10.0210.00619.25
8.3.00.0180.00619.70
8.2.300.0550.01017.89
8.2.290.0310.00816.53
8.2.280.0200.00716.50
8.2.270.0230.00616.59
8.2.260.0210.00716.53
8.2.250.0230.00616.50
8.2.240.0230.00616.48
8.2.230.0230.00717.04
8.2.220.0230.00617.88
8.2.210.0230.00717.18
8.2.200.0240.00617.31
8.2.190.0220.00717.36
8.2.180.0250.00618.04
8.2.170.0280.00518.42
8.2.160.0240.00818.92
8.2.150.0240.00619.27
8.2.140.0250.00719.19
8.2.130.0230.00719.59
8.2.120.0250.00719.39
8.2.110.0210.00719.86
8.2.100.0230.00519.22
8.2.90.0250.00619.39
8.2.80.0230.00719.19
8.2.70.0220.00625.98
8.2.60.0240.00619.08
8.2.50.0210.00619.06
8.2.40.0190.00719.00
8.2.30.0200.00718.98
8.2.20.0200.00618.98
8.2.10.0200.00719.02
8.2.00.0160.00718.89
8.1.340.0410.01017.51
8.1.330.0210.01016.13
8.1.320.0300.00816.17
8.1.310.0290.00616.29
8.1.300.0250.00716.33
8.1.290.0230.00817.61
8.1.280.0240.00717.82
8.1.270.0240.00719.11
8.1.260.0220.00719.50
8.1.250.0230.00719.54
8.1.240.0200.00919.22
8.1.230.0210.00719.22
8.1.220.0210.00719.08
8.1.210.0220.00819.06
8.1.200.0210.00718.94
8.1.190.0210.00518.83
8.1.180.0200.00618.89
8.1.170.0200.00518.96
8.1.160.0180.00718.91
8.1.150.0200.00518.93
8.1.140.0200.00618.78
8.1.130.0170.00518.68
8.1.120.0160.00518.61
8.1.110.0170.00518.48
8.1.100.0150.00518.37
8.1.90.0140.00618.29
8.1.80.0130.00618.13
8.1.70.0140.00618.12
8.1.60.0140.00618.26
8.1.50.0140.00618.16
8.1.40.0140.00518.14
8.1.30.0150.00618.10
8.1.20.0140.00618.11
8.1.10.0150.00518.00
8.1.00.0160.00517.92
8.0.300.0200.00718.72
8.0.290.0210.00618.63
8.0.280.0200.00518.51
8.0.270.0200.00618.44
8.0.260.0180.00618.26
8.0.250.0160.00518.19
8.0.240.0170.00518.09
8.0.230.0160.00618.07
8.0.220.0160.00617.84
8.0.210.0160.00517.77
8.0.200.0140.00617.77
8.0.190.0150.00517.75
8.0.180.0140.00517.66
8.0.170.0140.00517.63
8.0.160.0140.00517.55
8.0.150.0130.00617.47
8.0.140.0140.00517.42
8.0.130.0130.00517.21
8.0.120.0130.00517.26
8.0.110.0130.00517.24
8.0.100.0120.00517.18
8.0.90.0120.00517.20
8.0.80.0120.00517.21
8.0.70.0120.00517.20
8.0.60.0120.00517.20
8.0.50.0130.00517.20
8.0.30.0120.00517.20
8.0.20.0120.00517.25
8.0.10.0120.00517.26
8.0.00.0100.00517.35
7.4.330.0160.00517.89
7.4.320.0160.00517.71
7.4.300.0140.00517.42
7.4.290.0140.00517.36
7.4.280.0140.00517.21
7.4.270.0160.00417.13
7.4.260.0140.00517.07
7.4.250.0140.00516.94
7.4.240.0130.00516.90
7.4.230.0130.00516.88
7.4.220.0120.00516.90
7.4.210.0120.00516.85
7.4.200.0120.00416.86
7.4.190.0120.00416.93
7.4.180.0120.00516.94
7.4.160.0120.00416.94
7.4.150.0110.00516.87
7.4.140.0120.00516.80
7.4.130.0120.00516.79
7.4.120.0120.00516.81
7.4.110.0120.00516.74
7.4.100.0120.00516.87
7.4.90.0120.00516.79
7.4.80.0120.00516.78
7.4.70.0110.00516.78
7.4.60.0110.00516.79
7.4.50.0120.00516.68
7.4.40.0120.00416.69
7.4.30.0110.00516.72
7.4.20.0110.00516.74
7.4.10.0120.00516.72
7.4.00.0110.00516.76
7.3.330.0150.00516.95
7.3.320.0150.00516.81
7.3.310.0140.00516.75
7.3.300.0120.00516.74
7.3.290.0130.00416.74
7.3.280.0130.00516.73
7.3.270.0130.00416.74
7.3.260.0130.00416.73
7.3.250.0130.00516.74
7.3.240.0130.00516.71
7.3.230.0140.00516.70
7.3.220.0140.00416.66
7.3.210.0140.00516.68
7.3.200.0140.00516.68
7.3.190.0140.00416.70
7.3.180.0140.00516.69
7.3.170.0130.00516.68
7.3.160.0140.00516.67
7.3.150.0130.00516.68
7.3.140.0140.00416.67
7.3.130.0130.00416.69
7.3.120.0130.00516.69
7.3.110.0140.00416.63
7.3.100.0130.00516.61
7.3.90.0140.00516.91
7.3.80.0130.00516.68
7.3.70.0140.00416.72
7.3.60.0130.00516.79
7.3.50.0130.00516.77
7.3.40.0130.00516.78
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:
42.14 ms | 475 KiB | 5 Q