3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(): null { $a = 42; } var_dump(foo());

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.4.120.0050.00420.46
8.4.110.0130.00722.27
8.4.100.0140.00717.82
8.4.90.0060.00320.55
8.4.80.0090.01117.97
8.4.70.0140.00517.76
8.4.60.0130.00818.86
8.4.50.0110.01020.51
8.4.40.0120.00319.81
8.4.30.0100.00618.43
8.4.20.0130.00618.97
8.4.10.0050.00320.23
8.3.250.0100.00718.93
8.3.240.0130.00518.68
8.3.230.0120.00616.35
8.3.220.0110.00817.12
8.3.210.0140.00418.43
8.3.200.0050.00416.52
8.3.190.0140.00516.95
8.3.180.0120.00916.91
8.3.170.0060.01217.02
8.3.160.0120.00616.82
8.3.150.0040.01516.61
8.3.140.0080.00017.12
8.3.130.0090.00018.57
8.3.120.0050.00518.39
8.3.110.0000.01518.34
8.3.50.0040.01118.26
8.2.290.0120.00820.50
8.2.280.0110.00818.41
8.2.270.0030.00617.24
8.2.260.0060.00316.75
8.2.250.0030.00516.84
8.2.240.0060.00318.34
8.2.230.0060.00316.73
8.2.220.0040.00416.75
8.1.330.0100.00921.86
8.1.320.0140.00615.96
8.1.310.0060.00318.20
8.1.300.0070.01117.59
8.1.80.0070.00217.27
8.0.70.0070.00716.72
8.0.60.0070.00716.75
8.0.50.0000.01516.73
8.0.30.0100.00716.74
8.0.20.0070.00716.85
8.0.10.0030.01216.82
8.0.00.0040.01216.89
7.4.200.0070.00716.48
7.4.190.0100.00316.56
7.4.180.0030.01016.39
7.4.160.0030.01016.46
7.4.150.0100.00316.26
7.4.140.0000.01316.35
7.4.130.0030.01016.25
7.4.120.0160.00016.22
7.4.110.0120.00416.22
7.4.100.0030.01716.40
7.4.90.0040.01216.28
7.4.80.0070.01016.30
7.4.70.0030.01016.18
7.4.60.0030.01116.15
7.4.50.0090.00616.16
7.4.40.0060.00616.26
7.4.30.0040.00816.38
7.4.20.0030.00916.28
7.4.10.0100.00616.32
7.4.00.0070.00716.36
7.3.280.0030.01016.21
7.3.270.0060.00616.22
7.3.260.0090.00416.21
7.3.250.0100.00316.29
7.3.240.0120.00616.22
7.3.230.0120.00316.16
7.3.220.0030.01216.12
7.3.210.0070.01016.20
7.3.200.0130.00016.23
7.3.190.0070.01116.21
7.3.180.0070.01016.17
7.3.170.0040.01116.12
7.3.160.0040.01116.16
7.3.150.0120.00016.20
7.3.140.0090.00616.14
7.3.130.0060.00716.14
7.3.120.0100.00316.18
7.3.110.0070.00716.05
7.3.100.0070.00716.09
7.3.90.0030.01016.48
7.3.80.0080.00616.19
7.3.70.0030.01016.19
7.3.60.0060.00616.34
7.3.50.0030.00916.21
7.3.40.0030.01016.35
7.3.30.0000.01316.32
7.3.20.0030.01016.33
7.3.10.0070.00616.18
7.3.00.0130.00016.27

preferences:
27.1 ms | 403 KiB | 5 Q