3v4l.org

run code in 300+ PHP versions simultaneously
<?php function takesAString(string $foo) { } takesAString(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.00.0120.01019.79
8.4.150.0020.00014.05
8.4.140.0060.00317.75
8.4.130.0060.00618.02
8.4.120.0050.00322.16
8.4.110.0120.01118.75
8.4.100.0070.00518.00
8.4.90.0080.00118.07
8.4.80.0090.01318.00
8.4.70.0130.00617.82
8.4.60.0130.00818.48
8.4.50.0090.01018.50
8.4.40.0130.01019.35
8.4.30.0160.00318.61
8.4.20.0090.00019.73
8.4.10.0050.00522.12
8.3.280.0030.00014.05
8.3.270.0110.00516.55
8.3.260.0080.00716.53
8.3.250.0110.00618.64
8.3.240.0100.01016.72
8.3.230.0120.00716.71
8.3.220.0050.00217.04
8.3.210.0100.00818.46
8.3.200.0030.00516.66
8.3.190.0100.00918.90
8.3.180.0140.00518.20
8.3.170.0090.00917.12
8.3.160.0130.00618.72
8.3.150.0040.01516.55
8.3.140.0050.00318.98
8.3.130.0050.00318.52
8.3.120.0090.00020.90
8.3.110.0030.00620.94
8.3.100.0130.00316.63
8.3.90.0040.00426.77
8.3.80.0060.00318.30
8.3.70.0120.00316.46
8.3.60.0040.01118.43
8.3.50.0030.01118.66
8.3.40.0060.01220.33
8.3.30.0130.00618.84
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0030.00626.16
8.2.290.0140.00618.87
8.2.280.0160.00218.29
8.2.270.0110.00717.25
8.2.260.0140.00318.21
8.2.250.0030.00618.50
8.2.240.0160.00318.65
8.2.230.0090.00022.58
8.2.220.0040.00424.06
8.2.210.0050.00226.77
8.2.200.0060.00318.66
8.2.190.0000.01416.63
8.2.180.0070.00716.75
8.2.170.0070.01418.57
8.2.160.0110.01122.96
8.2.150.0080.00825.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0050.00226.16
8.2.110.0060.00322.18
8.2.100.0110.00021.04
8.2.90.0110.00619.43
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0050.00517.79
8.2.50.0050.00518.07
8.2.40.0070.00018.22
8.2.30.0040.00417.90
8.2.20.0000.01017.73
8.2.10.0100.00517.55
8.2.00.0100.00617.72
8.1.330.0100.00916.38
8.1.320.0130.00716.25
8.1.310.0150.00418.55
8.1.300.0050.00317.77
8.1.290.0090.00030.84
8.1.280.0140.00325.92
8.1.270.0090.00924.66
8.1.260.0020.00526.35
8.1.250.0080.00028.09
8.1.240.0030.00723.80
8.1.230.0030.00718.95
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.23
8.1.190.0030.00517.09
8.1.180.0040.00418.10
8.1.170.0060.00318.51
8.1.160.0000.00817.32
8.1.150.0150.00417.28
8.1.140.0100.00717.35
8.1.130.0100.00717.30
8.1.120.0100.00717.37
8.1.110.0080.00817.43
8.1.100.0100.00617.25
8.1.90.0130.00417.29
8.1.80.0100.00717.24
8.1.70.0120.00717.28
8.1.60.0050.01417.63
8.1.50.0090.00917.50
8.1.40.0120.00817.47
8.1.30.0140.00917.52
8.1.20.0160.00417.58
8.1.10.0180.00017.51
8.1.00.0070.01117.43
8.0.300.0040.00418.77
8.0.290.0000.00716.74
8.0.280.0100.00416.82
8.0.270.0150.00016.75
8.0.260.0070.00716.82
8.0.250.0090.00616.80
8.0.240.0100.00516.85
8.0.230.0050.00916.78
8.0.220.0070.00716.78
8.0.210.0120.00016.81
8.0.200.0120.00316.86
8.0.190.0120.00416.81
8.0.180.0070.00716.85
8.0.170.0120.00416.91
8.0.160.0120.00416.88
8.0.150.0110.00316.70
8.0.140.0100.00716.79
8.0.130.0130.00216.78
8.0.120.0080.00816.69
8.0.110.0080.00816.80
8.0.100.0100.00616.89
8.0.90.0150.00016.78
8.0.80.0060.00616.76
8.0.70.0030.01016.84
8.0.60.0070.00716.79
8.0.50.0090.00316.79
8.0.30.0040.00716.83
8.0.20.0140.00016.92
8.0.10.0060.00816.92
5.6.400.0020.00515.56
5.3.290.0050.00315.56
5.0.50.0020.00315.56
5.0.00.0050.00015.56
4.4.90.0000.00315.56

preferences:
37.47 ms | 403 KiB | 5 Q