3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(): ?bool { return true; } function bar(): ?bool { return null; } foo(); bar();

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.20.0070.01319.54
8.4.10.0080.01219.31
8.3.150.0090.00916.99
8.3.140.0040.00416.70
8.3.130.0150.00016.69
8.3.120.0050.00318.95
8.3.110.0040.00420.94
8.3.100.0130.00716.61
8.3.90.0050.00326.77
8.3.80.0040.00419.36
8.3.70.0100.00516.42
8.3.60.0130.00616.38
8.3.50.0090.00517.34
8.3.40.0110.00718.54
8.3.30.0090.00618.48
8.3.20.0070.00021.65
8.3.10.0020.00523.27
8.3.00.0000.00819.54
8.2.270.0090.00916.64
8.2.260.0080.00017.00
8.2.250.0040.00418.30
8.2.240.0060.00319.09
8.2.230.0100.00322.58
8.2.220.0060.00324.06
8.2.210.0120.00326.77
8.2.200.0030.00618.88
8.2.190.0170.01016.37
8.2.180.0030.01418.04
8.2.170.0120.00918.50
8.2.160.0070.00722.96
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00426.35
8.2.110.0030.00721.00
8.2.100.0040.00819.33
8.2.90.0050.00317.52
8.2.80.0040.00417.97
8.2.70.0000.00817.93
8.2.60.0000.00817.25
8.2.50.0030.00517.55
8.2.40.0060.00319.05
8.2.30.0070.00019.23
8.2.20.0030.00618.03
8.2.10.0050.00217.83
8.2.00.0040.00417.93
8.1.310.0080.00016.24
8.1.300.0000.01115.95
8.1.290.0050.00530.84
8.1.280.0080.00625.92
8.1.270.0000.00822.54
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00723.76
8.1.230.0040.00722.74
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0100.00017.22
8.1.190.0040.00416.98
8.1.180.0050.00318.10
8.1.170.0030.00517.62
8.1.160.0040.00418.63
8.1.150.0040.00418.94
8.1.140.0040.00417.48
8.1.130.0030.00318.94
8.1.120.0000.00717.22
8.1.110.0070.00317.20
8.1.100.0090.00317.37
8.1.90.0060.00617.21
8.1.80.0050.00617.32
8.1.70.0090.00317.24
8.1.60.0090.00417.51
8.1.50.0040.00917.28
8.1.40.0060.00517.45
8.1.30.0060.00717.56
8.1.20.0050.00817.59
8.1.10.0130.00417.31
8.1.00.0140.00317.22
8.0.300.0070.00019.66
8.0.290.0030.00616.58
8.0.280.0070.00018.18
8.0.270.0070.00016.71
8.0.260.0030.00317.12
8.0.250.0000.00616.86
8.0.240.0030.00316.69
8.0.230.0070.00516.72
8.0.220.0080.00316.77
8.0.210.0060.00516.68
8.0.200.0030.00716.82
8.0.190.0080.00416.79
8.0.180.0080.00416.77
8.0.170.0100.00416.71
8.0.160.0070.00316.65
8.0.150.0060.00616.70
8.0.140.0060.00516.62
8.0.130.0110.00215.44
8.0.120.0070.00515.77
8.0.110.0110.00215.79
8.0.100.0070.00615.76
8.0.90.0100.00315.83
8.0.80.0060.00915.80
8.0.70.0090.00415.70
8.0.60.0100.00415.83
8.0.50.0100.00415.77
8.0.30.0100.00716.57
8.0.20.0100.00716.59
8.0.10.0120.00716.51
8.0.00.0080.00916.54
7.4.330.0000.00615.55
7.4.320.0000.00616.35
7.4.300.0140.00530.51
7.4.290.0090.00316.53
7.4.280.0100.00216.50
7.4.270.0090.00316.37
7.4.260.0120.00416.37
7.4.250.0100.00515.63
7.4.240.0080.00315.98
7.4.230.0070.00415.54
7.4.220.0060.00515.56
7.4.210.0060.00715.78
7.4.200.0070.00315.61
7.4.190.0060.00515.39
7.4.180.0070.00415.41
7.4.160.0100.00616.16
7.4.150.0090.00816.07
7.4.140.0110.00616.66
7.4.130.0110.00615.99
7.4.120.0100.00916.12
7.4.110.0100.00916.10
7.4.100.0110.00816.23
7.4.90.0090.00916.20
7.4.80.0110.00916.31
7.4.70.0100.00916.17
7.4.60.0100.00916.16
7.4.50.0110.00816.12
7.4.40.0100.00916.16
7.4.30.0110.00816.19
7.4.20.0110.00816.19
7.4.10.0090.00916.18
7.4.00.0100.00816.11
7.3.330.0090.00415.12
7.3.320.0090.00414.69
7.3.310.0070.00515.35
7.3.300.0090.00315.39
7.3.290.0130.00015.40
7.3.280.0130.00515.74
7.3.270.0080.00915.86
7.3.260.0120.00716.00
7.3.250.0110.00815.90
7.3.240.0100.00816.01
7.3.230.0110.00816.07
7.3.220.0110.00916.02
7.3.210.0120.00816.06
7.3.200.0120.00916.07
7.3.190.0110.00816.11
7.3.180.0100.00816.13
7.3.170.0100.00816.13
7.3.160.0100.00916.17
7.3.150.0110.00816.10
7.3.140.0110.00816.10
7.3.130.0100.00816.15
7.3.120.0100.00915.92
7.3.110.0090.00915.83
7.3.100.0090.00915.81
7.3.90.0110.00815.79
7.3.80.0090.00815.70
7.3.70.0090.00815.53
7.3.60.0090.00815.46
7.3.50.0090.00815.40
7.3.40.0100.00715.40
7.3.30.0090.00815.35
7.3.20.0150.00715.72
7.3.10.0140.00815.67
7.3.00.0160.00815.68
7.2.340.0130.00816.05
7.2.330.0160.00816.12
7.2.320.0140.01016.08
7.2.310.0130.00916.11
7.2.300.0120.01016.14
7.2.290.0130.00816.22
7.2.280.0130.00816.23
7.2.270.0110.01016.17
7.2.260.0120.00916.19
7.2.250.0100.00916.10
7.2.240.0100.00915.94
7.2.230.0100.00915.91
7.2.220.0110.00815.88
7.2.210.0100.00915.78
7.2.200.0090.00915.65
7.2.190.0100.00815.60
7.2.180.0100.00815.49
7.2.170.0100.00915.51
7.2.160.0100.00815.46
7.2.150.0150.00815.88
7.2.140.0130.00815.84
7.2.130.0200.00815.84
7.2.120.0210.00915.81
7.2.110.0180.00815.78
7.2.100.0170.00915.77
7.2.90.0200.00915.74
7.2.80.0170.00815.76
7.2.70.0180.00815.76
7.2.60.0180.00915.75
7.2.50.0200.00815.76
7.2.40.0210.00815.85
7.2.30.0200.00915.83
7.2.20.0200.00815.82
7.2.10.0200.00815.80
7.2.00.0210.00815.79
7.1.330.0160.00915.00
7.1.320.0180.00814.88
7.1.310.0140.00814.96
7.1.300.0150.00814.76
7.1.290.0140.00814.78
7.1.280.0140.00714.79
7.1.270.0170.00814.71
7.1.260.0160.00714.77
7.1.250.0190.00814.72
7.1.240.0220.00814.68
7.1.230.0230.00714.65
7.1.220.0220.00914.65
7.1.210.0240.00914.65
7.1.200.0210.00814.66
7.1.190.0220.00814.61
7.1.180.0230.00814.60
7.1.170.0230.00714.66
7.1.160.0240.00814.65
7.1.150.0240.00814.67
7.1.140.0230.00814.67
7.1.130.0240.00814.65
7.1.120.0220.00914.67
7.1.110.0220.00914.71
7.1.100.0220.00814.69
7.1.90.0220.00814.68
7.1.80.0230.00814.70
7.1.70.0230.00814.63
7.1.60.0230.00915.19
7.1.50.0240.00815.21
7.1.40.0220.00715.21
7.1.30.0260.00915.23
7.1.20.0260.00815.25
7.1.10.0220.00814.67
7.1.00.0210.00814.66
7.0.330.0200.00814.31
7.0.320.0160.00814.83
7.0.310.0140.00914.78
7.0.300.0150.00814.80
7.0.290.0160.00814.75
7.0.280.0140.00914.79
7.0.270.0160.00814.83
7.0.260.0160.00714.85
7.0.250.0140.00914.90
7.0.240.0150.00914.91
7.0.230.0180.00914.91
7.0.220.0150.00914.88
7.0.210.0160.00914.87
7.0.200.0150.00814.89
7.0.190.0140.00914.88
7.0.180.0160.00814.88
7.0.170.0160.00814.87
7.0.160.0140.00914.89
7.0.150.0160.00814.91
7.0.140.0170.00714.94
7.0.130.0170.00814.92
7.0.120.0140.00914.91
7.0.110.0170.00814.89
7.0.100.0140.00814.89
7.0.90.0150.00914.85
7.0.80.0150.00814.90
7.0.70.0170.00814.88
7.0.60.0150.00914.87
7.0.50.0150.00914.87
7.0.40.0150.00814.88
7.0.30.0150.00814.88
7.0.20.0150.00814.86
7.0.10.0150.00814.89
7.0.00.0180.00814.84
5.6.400.0130.00914.79
5.6.390.0140.00914.79
5.6.380.0130.00914.67
5.6.370.0140.01015.43
5.6.360.0140.01015.41
5.6.350.0150.01015.44
5.6.340.0150.01115.46
5.6.330.0140.01015.42
5.6.320.0140.01115.49
5.6.310.0150.00915.47
5.6.300.0150.01015.45
5.6.290.0160.00815.47
5.6.280.0150.01015.47
5.6.270.0140.01015.45
5.6.260.0150.01015.47
5.6.250.0150.01015.42
5.6.240.0150.00915.47
5.6.230.0150.00915.41
5.6.220.0150.00915.44
5.6.210.0150.00915.38
5.6.200.0150.00915.49
5.6.190.0140.01115.43
5.6.180.0150.01115.42
5.6.170.0150.00915.41
5.6.160.0140.01015.42
5.6.150.0140.01015.47
5.6.140.0150.01115.46
5.6.130.0130.01115.45
5.6.120.0150.01015.45
5.6.110.0150.01015.43
5.6.100.0150.01015.44
5.6.90.0150.01015.39
5.6.80.0150.00915.36
5.6.70.0140.01115.41
5.6.60.0140.01015.38
5.6.50.0130.01015.34
5.6.40.0140.01015.38
5.6.30.0140.01015.36
5.6.20.0140.01015.35
5.6.10.0140.00915.35
5.6.00.0130.01115.35
5.4.110.0120.00413.39

preferences:
30.33 ms | 403 KiB | 5 Q