3v4l.org

run code in 500+ PHP versions simultaneously
<?php function status(int $now) { return sprintf( '%d is %s', $now, match (true) { $now % 2 == 0 => 'even', default => 'odd' } ); } $now = time(); var_dump(status($now), status($now + 1));

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.80.0130.00417.39
8.1.70.0130.00317.33
8.1.60.0150.00417.45
8.1.50.0140.00517.43
8.1.40.0130.00517.50
8.1.30.0120.00617.58
8.1.20.0060.01217.56
8.1.10.0090.00717.39
8.1.00.0110.00617.42
8.0.210.0120.00216.81
8.0.200.0120.00316.86
8.0.190.0110.00416.85
8.0.180.0100.00516.82
8.0.170.0070.00816.84
8.0.160.0090.00716.81
8.0.150.0080.00716.79
8.0.140.0080.00616.79
8.0.130.0100.00416.81
8.0.120.0090.00516.85
8.0.110.0090.00516.82
8.0.100.0070.00616.77
8.0.90.0100.00416.73
8.0.80.0090.00416.81
8.0.70.0080.00416.81
8.0.60.0100.00216.81
8.0.50.0080.00716.78
8.0.30.0080.00516.75
8.0.20.0090.00516.83
8.0.10.0100.00416.94
7.4.300.0030.00416.37
7.4.290.0130.00316.31
7.4.280.0100.00616.34
7.4.270.0080.00516.33
7.4.260.0090.00316.32
7.4.250.0100.00516.34
7.4.240.0100.00516.26
7.4.230.0090.00516.32
7.4.220.0070.00516.33
7.4.210.0060.00416.34
7.4.200.0060.00516.33
7.4.190.0060.00516.44
7.4.180.0110.00316.39
7.4.160.0100.00416.38
7.4.150.0100.00316.35
7.4.140.0080.00516.21
7.4.130.0050.00716.19
7.4.120.0060.00816.21
7.4.110.0080.00316.17
7.4.100.0090.00116.36
7.4.90.0060.00316.20
7.4.80.0040.00516.23
7.4.70.0030.00516.14
7.4.60.0010.00716.15
7.4.50.0030.00415.90
7.4.40.0020.00716.14
7.4.30.0080.00416.12
7.4.20.0040.00416.16
7.4.10.0070.00416.08
7.4.00.0090.00116.23

preferences:
27.5 ms | 719 KiB | 5 Q