3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = true; function get(): string { return 'hello'; } //echo $foo ? get(); //echo "\n"; //echo $foo ? get(): null; echo $foo ?: get();

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.0140.00016.38
8.3.50.0100.00320.10
8.3.40.0100.00322.09
8.3.30.0040.01119.00
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.180.0090.00925.92
8.2.170.0060.00822.96
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00326.16
8.2.110.0190.00320.86
8.2.100.0110.00017.72
8.2.90.0040.00417.50
8.2.80.0040.00418.90
8.2.70.0080.00017.61
8.2.60.0050.00317.38
8.2.50.0000.00817.98
8.2.40.0070.00018.28
8.2.30.0040.00417.96
8.2.20.0050.00320.33
8.2.10.0000.00718.04
8.2.00.0040.00419.11
8.1.280.0040.01125.92
8.1.270.0040.01121.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00019.28
8.1.230.0040.00822.75
8.1.220.0030.00618.75
8.1.210.0060.00318.77
8.1.200.0080.00017.35
8.1.190.0040.00417.38
8.1.180.0060.00318.10
8.1.170.0060.00317.62
8.1.160.0070.00018.88
8.1.150.0070.00018.67
8.1.140.0000.00717.48
8.1.130.0000.00718.88
8.1.120.0030.00317.48
8.1.110.0030.00517.33
8.1.100.0000.00717.45
8.1.90.0040.00417.41
8.1.80.0000.00717.46
8.1.70.0000.00717.42
8.1.60.0110.00717.43
8.1.50.0050.00517.50
8.1.40.0080.00217.45
8.1.30.0030.00617.70
8.1.20.0030.00717.47
8.1.10.0140.00317.41
8.1.00.0100.00717.41
8.0.300.0050.00218.77
8.0.290.0000.00716.75
8.0.280.0000.00718.49
8.0.270.0030.00316.86
8.0.260.0080.00018.30
8.0.250.0000.00716.95
8.0.240.0060.00016.79
8.0.230.0040.00416.85
8.0.220.0070.00016.79
8.0.210.0000.00716.85
8.0.200.0030.00316.95
8.0.190.0120.00316.85
8.0.180.0070.00716.92
8.0.170.0130.00216.77
8.0.160.0120.00316.77
8.0.150.0150.00016.76
8.0.140.0070.00716.71
8.0.130.0090.00516.75
8.0.120.0070.00716.89
8.0.110.0090.00616.91
8.0.100.0090.00616.82
8.0.90.0050.01016.93
8.0.80.0090.00616.71
8.0.70.0100.00616.70
8.0.60.0100.00316.80
8.0.50.0100.00316.76
8.0.30.0090.00416.79
8.0.20.0170.00016.89
8.0.10.0030.01216.84
7.4.330.0060.00015.55
7.4.320.0030.00316.51
7.4.300.0060.00016.56
7.4.290.0160.00016.53
7.4.280.0110.00416.55
7.4.270.0120.00316.57
7.4.260.0140.00316.55
7.4.250.0120.00216.55
7.4.240.0140.00416.41
7.4.230.0150.00016.58
7.4.220.0050.00916.53
7.4.210.0150.00016.58
7.4.200.0000.01516.49
7.4.190.0120.00416.54
7.4.180.0070.00716.62
7.4.160.0040.01116.48
7.4.150.0100.00516.50
7.4.140.0100.00516.23
7.4.130.0110.00416.38
7.4.120.0120.00316.21
7.4.110.0070.00716.27
7.4.100.0110.00316.42
7.4.90.0000.00716.29
7.4.80.0080.00016.46
7.4.70.0060.00416.38
7.4.60.0040.00416.33
7.4.50.0040.00416.43
7.4.40.0030.00516.29
7.4.30.0000.00916.21
7.4.20.0050.00516.46
7.4.10.0130.00016.36
7.4.00.0050.00316.44

preferences:
27.06 ms | 401 KiB | 5 Q