3v4l.org

run code in 500+ PHP versions simultaneously
<?php $userscoreA = 80; $userscoreB = 70; function judgescore(int $score): string{ if ($score >= 80) { $result = "{$score}点は合格です"; } else { $result = "{$score}点は不合格です"; } return $result; } echo judgescore($userscoreA) echo judgescore($userscoreB)

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.100.0030.00516.89
8.5.90.0070.00516.72
8.5.80.0060.00317.02
8.5.70.0060.00816.77
8.5.60.0140.00716.80
8.5.50.0070.00316.63
8.5.40.0140.00616.74
8.5.30.0090.00316.73
8.5.20.0060.00416.47
8.5.10.0150.00416.68
8.5.00.0100.00916.68
8.4.250.0140.00919.51
8.4.240.0150.00819.57
8.4.230.0110.00519.55
8.4.220.0070.00719.45
8.4.210.0130.00819.67
8.4.200.0150.00619.62
8.4.190.0080.00619.78
8.4.180.0100.01119.75
8.4.170.0090.00519.78
8.4.160.0060.00519.78
8.4.150.0060.00419.81
8.4.140.0070.00517.77
8.4.130.0080.01217.91
8.4.120.0100.00617.84
8.4.110.0110.00617.91
8.4.100.0050.00418.04
8.4.90.0080.01117.83
8.4.80.0060.00417.97
8.4.70.0100.01017.97
8.4.60.0040.00618.02
8.4.50.0120.00617.75
8.4.40.0070.00417.79
8.4.30.0100.00717.85
8.4.20.0060.00617.89
8.4.10.0030.00817.66
8.3.330.0060.00618.35
8.3.320.0090.00518.29
8.3.310.0090.00418.42
8.3.300.0150.00518.20
8.3.290.0130.00618.37
8.3.280.0140.00618.51
8.3.270.0060.00816.70
8.3.260.0160.00516.74
8.3.250.0110.00616.63
8.3.240.0070.00616.79
8.3.230.0140.00516.88
8.3.220.0110.00916.88
8.3.210.0130.00816.75
8.3.200.0100.00916.71
8.3.190.0120.00616.81
8.3.180.0100.00816.79
8.3.170.0070.00816.74
8.3.160.0110.00816.80
8.3.150.0120.00916.47
8.3.140.0120.00616.80
8.3.130.0120.00616.80
8.3.120.0100.01116.75
8.3.110.0140.00316.79
8.3.100.0090.00616.76
8.3.90.0090.00816.80
8.3.80.0070.00616.81
8.3.70.0080.00616.59
8.3.60.0090.00816.91
8.3.50.0060.00716.79
8.3.40.0100.00417.80
8.3.30.0130.00818.10
8.3.20.0110.00818.03
8.3.10.0080.00218.03
8.3.00.0100.00917.91
8.2.330.0110.00618.12
8.2.320.0090.00918.13
8.2.310.0120.00618.08

preferences:
49.85 ms | 793 KiB | 4 Q