3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(int $bar = null) { } foo(1); 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.4.10.0100.01017.57
8.3.140.0040.00420.68
8.3.130.0050.00318.22
8.3.120.0000.00920.83
8.3.110.0030.00620.94
8.3.100.0070.01024.06
8.3.90.0070.00726.77
8.3.80.0060.00316.63
8.3.70.0170.00316.63
8.3.60.0090.00616.75
8.3.50.0040.00918.41
8.3.40.0070.00718.72
8.3.30.0060.00918.44
8.3.20.0070.00021.70
8.3.10.0040.00421.89
8.3.00.0040.00419.31
8.2.250.0050.00318.47
8.2.240.0080.00016.91
8.2.230.0080.00022.58
8.2.220.0030.00637.54
8.2.210.0180.00026.77
8.2.200.0090.00016.63
8.2.190.0100.00716.58
8.2.180.0000.01425.92
8.2.170.0120.00318.70
8.2.160.0130.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00018.60
8.2.110.0030.00619.07
8.2.100.0080.00817.50
8.2.90.0040.00417.50
8.2.80.0040.00417.97
8.2.70.0050.00317.38
8.2.60.0070.00317.25
8.2.50.0040.00417.55
8.2.40.0030.00618.07
8.2.30.0030.00617.92
8.2.20.0070.00317.83
8.2.10.0070.00017.98
8.2.00.0070.00017.95
8.1.300.0150.00417.48
8.1.290.0030.00630.84
8.1.280.0090.00925.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00322.13
8.1.230.0000.01120.85
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0040.00417.10
8.1.190.0000.00917.11
8.1.180.0000.00822.07
8.1.170.0080.00018.37
8.1.160.0050.00218.70
8.1.150.0030.00318.98
8.1.140.0000.00717.61
8.1.130.0000.00717.23
8.1.120.0000.00717.22
8.1.110.0030.00617.32
8.1.100.0050.00217.27
8.1.90.0000.01117.22
8.1.80.0000.00817.29
8.1.70.0050.00217.28
8.1.60.0040.00417.43
8.1.50.0090.00017.35
8.1.40.0060.00317.35
8.1.30.0000.00817.56
8.1.20.0080.00017.58
8.1.10.0100.00017.37
8.1.00.0000.00817.32
8.0.300.0000.00821.59
8.0.290.0030.00716.58
8.0.280.0030.00318.31
8.0.270.0000.00716.59
8.0.260.0040.00416.65
8.0.250.0000.00716.85
8.0.240.0040.00416.77
8.0.230.0040.00416.73
8.0.220.0000.00816.76
8.0.210.0040.00416.64
8.0.200.0070.00016.83
8.0.190.0060.00316.86
8.0.180.0000.00816.84
8.0.170.0080.00316.71
8.0.160.0030.00316.71
8.0.150.0040.00416.66
8.0.140.0050.00316.77
8.0.130.0070.00013.20
8.0.120.0040.00416.71
8.0.110.0000.00716.66
8.0.100.0040.00416.81
8.0.90.0070.00016.59
8.0.80.0160.00016.70
8.0.70.0190.00616.67
8.0.60.0160.00816.61
8.0.50.0220.00316.64
8.0.30.0090.01016.81
8.0.20.0110.00917.19
8.0.10.0150.01116.89
8.0.00.0090.01116.67
7.4.330.0040.00015.55
7.4.320.0000.00616.52
7.4.300.0000.00816.42
7.4.290.0000.00716.41
7.4.280.0050.00416.37
7.4.270.0000.00716.38
7.4.260.0070.00016.44
7.4.250.0040.00416.46
7.4.240.0030.00516.48
7.4.230.0030.00316.59
7.4.220.0000.00716.63
7.4.210.0040.01116.59
7.4.200.0200.01216.38
7.4.190.0270.00816.56
7.4.180.0170.00916.58
7.4.160.0100.00916.38
7.4.150.0140.01116.45
7.4.140.0090.01017.59
7.4.130.0160.01416.35
7.4.120.0130.00816.42
7.4.110.0120.01016.25
7.4.100.0140.01116.28
7.4.90.0160.00816.33
7.4.80.0140.00817.12
7.4.70.0120.00916.16
7.4.60.0110.01016.36
7.4.50.0110.01016.34
7.4.40.0110.00916.29
7.4.30.0070.01316.30
7.4.20.0100.00816.42
7.4.10.0120.00816.07
7.4.00.0090.01116.00
7.3.330.0020.00213.26
7.3.320.0040.00413.17
7.3.310.0040.00416.24
7.3.300.0030.00316.18
7.3.290.0000.00716.11
7.3.280.0080.00916.21
7.3.270.0170.00616.20
7.3.260.0130.01016.38
7.3.250.0240.00016.25
7.3.240.0140.01016.31
7.3.230.0090.01216.33
7.3.220.0200.00616.17
7.3.210.0100.01016.16
7.3.200.0110.01116.29
7.3.190.0140.00716.17
7.3.180.0130.00716.23
7.3.170.0160.00516.23
7.3.160.0120.00716.28
7.3.150.0100.01016.19
7.3.140.0130.00816.22
7.3.130.0110.00915.97
7.3.120.0100.00816.00
7.3.110.0130.01015.96
7.3.100.0090.01015.80
7.3.90.0100.00815.90
7.3.80.0090.01015.79
7.3.70.0090.00815.60
7.3.60.0080.00915.43
7.3.50.0090.00815.40
7.3.40.0100.00815.39
7.3.30.0090.00815.40
7.3.20.0150.00915.92
7.3.10.0140.00815.87
7.3.00.0160.00715.90
7.2.340.0170.00416.29
7.2.330.0230.01016.41
7.2.320.0100.01016.25
7.2.310.0130.00916.24
7.2.300.0120.00816.29
7.2.290.0140.00716.27
7.2.280.0140.00716.30
7.2.270.0100.01116.35
7.2.260.0110.01016.02
7.2.250.0100.00916.06
7.2.240.0110.00915.99
7.2.230.0090.00915.88
7.2.220.0100.00916.06
7.2.210.0080.01115.89
7.2.200.0110.00715.74
7.2.190.0080.01015.47
7.2.180.0080.00915.48
7.2.170.0090.00915.52
7.2.160.0090.00915.47
7.2.150.0150.00816.09
7.2.140.0130.00915.99
7.2.130.0190.00816.04
7.2.120.0150.00916.07
7.2.110.0160.00816.03
7.2.100.0160.00716.05
7.2.90.0160.00816.20
7.2.80.0130.00916.14
7.2.70.0170.00816.17
7.2.60.0150.00816.11
7.2.50.0150.00716.14
7.2.40.0180.00816.26
7.2.30.0160.00916.28
7.2.20.0160.00816.21
7.2.10.0170.00816.25
7.2.00.0190.00916.08
7.1.330.0130.00815.41
7.1.320.0140.00715.41
7.1.310.0170.00915.32
7.1.300.0120.00815.11
7.1.290.0120.00815.14
7.1.280.0100.00915.05
7.1.270.0140.00715.05
7.1.260.0120.00914.97
7.1.250.0220.00714.96
7.1.240.0180.00814.94
7.1.230.0170.00814.93
7.1.220.0190.00714.97
7.1.210.0180.00814.98
7.1.200.0170.00915.07
7.1.190.0180.00814.92
7.1.180.0210.00614.98
7.1.170.0220.00814.98
7.1.160.0200.00715.07
7.1.150.0180.00915.07
7.1.140.0210.00915.04
7.1.130.0210.01015.07
7.1.120.0230.00914.96
7.1.110.0200.00714.90
7.1.100.0200.00814.85
7.1.90.0180.01014.92
7.1.80.0200.00814.92
7.1.70.0210.00814.90
7.1.60.0200.00815.66
7.1.50.0210.00815.64
7.1.40.0290.00815.58
7.1.30.0240.00915.57
7.1.20.0160.00915.56
7.1.10.0180.00814.84
7.1.00.0190.00914.83
7.0.330.0190.00814.58
7.0.320.0200.00814.65
7.0.310.0180.00814.80
7.0.300.0210.00914.73
7.0.290.0210.00814.89
7.0.280.0170.01014.82
7.0.270.0250.01014.89
7.0.260.0220.01014.67
7.0.250.0210.00714.71
7.0.240.0240.00914.67
7.0.230.0220.00914.68
7.0.220.0220.00814.69
7.0.210.0220.00914.58
7.0.200.0230.01014.60
7.0.190.0220.00814.59
7.0.180.0190.01014.56
7.0.170.0230.01014.57
7.0.160.0220.00914.54
7.0.150.0240.00914.52
7.0.140.0250.00814.57
7.0.130.0180.01114.55
7.0.120.0240.00814.56
7.0.110.0200.01014.58
7.0.100.0210.00814.52
7.0.90.0200.00814.53
7.0.80.0190.00914.55
7.0.70.0180.00914.52
7.0.60.0180.01014.55
7.0.50.0180.00914.53
7.0.40.0210.00814.54
7.0.30.0200.00914.59
7.0.20.0200.00914.51
7.0.10.0210.00814.58
7.0.00.0190.00714.77
5.6.400.0110.00914.95
5.6.390.0130.00914.88
5.6.380.0140.00914.82
5.6.370.0140.01015.10
5.6.360.0150.00915.02
5.6.350.0150.01015.00
5.6.340.0140.01015.08
5.6.330.0130.01115.15
5.6.320.0150.01015.07
5.6.310.0140.01115.13
5.6.300.0140.01515.43
5.6.290.0150.01215.39
5.6.280.0130.01415.46
5.6.270.0130.01415.36
5.6.260.0130.01415.44
5.6.250.0140.01415.47
5.6.240.0150.01315.44
5.6.230.0140.01515.40
5.6.220.0150.01415.34
5.6.210.0140.01415.45
5.6.200.0140.01315.34
5.6.190.0150.01415.44
5.6.180.0130.01615.38
5.6.170.0150.01215.41
5.6.160.0150.01315.36
5.6.150.0150.01415.36
5.6.140.0160.01315.35
5.6.130.0150.01215.42
5.6.120.0160.01215.41
5.6.110.0160.01315.35
5.6.100.0140.01215.34
5.6.90.0160.01415.31
5.6.80.0140.01215.26
5.6.70.0140.01415.29
5.6.60.0130.01315.27
5.6.50.0120.01315.25
5.6.40.0160.01115.21
5.6.30.0140.01215.27
5.6.20.0160.01115.25
5.6.10.0140.01315.23
5.6.00.0130.01215.28

preferences:
17.76 ms | 403 KiB | 5 Q