3v4l.org

run code in 500+ 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(140)); 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.80.0130.00417.08
8.5.70.0380.00416.70
8.5.60.0350.00916.73
8.5.50.0310.00816.72
8.5.40.0330.00916.62
8.5.30.0140.00816.57
8.5.20.0280.00716.94
8.5.10.0270.00916.36
8.5.00.0110.00416.82
8.4.230.0130.01019.38
8.4.220.0340.00819.60
8.4.210.0320.01419.64
8.4.200.0270.00819.32
8.4.190.0350.00819.50
8.4.180.0270.01419.66
8.4.170.0330.00919.62
8.4.160.0310.01119.57
8.4.150.0330.00919.47
8.4.140.0360.01017.53
8.4.130.0280.01017.71
8.4.120.0310.01217.61
8.4.110.0400.00417.76
8.4.100.0310.01117.98
8.4.90.0380.00717.71
8.4.80.0360.01117.59
8.4.70.0330.00717.72
8.4.60.0190.00417.83
8.4.50.0240.01417.80
8.4.40.0200.00417.70
8.4.30.0160.01017.57
8.4.20.0160.00517.76
8.4.10.0260.00417.90
8.3.320.0190.00318.29
8.3.310.0310.01218.18
8.3.300.0250.01318.06
8.3.290.0360.01118.09
8.3.280.0340.01218.06
8.3.270.0330.00516.61
8.3.260.0340.01016.75
8.3.250.0370.00916.86
8.3.240.0310.01216.75
8.3.230.0320.01116.60
8.3.220.0350.00816.59
8.3.210.0400.00716.52
8.3.200.0280.00716.45
8.3.190.0180.00816.44
8.3.180.0160.00516.61
8.3.170.0200.00216.55
8.3.160.0170.00516.76
8.3.150.0170.00616.70
8.3.140.0150.00516.79
8.3.130.0160.00516.61
8.3.120.0150.00316.83
8.3.110.0170.01016.70
8.3.100.0270.00716.73
8.3.90.0360.00816.42
8.3.80.0350.00716.67
8.3.70.0380.00616.59
8.3.60.0340.00816.48
8.3.50.0360.00916.66
8.3.40.0230.00817.75
8.3.30.0180.00417.53
8.3.20.0230.00217.75
8.3.10.0130.00617.84
8.3.00.0180.00817.80
8.2.320.0350.00617.85
8.2.310.0250.00917.64

preferences:
41.04 ms | 777 KiB | 5 Q