3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function render(?string $test = null) { } } class Bar extends Foo { public function render(string $test = null) { } }

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.30.0140.00618.14
8.5.20.0100.00720.27
8.5.10.0120.00916.65
8.5.00.0110.01020.01
8.4.180.0140.00819.63
8.4.170.0150.00720.55
8.4.160.0110.01420.71
8.4.150.0070.00516.88
8.4.140.0180.01017.29
8.4.130.0110.00520.32
8.4.120.0120.00723.96
8.4.110.0140.00618.01
8.4.100.0150.00519.02
8.4.90.0100.01020.59
8.4.80.0050.00318.72
8.4.70.0060.00217.92
8.4.60.0080.01218.81
8.4.50.0110.00720.23
8.4.40.0130.00717.50
8.4.30.0350.00617.20
8.4.20.0240.00017.65
8.4.10.0400.00817.31
8.3.300.0110.00920.76
8.3.290.0040.00620.82
8.3.280.0140.00718.23
8.3.270.0140.00516.16
8.3.260.0080.00716.47
8.3.250.0120.00818.68
8.3.240.0090.00917.18
8.3.230.0130.00716.42
8.3.220.0080.00918.97
8.3.210.0030.00418.36
8.3.200.0060.00316.16
8.3.190.0120.00618.46
8.3.180.0110.00717.10
8.3.170.0050.00216.98
8.3.160.0300.01516.54
8.3.150.0400.00716.36
8.3.140.0380.01416.12
8.3.130.0330.01016.27
8.3.120.0250.01816.27
8.3.110.0280.00716.23
8.3.100.0200.00016.72
8.3.90.0170.01016.30
8.3.80.0370.00316.30
8.3.70.0210.00516.71
8.3.60.0230.01016.32
8.3.50.0340.00016.23
8.3.40.0220.00717.13
8.3.30.0300.00417.21
8.3.20.0310.01217.35
8.3.10.0320.01317.34
8.3.00.0370.00017.30
8.2.300.0050.00420.41
8.2.290.0130.00620.28
8.2.280.0080.01118.14
8.2.270.0260.01216.47
8.2.260.0210.01816.41
8.2.250.0320.00616.11
8.2.240.0360.00316.24
8.2.230.0370.00316.54
8.2.220.0320.00616.56
8.2.210.0190.01916.13
8.2.200.0320.00716.27
8.2.190.0310.00716.49
8.2.180.0310.00916.26
8.2.170.0360.00617.52
8.2.160.0380.00717.03
8.2.150.0270.01017.34
8.2.140.0280.00817.45
8.2.130.0310.00617.43
8.2.120.0150.00317.02
8.2.110.0170.00717.28
8.2.100.0310.00917.35
8.2.90.0270.01217.56
8.2.80.0330.00617.30
8.2.70.0300.00417.19
8.2.60.0300.01117.16
8.2.50.0250.01317.27
8.2.40.0320.00417.43
8.2.30.0300.01217.27
8.2.20.0280.00417.39
8.2.10.0230.00317.25
8.2.00.0310.00317.28
8.1.340.0130.00820.11
8.1.320.0120.00716.28

preferences:
43.03 ms | 843 KiB | 5 Q