3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(): ?array { return array(); } function bar(): ?array { 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.3.140.0060.01220.68
8.3.130.0130.00618.57
8.3.120.0170.00320.57
8.3.110.0040.00818.43
8.3.100.0000.00916.34
8.3.90.0080.00026.77
8.3.80.0040.00416.71
8.3.70.0060.01516.63
8.3.60.0130.00616.38
8.3.50.0050.00918.21
8.3.40.0090.00618.54
8.3.30.0000.01418.65
8.3.20.0070.00922.90
8.3.10.0040.00423.48
8.3.00.0080.00019.55
8.2.250.0050.00316.52
8.2.240.0060.00317.07
8.2.230.0000.01120.94
8.2.220.0040.00424.06
8.2.210.0040.00426.77
8.2.200.0100.00016.63
8.2.190.0110.00716.58
8.2.180.0090.00618.20
8.2.170.0170.00318.66
8.2.160.0070.00722.96
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0070.00021.04
8.2.110.0090.00020.71
8.2.100.0130.00017.78
8.2.90.0030.00518.03
8.2.80.0030.00618.98
8.2.70.0040.00417.91
8.2.60.0090.00017.50
8.2.50.0070.00518.70
8.2.40.0110.00219.37
8.2.30.0110.00418.47
8.2.20.0080.00518.75
8.2.10.0100.00318.71
8.2.00.0080.00418.75
8.1.300.0030.00617.53
8.1.290.0060.00318.88
8.1.280.0080.01225.92
8.1.270.0050.00224.02
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0090.00023.68
8.1.230.0060.00623.89
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00917.22
8.1.190.0050.00318.99
8.1.180.0130.00018.81
8.1.170.0090.00518.57
8.1.160.0090.00519.14
8.1.150.0040.00819.20
8.1.140.0060.00318.42
8.1.130.0080.00518.42
8.1.120.0070.00618.46
8.1.110.0110.00218.41
8.1.100.0040.00617.84
8.1.90.0090.00318.42
8.1.80.0080.00518.04
8.1.70.0070.00617.72
8.1.60.0070.00718.06
8.1.50.0040.01018.10
8.1.40.0050.01018.15
8.1.30.0110.00518.21
8.1.20.0090.00618.16
8.1.10.0100.00317.70
8.1.00.0130.00417.86
8.0.300.0000.00820.00
8.0.290.0000.00716.62
8.0.280.0080.00518.91
8.0.270.0060.00317.33
8.0.260.0100.00318.04
8.0.250.0080.00418.15
8.0.240.0070.00518.19
8.0.230.0060.00518.11
8.0.220.0080.00418.14
8.0.210.0050.00617.67
8.0.200.0070.00517.72
8.0.190.0100.00317.72
8.0.180.0070.00617.69
8.0.170.0110.00317.63
8.0.160.0100.00417.62
8.0.150.0120.00317.62
8.0.140.0090.00317.37
8.0.130.0100.00516.55
8.0.120.0090.00415.45
8.0.110.0120.00317.27
8.0.100.0080.00617.10
8.0.90.0100.00417.08
8.0.80.0110.00517.03
8.0.70.0100.00617.06
8.0.60.0110.00617.02
8.0.50.0100.00517.09
8.0.30.0080.01016.91
8.0.20.0130.00816.94
8.0.10.0120.00916.99
8.0.00.0100.01116.93
7.4.330.0090.00627.33
7.4.320.0050.00617.94
7.4.300.0070.00217.02
7.4.290.0060.00517.01
7.4.280.0070.00516.99
7.4.270.0090.00517.23
7.4.260.0130.00417.02
7.4.250.0150.00317.05
7.4.240.0150.00217.07
7.4.230.0060.00616.73
7.4.220.0090.00416.83
7.4.210.0110.00416.75
7.4.200.0090.00416.89
7.4.190.0050.00916.96
7.4.180.0090.00616.91
7.4.160.0120.00716.56
7.4.150.0120.00816.53
7.4.140.0110.00916.72
7.4.130.0120.00816.46
7.4.120.0130.00816.45
7.4.110.0130.00816.42
7.4.100.0140.00816.47
7.4.90.0130.00916.40
7.4.80.0130.00816.46
7.4.70.0120.00816.39
7.4.60.0120.00816.35
7.4.50.0120.00916.30
7.4.40.0110.01016.30
7.4.30.0110.00916.30
7.4.20.0110.00816.32
7.4.10.0100.00916.28
7.4.00.0100.00916.25
7.3.330.0090.00516.24
7.3.320.0120.00216.19
7.3.310.0080.00516.81
7.3.300.0070.00416.53
7.3.290.0090.00516.53
7.3.280.0090.00716.45
7.3.270.0120.00716.36
7.3.260.0130.00716.41
7.3.250.0110.00816.38
7.3.240.0140.00716.38
7.3.230.0140.00816.38
7.3.220.0130.00816.32
7.3.210.0150.00716.32
7.3.200.0130.00716.33
7.3.190.0130.00816.29
7.3.180.0130.00816.29
7.3.170.0130.00816.29
7.3.160.0120.00816.29
7.3.150.0120.00816.28
7.3.140.0120.00816.27
7.3.130.0110.00916.25
7.3.120.0100.00916.10
7.3.110.0100.00916.04
7.3.100.0100.00815.85
7.3.90.0100.00815.78
7.3.80.0100.00815.68
7.3.70.0100.00815.57
7.3.60.0090.00815.50
7.3.50.0100.00815.44
7.3.40.0100.00815.40
7.3.30.0090.00815.38
7.3.20.0210.00915.67
7.3.10.0240.00815.60
7.3.00.0250.00815.60
7.2.340.0160.00816.38
7.2.330.0160.00916.41
7.2.320.0150.00916.38
7.2.310.0130.00916.35
7.2.300.0130.00916.37
7.2.290.0130.00916.36
7.2.280.0130.00916.37
7.2.270.0130.00916.34
7.2.260.0140.00816.34
7.2.250.0110.00916.25
7.2.240.0120.00916.15
7.2.230.0110.00815.99
7.2.220.0110.00915.89
7.2.210.0110.00815.74
7.2.200.0110.00915.67
7.2.190.0100.00915.60
7.2.180.0100.00915.56
7.2.170.0100.00815.53
7.2.160.0100.00915.49
7.2.150.0220.00815.80
7.2.140.0210.00815.80
7.2.130.0240.00815.75
7.2.120.0240.00915.74
7.2.110.0220.00815.74
7.2.100.0220.00815.76
7.2.90.0200.00915.76
7.2.80.0210.00915.76
7.2.70.0210.00915.77
7.2.60.0200.00815.77
7.2.50.0210.00815.75
7.2.40.0220.00815.77
7.2.30.0200.00915.77
7.2.20.0210.00915.77
7.2.10.0200.00915.78
7.2.00.0190.00915.75
7.1.330.0160.00815.30
7.1.320.0170.00815.03
7.1.310.0150.00814.95
7.1.300.0160.00814.84
7.1.290.0150.00814.84
7.1.280.0140.00814.76
7.1.270.0180.00814.74
7.1.260.0170.00714.71
7.1.250.0280.00814.66
7.1.240.0270.00814.61
7.1.230.0230.00814.63
7.1.220.0240.00814.63
7.1.210.0260.00814.63
7.1.200.0230.00814.64
7.1.190.0250.00814.64
7.1.180.0240.00814.63
7.1.170.0240.00814.63
7.1.160.0230.00814.65
7.1.150.0220.00814.65
7.1.140.0230.00814.66
7.1.130.0230.00814.66
7.1.120.0220.00814.65
7.1.110.0230.00814.69
7.1.100.0230.00814.66
7.1.90.0240.00814.67
7.1.80.0220.00914.67
7.1.70.0230.00814.65
7.1.60.0240.00814.88
7.1.50.0220.00814.86
7.1.40.0200.00814.84
7.1.30.0220.00814.85
7.1.20.0220.00914.85
7.1.10.0210.00814.64
7.1.00.0230.00814.60
7.0.330.0280.00714.25
7.0.320.0160.00915.06
7.0.310.0160.00815.04
7.0.300.0150.00915.04
7.0.290.0160.00915.04
7.0.280.0160.00915.04
7.0.270.0170.00815.05
7.0.260.0170.00815.08
7.0.250.0170.00815.08
7.0.240.0160.00815.14
7.0.230.0160.00915.10
7.0.220.0160.00815.09
7.0.210.0160.00915.09
7.0.200.0160.00815.10
7.0.190.0160.00815.08
7.0.180.0160.00815.08
7.0.170.0170.00815.10
7.0.160.0150.00915.08
7.0.150.0160.00815.05
7.0.140.0160.00915.08
7.0.130.0150.00915.09
7.0.120.0170.00815.11
7.0.110.0160.00815.07
7.0.100.0190.00815.06
7.0.90.0160.00915.06
7.0.80.0150.00815.06
7.0.70.0160.00815.05
7.0.60.0160.00815.05
7.0.50.0160.00815.04
7.0.40.0150.00815.04
7.0.30.0150.00815.04
7.0.20.0160.00815.03
7.0.10.0160.00815.04
7.0.00.0160.00815.03
5.6.400.0130.01014.78
5.6.390.0130.00914.82
5.6.380.0130.00914.73
5.6.370.0150.01015.64
5.6.360.0150.01015.63
5.6.350.0150.01115.63
5.6.340.0150.01115.65
5.6.330.0150.01115.63
5.6.320.0150.01015.61
5.6.310.0150.01115.63
5.6.300.0150.01115.61
5.6.290.0150.01015.61
5.6.280.0150.01015.64
5.6.270.0150.01015.63
5.6.260.0150.01015.61
5.6.250.0140.01115.63
5.6.240.0140.01115.62
5.6.230.0140.01115.61
5.6.220.0150.01015.62
5.6.210.0150.01015.62
5.6.200.0150.01015.62
5.6.190.0150.01015.61
5.6.180.0150.01115.65
5.6.170.0150.01015.59
5.6.160.0160.00915.60
5.6.150.0150.01015.60
5.6.140.0150.01015.61
5.6.130.0160.01015.61
5.6.120.0150.01015.62
5.6.110.0150.01015.58
5.6.100.0150.01015.58
5.6.90.0150.01015.56
5.6.80.0150.01015.53
5.6.70.0140.01015.56
5.6.60.0150.01015.54
5.6.50.0140.01115.51
5.6.40.0140.01115.54
5.6.30.0150.01015.54
5.6.20.0140.01015.53
5.6.10.0150.01015.54
5.6.00.0150.01115.53

preferences:
65.93 ms | 403 KiB | 5 Q