3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AccessBroker { public function login(string $username, string $password): void { // Pretend that we're attempting to log the user in, but something throws an exception. throw new \Exception('Oops, something went wrong!'); } } (new AccessBroker)->login('chris', 'secret password');

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.1.60.0080.00017.41
8.1.50.0050.00317.46
8.1.40.0040.00417.45
8.1.30.0070.00417.54
8.1.20.0050.00317.48
8.1.10.0000.00817.50
8.1.00.0070.00017.38
8.0.190.0030.00516.88
8.0.180.0040.00416.93
8.0.170.0040.00416.94
8.0.160.0110.00016.91
8.0.150.0070.00016.89
8.0.140.0120.00016.77
8.0.130.0190.00016.86
8.0.120.0140.00616.85
8.0.110.0120.00616.85
8.0.100.0140.00616.91
8.0.90.0130.00517.00
8.0.80.0130.00516.98
8.0.70.0220.00016.81
8.0.60.0060.01216.91
8.0.50.0090.01016.93
8.0.30.0150.00416.82
8.0.20.0090.00916.99
8.0.10.0100.01017.00
8.0.00.0080.00617.04
7.4.290.0000.00816.39
7.4.280.0040.00416.58
7.4.270.0050.00316.37
7.4.260.0170.00416.44
7.4.250.0170.00516.34
7.4.240.0220.00016.58
7.4.230.0140.00516.35
7.4.220.0110.00616.54
7.4.210.0120.00616.54
7.4.200.0210.00016.50
7.4.190.0110.00716.48
7.4.180.0110.00716.55
7.4.160.0160.00316.33
7.4.150.0120.00616.38
7.4.140.0090.00916.35
7.4.130.0150.00316.31
7.4.120.0110.00716.30
7.4.110.0150.00316.30
7.4.100.0120.00616.53
7.4.90.0100.00716.46
7.4.80.0120.00616.38
7.4.70.0150.00416.38
7.4.60.0130.00716.37
7.4.50.0130.00416.17
7.4.40.0140.00516.29
7.4.30.0140.00316.26
7.4.20.0140.00316.45
7.4.10.0120.00416.38
7.4.00.0050.01416.27
7.3.330.0150.00316.17
7.3.320.0160.00316.23
7.3.310.0190.00016.43
7.3.300.0140.00416.41
7.3.290.0090.00916.19
7.3.280.0140.00516.21
7.3.270.0120.00616.34
7.3.260.0140.00616.40
7.3.250.0190.00016.36
7.3.240.0140.00716.19
7.3.230.0150.00416.36
7.3.220.0150.00416.38
7.3.210.0110.00716.39
7.3.200.0190.00016.36
7.3.190.0120.00616.39
7.3.180.0140.00516.20
7.3.170.0120.00616.17
7.3.160.0190.00016.23
7.3.150.0090.00916.14
7.3.140.0150.00316.43
7.3.130.0170.00316.38
7.3.120.0120.00416.18
7.3.110.0120.00616.04
7.3.100.0000.01116.07
7.3.90.0080.00516.33
7.3.80.0090.00516.30
7.3.70.0030.01016.19
7.3.60.0130.00316.45
7.3.50.0040.00716.18
7.3.40.0090.00316.41
7.3.30.0090.00316.38
7.3.20.0130.00018.17
7.3.10.0050.00818.12
7.3.00.0130.00318.01

preferences:
133 ms | 406 KiB | 5 Q