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.3.60.0030.01218.53
8.3.50.0110.00618.03
8.3.40.0100.01018.64
8.3.30.0070.00718.70
8.3.20.0070.00024.18
8.3.10.0060.00324.66
8.3.00.0000.00726.16
8.2.180.0090.01325.92
8.2.170.0070.01018.72
8.2.160.0030.01422.96
8.2.150.0080.00025.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0060.00319.41
8.2.110.0060.00322.32
8.2.100.0090.00317.78
8.2.90.0060.00317.84
8.2.80.0030.00619.26
8.2.70.0000.00817.90
8.2.60.0060.00317.80
8.2.50.0070.00018.10
8.2.40.0040.00420.42
8.2.30.0000.00921.09
8.2.20.0030.00622.41
8.2.10.0040.00417.71
8.2.00.0040.00419.11
8.1.280.0060.00925.92
8.1.270.0080.00023.99
8.1.260.0110.00426.35
8.1.250.0040.00428.09
8.1.240.0070.01423.97
8.1.230.0070.00420.99
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0040.00417.35
8.1.190.0050.00317.23
8.1.180.0000.00718.10
8.1.170.0000.00818.71
8.1.160.0050.00318.79
8.1.150.0000.00718.58
8.1.140.0040.00417.38
8.1.130.0040.00418.76
8.1.120.0030.00517.27
8.1.110.0030.00517.30
8.1.100.0050.00217.32
8.1.90.0050.00217.29
8.1.80.0030.00717.28
8.1.70.0000.00717.38
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.300.0030.00620.07
8.0.290.0060.00316.75
8.0.280.0070.00018.36
8.0.270.0070.00016.78
8.0.260.0030.00318.29
8.0.250.0000.00716.99
8.0.240.0080.00017.00
8.0.230.0070.00016.82
8.0.220.0070.00016.76
8.0.210.0000.00716.78
8.0.200.0000.00617.01
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.330.0000.00415.55
7.4.320.0000.00616.38
7.4.300.0050.00216.55
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:
73.87 ms | 401 KiB | 5 Q