3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo(string $a = null) {} const A = null; function bar(string $a = A) {} foo(); // Deprecated bar(); // Fatal error ?>

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.5.60.0070.00716.95
8.5.50.0090.00918.71
8.5.30.0090.00818.03
8.5.20.0100.00819.30
8.5.10.0150.00716.63
8.5.00.0160.00720.06
8.4.210.0120.00719.66
8.4.180.0120.01121.86
8.4.170.0040.00720.50
8.4.160.0110.01023.63
8.4.150.0070.00516.88
8.4.140.0160.00417.70
8.4.130.0140.00618.02
8.4.120.0120.00420.23
8.4.110.0120.00722.45
8.4.100.0120.00717.92
8.4.90.0140.00918.01
8.4.80.0040.00418.08
8.4.70.0080.00917.90
8.4.60.0090.01420.34
8.4.50.0160.00618.27
8.4.40.0180.00517.43
8.4.30.0180.00417.70
8.4.20.0190.00317.72
8.4.10.0180.00517.55
8.3.300.0120.01120.79
8.3.290.0100.00620.73
8.3.280.0080.00416.27
8.3.270.0120.00716.74
8.3.260.0090.00316.97
8.3.250.0100.00919.09
8.3.240.0110.00816.79
8.3.230.0100.00616.52
8.3.220.0130.00617.32
8.3.210.0090.01016.75
8.3.200.0100.00516.85
8.3.190.0150.00417.03
8.3.180.0090.00417.93
8.3.170.0180.00316.32
8.3.160.0170.00416.53
8.3.150.0180.00416.39
8.3.140.0170.00417.56
8.3.130.0170.00316.54
8.3.120.0160.00416.64
8.3.110.0150.00416.74
8.3.100.0190.00416.45
8.3.90.0190.00416.62
8.3.80.0160.00516.62
8.3.70.0160.00516.37
8.3.60.0200.00316.46
8.3.50.0200.00316.54
8.3.40.0140.00517.41
8.3.30.0120.00617.34
8.3.20.0160.00317.22
8.3.10.0160.00617.27
8.3.00.0100.00418.30
8.2.300.0110.00922.14
8.2.290.0070.00920.21
8.2.280.0080.00518.59
8.2.270.0190.00516.56
8.2.260.0160.00416.81
8.2.250.0130.00516.67
8.2.240.0150.00317.13
8.2.230.0140.00416.47
8.2.220.0150.00416.68
8.2.210.0140.00317.24
8.2.200.0140.00316.31
8.2.190.0140.00516.58
8.2.180.0110.00516.64
8.2.170.0170.00417.44
8.2.160.0140.00417.48
8.2.150.0120.00717.45
8.2.140.0130.00617.26
8.2.130.0120.00717.11
8.2.120.0130.00617.44
8.2.110.0150.00617.45
8.2.100.0150.00417.54
8.2.90.0170.00217.42
8.2.80.0150.00417.42
8.2.70.0160.00317.34
8.2.60.0140.00517.29
8.2.50.0150.00617.98
8.2.40.0140.00417.24
8.2.30.0150.00517.40
8.2.20.0150.00317.45
8.2.10.0140.00317.49
8.2.00.0150.00417.34
8.1.340.0140.00617.64
8.1.320.0100.01116.42

preferences:
40.16 ms | 876 KiB | 5 Q