3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(?bool $bar) { } foo(true); foo(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.3.140.0150.00020.46
8.3.130.0060.00318.27
8.3.120.0110.00418.89
8.3.110.0000.00816.62
8.3.100.0000.01016.39
8.3.90.0030.00518.40
8.3.80.0100.00017.97
8.3.70.0070.00716.63
8.3.60.0180.00318.40
8.3.50.0090.00917.35
8.3.40.0160.00318.53
8.3.30.0130.00618.61
8.3.20.0070.00021.78
8.3.10.0030.00521.72
8.3.00.0040.00423.71
8.2.250.0050.00318.45
8.2.240.0030.00616.85
8.2.230.0070.01020.94
8.2.220.0160.00324.06
8.2.210.0000.00826.77
8.2.200.0040.00416.63
8.2.190.0070.01416.58
8.2.180.0140.00416.38
8.2.170.0090.00618.59
8.2.160.0070.00722.96
8.2.150.0030.00524.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00720.98
8.2.110.0040.01820.97
8.2.100.0060.00617.66
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0000.00817.38
8.2.60.0080.00017.80
8.2.50.0090.00417.92
8.2.40.0060.00618.66
8.2.30.0070.00618.23
8.2.20.0050.00317.89
8.2.10.0080.00618.33
8.2.00.0090.00618.34
8.1.300.0030.00518.06
8.1.290.0050.00518.88
8.1.280.0140.00725.92
8.1.270.0060.00924.04
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0070.00323.97
8.1.230.0060.00618.64
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0100.00017.23
8.1.190.0030.00616.98
8.1.180.0040.00418.10
8.1.170.0050.00419.09
8.1.160.0070.00618.77
8.1.150.0090.00618.08
8.1.140.0080.00418.36
8.1.130.0110.00217.89
8.1.120.0110.00218.03
8.1.110.0110.00418.04
8.1.100.0100.00417.82
8.1.90.0110.00417.81
8.1.80.0110.00417.79
8.1.70.0100.00517.83
8.1.60.0120.00517.93
8.1.50.0110.00517.87
8.1.40.0110.00617.88
8.1.30.0140.00317.94
8.1.20.0110.00617.96
8.1.10.0110.00617.85
8.1.00.0100.00617.79
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0080.00517.98
8.0.270.0060.00917.82
8.0.260.0080.00617.56
8.0.250.0070.00517.64
8.0.240.0080.00517.66
8.0.230.0100.00317.39
8.0.220.0090.00517.33
8.0.210.0100.00417.32
8.0.200.0090.00617.42
8.0.190.0090.00517.41
8.0.180.0100.00417.37
8.0.170.0090.00417.33
8.0.160.0090.00617.36
8.0.150.0110.00317.34
8.0.140.0090.00617.32
8.0.130.0120.00316.86
8.0.120.0120.00317.35
8.0.110.0080.00617.34
8.0.100.0090.00517.34
8.0.90.0090.00517.34
8.0.80.0070.00717.36
8.0.70.0080.00817.33
8.0.60.0120.00517.33
8.0.50.0120.00417.30
8.0.30.0110.00617.33
8.0.20.0090.00717.28
8.0.10.0100.00517.47
8.0.00.0090.00717.14
7.4.330.0080.00216.36
7.4.320.0090.00417.38
7.4.300.0100.00317.16
7.4.290.0090.00417.40
7.4.280.0110.00517.20
7.4.270.0100.00517.15
7.4.260.0090.00517.19
7.4.250.0070.00717.16
7.4.240.0080.00517.05
7.4.230.0080.00717.16
7.4.220.0080.00517.13
7.4.210.0090.00417.03
7.4.200.0110.00417.11
7.4.190.0100.00417.18
7.4.180.0100.00517.12
7.4.160.0090.00616.88
7.4.150.0080.00617.15
7.4.140.0100.00417.21
7.4.130.0100.00416.93
7.4.120.0110.00317.02
7.4.110.0110.00516.90
7.4.100.0100.00616.99
7.4.90.0100.00616.96
7.4.80.0100.00617.35
7.4.70.0060.00817.00
7.4.60.0090.00516.99
7.4.50.0110.00416.91
7.4.40.0090.00516.87
7.4.30.0070.00716.94
7.4.20.0080.00616.91
7.4.10.0080.00716.95
7.4.00.0080.00616.52
7.3.330.0070.00616.43
7.3.320.0100.00416.56
7.3.310.0120.00217.01
7.3.300.0080.00617.04
7.3.290.0090.00416.99
7.3.280.0080.00816.82
7.3.270.0120.00317.01
7.3.260.0100.00816.69
7.3.250.0080.00717.01
7.3.240.0100.00616.73
7.3.230.0100.00516.97
7.3.220.0110.00516.92
7.3.210.0110.00516.89
7.3.200.0110.00516.90
7.3.190.0130.00316.88
7.3.180.0090.00716.87
7.3.170.0120.00416.84
7.3.160.0110.00516.81
7.3.150.0100.00516.81
7.3.140.0100.00516.86
7.3.130.0110.00616.81
7.3.120.0100.00616.56
7.3.110.0120.00416.58
7.3.100.0110.00516.63
7.3.90.0100.00616.37
7.3.80.0100.00516.21
7.3.70.0100.00516.32
7.3.60.0090.00616.06
7.3.50.0080.00716.09
7.3.40.0110.00416.06
7.3.30.0090.00616.06
7.3.20.0110.00616.99
7.3.10.0110.00616.92
7.3.00.0100.00616.96
7.2.340.0120.00516.94
7.2.330.0110.00716.85
7.2.320.0100.00716.87
7.2.310.0120.00616.95
7.2.300.0100.00716.87
7.2.290.0120.00516.83
7.2.280.0090.00716.84
7.2.270.0100.00716.88
7.2.260.0120.00616.83
7.2.250.0110.00516.60
7.2.240.0120.00416.63
7.2.230.0100.00716.64
7.2.220.0100.00616.27
7.2.210.0100.00616.29
7.2.200.0110.00716.42
7.2.190.0110.00616.05
7.2.180.0100.00616.09
7.2.170.0100.00616.15
7.2.160.0090.00616.15
7.2.150.0140.00517.01
7.2.140.0110.00717.02
7.2.130.0130.00517.04
7.2.120.0100.00717.03
7.2.110.0100.00617.03
7.2.100.0100.00717.03
7.2.90.0110.00617.07
7.2.80.0100.00617.11
7.2.70.0090.00817.01
7.2.60.0090.00717.07
7.2.50.0100.00717.03
7.2.40.0100.00717.08
7.2.30.0100.00717.05
7.2.20.0100.00617.10
7.2.10.0100.00617.07
7.2.00.0110.00517.04
7.1.330.0100.00716.79
7.1.320.0120.00516.23
7.1.310.0090.00616.25
7.1.300.0100.00616.09
7.1.290.0150.00415.97
7.1.280.0100.00616.08
7.1.270.0180.00716.08
7.1.260.0090.00616.13
7.1.250.0110.00516.04
7.1.240.0110.00516.75
7.1.230.0090.00616.72
7.1.220.0100.00716.78
7.1.210.0100.00516.78
7.1.200.0120.00316.75
7.1.190.0110.00516.75
7.1.180.0120.00516.75
7.1.170.0120.00616.73
7.1.160.0120.00616.73
7.1.150.0110.00516.74
7.1.140.0100.00616.75
7.1.130.0130.00316.74
7.1.120.0120.00516.77
7.1.110.0100.00516.74
7.1.100.0120.00516.70
7.1.90.0110.00516.76
7.1.80.0080.00816.77
7.1.70.0110.00616.71
7.1.60.0100.00516.76
7.1.50.0190.00416.77
7.1.40.0120.00416.74
7.1.30.0110.00516.79
7.1.20.0120.00616.75
7.1.10.0110.00416.75
7.1.00.0110.00516.74

preferences:
43.94 ms | 403 KiB | 5 Q