3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fooA(): true {} function fooB(): false {} function fooC(): null {} function fooD(): true|null {} function fooE(): false|null {} //function fooF(): false|true {} // Fatal error: Type contains both true and false, bool should be used instead function fooG(): ?true {} function fooH(): ?false {} //function fooI(): ?null {} // Fatal error: null cannot be marked as nullable

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.0100.00722.43
8.4.110.0070.00319.02
8.4.100.0120.00917.51
8.4.90.0030.00517.59
8.4.80.0070.00319.48
8.4.70.0110.00919.39
8.4.60.0100.00718.55
8.4.50.0140.00719.27
8.4.40.0060.00617.79
8.4.30.0070.01118.81
8.4.20.0120.00318.82
8.4.10.0120.00822.13
8.3.250.0040.00419.04
8.3.240.0060.00216.52
8.3.230.0050.00416.37
8.3.220.0110.00916.39
8.3.210.0090.00916.36
8.3.200.0040.00416.34
8.3.190.0050.00318.80
8.3.180.0120.00718.08
8.3.170.0000.00717.13
8.3.160.0120.00616.51
8.3.150.0100.01017.00
8.3.140.0060.01216.66
8.3.130.0070.01016.29
8.3.120.0080.00018.70
8.3.110.0030.00616.65
8.3.100.0130.00618.19
8.3.50.0090.00916.50
8.2.290.0070.00418.65
8.2.280.0090.00718.16
8.2.270.0110.00716.65
8.2.260.0140.00316.98
8.2.250.0070.00718.16
8.2.240.0080.00018.75
8.2.230.0050.00316.34
8.2.220.0080.00816.44
8.2.10.0120.00417.57
8.2.00.0080.00517.33
8.1.330.0130.00616.46
8.1.320.0080.01115.98
8.1.310.0090.00016.56
8.1.300.0030.00517.60
8.1.140.0000.00919.01
8.1.130.0110.00617.23
8.1.120.0120.00617.27
8.1.110.0120.00317.33
8.1.100.0120.00417.31
8.1.90.0080.00817.36
8.1.80.0130.00317.24
8.1.70.0100.00617.31
8.1.60.0130.00517.44
8.1.50.0100.00617.29
8.1.40.0100.00417.39
8.1.30.0110.00517.53
8.1.20.0130.00317.46
8.1.10.0120.00617.34
8.1.00.0130.00517.36
8.0.270.0170.00016.70
8.0.260.0070.01016.60
8.0.250.0050.01016.72
8.0.240.0000.01316.74
8.0.230.0110.00416.86
8.0.220.0130.00216.73
8.0.210.0090.00516.70
8.0.200.0150.00016.83
8.0.190.0120.00316.84
8.0.180.0100.00616.77
8.0.170.0090.00616.81
8.0.160.0070.00816.80
8.0.150.0080.00516.66
8.0.140.0060.00916.74
8.0.130.0100.00416.62
8.0.120.0050.01016.75
8.0.110.0100.00416.81
8.0.100.0130.00316.70
8.0.90.0070.00716.71
8.0.80.0070.00716.73
8.0.70.0060.00516.63
8.0.60.0070.00616.71
8.0.50.0060.00716.71
8.0.30.0060.00616.67
8.0.20.0060.00516.81
8.0.10.0110.00216.81
7.4.330.0130.00016.30
7.4.320.0130.00416.30
7.4.300.0120.00516.28
7.4.290.0070.00816.37
7.4.280.0150.00316.32
7.4.270.0080.00516.36
7.4.260.0140.00216.31
7.4.250.0140.00216.33
7.4.240.0080.00616.31
7.4.230.0120.00416.37
7.4.220.0090.00316.40
7.4.210.0080.00516.32
7.4.200.0070.00516.35
7.4.190.0100.00216.38
7.4.180.0080.00716.38
7.4.160.0100.00516.40
7.4.150.0120.00216.32
7.4.140.0120.00116.26
7.4.130.0100.00316.29
7.4.120.0090.00516.21
7.4.110.0110.00216.20
7.4.100.0090.00516.31
7.4.90.0120.00216.24
7.4.80.0100.00316.23
7.4.70.0070.00616.22
7.4.60.0110.00316.18
7.4.50.0090.00516.23
7.4.40.0100.00516.13
7.4.30.0090.00416.26
7.4.20.0040.00916.17
7.4.10.0050.00816.15
7.4.00.0080.00516.29

preferences:
52.91 ms | 403 KiB | 5 Q