3v4l.org

run code in 300+ PHP versions simultaneously
<?php function coalesce(&...$args) { foreach ($args as &$arg) { if (!empty($arg)) { return $arg; } } return $default; } echo coalesce($happy, false, 'boring', 'default');

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.0040.01118.56
8.3.50.0130.00622.11
8.3.40.0070.00718.82
8.3.30.0030.01418.90
8.3.20.0000.00820.29
8.3.10.0110.00721.54
8.3.00.0040.00417.77
8.2.180.0150.00016.34
8.2.170.0150.00018.89
8.2.160.0130.00022.96
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0080.00021.16
8.2.110.0080.00822.23
8.2.100.0000.00818.82
8.1.280.0210.00325.92
8.1.270.0000.00724.66
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00618.45
8.1.230.0060.00318.52
5.4.310.0100.05019.13
5.4.300.0130.05018.84
5.4.290.0230.04019.24
5.4.280.0170.03719.18
5.4.270.0200.04719.09
5.4.260.0170.04319.15
5.4.250.0170.03718.94
5.4.240.0100.04318.99
5.4.230.0200.03318.84
5.4.220.0130.04019.16
5.4.210.0230.03319.19
5.4.200.0170.03718.98
5.4.190.0330.03318.88
5.4.180.0170.03719.21
5.4.170.0270.04019.30
5.4.160.0200.03719.00
5.4.150.0130.05319.29
5.4.140.0170.03716.31
5.4.130.0270.03716.36
5.4.120.0170.03316.55
5.4.110.0200.03316.19
5.4.100.0130.04016.46
5.4.90.0100.04016.56
5.4.80.0200.03716.57
5.4.70.0270.02716.54
5.4.60.0230.02716.43
5.4.50.0200.04016.36
5.4.40.0230.06716.54
5.4.30.0170.03716.47
5.4.20.0200.03016.52
5.4.10.0200.03316.22
5.4.00.0200.05315.94
5.3.280.0230.04014.67
5.3.270.0200.07714.53
5.3.260.0270.06014.69
5.3.250.0330.05714.66
5.3.240.0170.05014.73
5.3.230.0300.06714.68
5.3.220.0130.06314.48
5.3.210.0230.06314.48
5.3.200.0230.06714.54
5.3.190.0170.03714.49
5.3.180.0270.06014.56
5.3.170.0270.04314.46
5.3.160.0230.07314.68
5.3.150.0170.04014.65
5.3.140.0130.04314.46
5.3.130.0200.04714.46
5.3.120.0230.03314.70
5.3.110.0200.05714.72
5.3.100.0230.08014.04
5.3.90.0270.07314.00
5.3.80.0230.06014.03
5.3.70.0200.06014.02
5.3.60.0230.03714.00
5.3.50.0270.06013.86
5.3.40.0300.06314.09
5.3.30.0200.04713.83
5.3.20.0230.03713.77
5.3.10.0270.03013.76
5.3.00.0230.06013.75
5.2.170.0170.03011.15
5.2.160.0200.04711.10
5.2.150.0230.04011.05
5.2.140.0170.06311.25
5.2.130.0230.03311.18
5.2.120.0170.06011.15
5.2.110.0170.03311.10
5.2.100.0230.05311.02
5.2.90.0200.03311.22
5.2.80.0130.03311.10
5.2.70.0230.05711.00
5.2.60.0130.04310.97
5.2.50.0170.04010.98
5.2.40.0170.05710.91
5.2.30.0130.06011.08
5.2.20.0230.05311.18
5.2.10.0130.03710.94
5.2.00.0200.02310.82
5.1.60.0100.0479.87
5.1.50.0130.0339.87
5.1.40.0100.0239.88
5.1.30.0170.02710.27
5.1.20.0200.04310.36
5.1.10.0170.05010.14
5.1.00.0100.0309.99
5.0.50.0100.0178.43
5.0.40.0030.0238.45
5.0.30.0130.0608.20
5.0.20.0030.0478.43
5.0.10.0070.0438.25
5.0.00.0100.0638.14
4.4.90.0030.0206.54
4.4.80.0070.0176.54
4.4.70.0070.0276.54
4.4.60.0070.0136.54
4.4.50.0100.0276.54
4.4.40.0100.0206.54
4.4.30.0070.0206.54
4.4.20.0070.0136.54
4.4.10.0030.0176.54
4.4.00.0100.0406.54
4.3.110.0100.0136.54
4.3.100.0030.0176.54
4.3.90.0030.0306.54
4.3.80.0030.0276.54
4.3.70.0070.0176.54
4.3.60.0070.0136.54
4.3.50.0100.0106.54
4.3.40.0070.0276.54
4.3.30.0030.0176.54
4.3.20.0000.0306.54
4.3.10.0000.0206.54
4.3.00.0200.0176.54

preferences:
35.25 ms | 401 KiB | 5 Q