3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(?int $foo, int $bar): void { if ( $foo && $foo !== 1 || !$foo && $bar ) { return; } if ($foo === null) { echo "Not redundant!"; } } foo(null, 0);

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.120.0060.00320.56
8.3.110.0060.00318.25
8.3.100.0090.00016.52
8.3.90.0090.00026.77
8.3.80.0000.00916.50
8.3.70.0070.00716.58
8.3.60.0120.00618.31
8.3.50.0100.01020.03
8.3.40.0060.01219.09
8.3.30.0030.01019.39
8.3.20.0000.00724.18
8.3.10.0050.00224.66
8.3.00.0070.00026.16
8.2.240.0110.00717.09
8.2.230.0030.00620.94
8.2.220.0000.00724.06
8.2.210.0100.00326.77
8.2.200.0060.00316.63
8.2.190.0070.01416.58
8.2.180.0220.00025.92
8.2.170.0120.00318.79
8.2.160.0140.00422.96
8.2.150.0000.00725.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0000.00920.35
8.2.100.0040.00717.59
8.2.90.0050.00317.63
8.2.80.0030.00518.72
8.2.70.0030.00517.63
8.2.60.0030.00517.63
8.2.50.0040.00417.98
8.2.40.0000.00718.22
8.2.30.0040.00418.09
8.2.20.0040.00420.47
8.2.10.0040.00417.91
8.2.00.0080.00319.05
8.1.300.0040.00415.90
8.1.290.0080.00430.84
8.1.280.0040.01125.92
8.1.270.0060.00323.86
8.1.260.0080.00026.35
8.1.250.0000.00928.09
8.1.240.0080.00022.10
8.1.230.0070.00417.70
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.00
8.1.190.0000.00817.22
8.1.180.0070.00218.10
8.1.170.0040.00417.62
8.1.160.0060.00318.75
8.1.150.0040.00418.56
8.1.140.0000.00717.47
8.1.130.0030.00318.79
8.1.120.0040.00417.38
8.1.110.0080.00017.36
8.1.100.0040.00417.36
8.1.90.0000.00717.27
8.1.80.0050.00317.38
8.1.70.0030.00317.28
8.1.60.0060.00317.52
8.1.50.0030.00617.40
8.1.40.0000.00817.35
8.1.30.0070.00417.58
8.1.20.0040.00417.43
8.1.10.0030.00617.29
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0000.00718.43
8.0.270.0050.00316.74
8.0.260.0030.00318.38
8.0.250.0070.00016.76
8.0.240.0050.00316.88
8.0.230.0080.00016.85
8.0.220.0000.00716.71
8.0.210.0040.00416.81
8.0.200.0000.00816.86
8.0.190.0030.00516.89
8.0.180.0000.00716.89
8.0.170.0050.00316.90
8.0.160.0000.00716.64
8.0.150.0000.00716.77
8.0.140.0040.00416.74
8.0.130.0000.00716.83
8.0.120.0000.00716.80
8.0.110.0050.00316.67
8.0.100.0070.00416.68
8.0.90.0000.01016.86
8.0.80.0070.00316.83
8.0.70.0030.00616.84
8.0.60.0070.00316.71
8.0.50.0100.00016.79
8.0.30.0060.00316.73
8.0.20.0030.00716.90
8.0.10.0030.00617.00
7.4.330.0070.00015.55
7.4.320.0030.00316.52
7.4.300.0030.00316.48
7.4.290.0080.00316.44
7.4.280.0030.00716.40
7.4.270.0090.00016.38
7.4.260.0040.00416.32
7.4.250.0100.00316.13
7.4.240.0130.00316.13
7.4.230.0180.00015.97
7.4.220.0160.00016.14
7.4.210.0110.00716.16
7.4.200.0180.00015.82
7.4.190.0140.00015.89
7.4.180.0140.00316.24
7.4.160.0110.00716.03
7.4.150.0180.00016.05
7.4.140.0100.00515.71
7.4.130.0150.00015.98
7.4.120.0130.00515.85
7.4.110.0080.00816.09
7.4.100.0160.00316.01
7.4.90.0060.01116.16
7.4.80.0080.00815.89
7.4.70.0120.00016.27
7.4.60.0080.00415.79
7.4.50.0030.00316.14
7.4.40.0030.00516.17
7.4.30.0000.01116.01
7.4.20.0000.01016.00
7.4.10.0110.00015.91
7.4.00.0070.00215.93

preferences:
28.88 ms | 403 KiB | 5 Q