3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(?iterable $bar) { } foo(array()); 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.20.0120.00618.93
8.4.10.0030.00621.80
8.3.150.0070.01017.35
8.3.140.0150.00320.54
8.3.130.0060.00318.50
8.3.120.0030.00719.18
8.3.110.0030.00620.94
8.3.100.0050.00516.61
8.3.90.0140.00326.77
8.3.80.0100.00318.43
8.3.70.0070.00716.58
8.3.60.0160.00318.43
8.3.50.0120.00918.26
8.3.40.0140.00720.29
8.3.30.0090.00618.42
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.270.0150.00316.38
8.2.260.0080.00016.89
8.2.250.0030.00716.45
8.2.240.0040.00418.62
8.2.230.0080.00022.58
8.2.220.0060.00324.06
8.2.210.0050.00326.77
8.2.200.0030.00618.04
8.2.190.0070.01416.58
8.2.180.0060.01025.92
8.2.170.0110.00418.60
8.2.160.0060.01022.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.00
8.2.110.0090.00021.12
8.2.100.0040.00717.66
8.2.90.0040.00420.47
8.2.80.0040.00417.97
8.2.70.0090.00017.91
8.2.60.0030.00617.80
8.2.50.0000.00818.05
8.2.40.0040.00418.09
8.2.30.0070.00017.92
8.2.20.0040.00418.99
8.2.10.0000.00717.93
8.2.00.0070.00019.19
8.1.310.0040.00416.88
8.1.300.0000.01019.48
8.1.290.0060.00330.84
8.1.280.0150.00325.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00422.09
8.1.230.0080.00420.87
8.1.220.0080.00017.74
8.1.210.0030.00518.97
8.1.200.0040.00417.10
8.1.190.0050.00517.11
8.1.180.0090.00018.10
8.1.170.0080.00017.62
8.1.160.0030.00618.94
8.1.150.0110.00018.50
8.1.140.0040.00417.36
8.1.130.0000.00717.18
8.1.120.0000.00717.16
8.1.110.0020.00517.30
8.1.100.0090.00217.18
8.1.90.0040.00917.26
8.1.80.0060.00617.32
8.1.70.0060.00617.07
8.1.60.0100.00217.41
8.1.50.0080.00617.39
8.1.40.0100.00317.46
8.1.30.0040.01017.57
8.1.20.0060.00717.50
8.1.10.0100.00317.41
8.1.00.0040.00817.33
8.0.300.0040.00419.91
8.0.290.0000.00716.63
8.0.280.0050.00318.32
8.0.270.0030.00316.76
8.0.260.0030.00318.74
8.0.250.0040.00416.85
8.0.240.0070.00016.88
8.0.230.0070.00416.84
8.0.220.0080.00416.64
8.0.210.0070.00816.79
8.0.200.0110.00416.87
8.0.190.0070.01016.75
8.0.180.0080.00916.78
8.0.170.0130.00316.84
8.0.160.0130.00416.89
8.0.150.0120.00416.81
8.0.140.0120.00616.76
8.0.130.0040.01116.66
8.0.120.0120.00516.79
8.0.110.0080.00816.70
8.0.100.0120.00416.77
8.0.90.0120.00416.82
8.0.80.0160.00016.82
8.0.70.0130.00516.74
8.0.60.0090.00316.56
8.0.50.0110.00616.13
8.0.30.0110.00416.27
8.0.20.0080.00616.74
8.0.10.0130.00416.49
8.0.00.0080.00516.84
7.4.330.0000.00415.55
7.4.320.0030.00316.37
7.4.300.0070.00416.31
7.4.290.0040.00416.56
7.4.280.0110.00016.53
7.4.270.0120.00216.36
7.4.260.0140.00416.20
7.4.250.0140.00416.39
7.4.240.0130.00416.29
7.4.230.0100.00316.07
7.4.220.0040.00816.35
7.4.210.0160.00016.04
7.4.200.0080.00816.11
7.4.190.0110.00016.00
7.4.180.0090.00316.27
7.4.160.0100.00016.45
7.4.150.0120.00316.21
7.4.140.0080.00415.68
7.4.130.0130.00216.17
7.4.120.0120.00216.21
7.4.110.0090.00416.20
7.4.100.0150.00215.98
7.4.90.0150.00016.17
7.4.80.0050.00615.88
7.4.70.0120.00216.34
7.4.60.0120.00616.18
7.4.50.0120.00316.01
7.4.40.0140.00316.22
7.4.30.0150.00016.25
7.4.20.0100.00515.97
7.4.10.0140.00016.00
7.4.00.0050.01016.28
7.3.330.0130.00516.29
7.3.320.0070.01016.10
7.3.310.0080.00816.25
7.3.300.0100.00716.05
7.3.290.0090.00916.13
7.3.280.0140.00316.14
7.3.270.0140.00216.29
7.3.260.0100.00716.27
7.3.250.0090.00916.08
7.3.240.0130.00516.10
7.3.230.0110.00616.29
7.3.220.0090.00716.00
7.3.210.0170.00016.05
7.3.200.0090.00616.00
7.3.190.0150.00316.03
7.3.180.0120.00515.98
7.3.170.0120.00616.18
7.3.160.0130.00316.17
7.3.150.0110.00716.17
7.3.140.0140.00316.11
7.3.130.0090.00916.13
7.3.120.0160.00016.19
7.3.110.0120.00515.99
7.3.100.0130.00216.13
7.3.90.0170.00016.23
7.3.80.0170.00016.14
7.3.70.0090.00716.18
7.3.60.0100.00516.40
7.3.50.0100.00616.43
7.3.40.0080.00816.33
7.3.30.0130.00316.33
7.3.20.0160.00318.01
7.3.10.0080.00818.15
7.3.00.0110.00718.12
7.2.340.0130.00416.19
7.2.330.0130.00416.20
7.2.320.0160.00016.06
7.2.310.0140.00216.21
7.2.300.0130.00316.23
7.2.290.0130.00316.01
7.2.280.0090.00816.19
7.2.270.0130.00316.23
7.2.260.0120.00416.06
7.2.250.0090.00916.15
7.2.240.0160.00016.16
7.2.230.0130.00415.92
7.2.220.0080.00716.00
7.2.210.0130.00316.05
7.2.200.0150.00416.38
7.2.190.0150.00316.28
7.2.180.0110.00516.14
7.2.170.0080.00816.42
7.2.160.0120.00616.38
7.2.150.0140.00418.29
7.2.140.0080.00818.09
7.2.130.0170.00018.30
7.2.120.0120.00518.14
7.2.110.0130.00318.16
7.2.100.0150.00318.29
7.2.90.0140.00518.06
7.2.80.0180.00018.14
7.2.70.0140.00318.30
7.2.60.0140.00418.05
7.2.50.0090.00918.05
7.2.40.0000.01718.27
7.2.30.0180.00018.23
7.2.20.0130.00318.36
7.2.10.0160.00318.43
7.2.00.0130.00318.33
7.1.330.0110.00417.25
7.1.320.0100.00517.05
7.1.310.0140.00017.10
7.1.300.0130.00317.02
7.1.290.0150.00017.24
7.1.280.0130.00317.14
7.1.270.0110.00517.24
7.1.260.0120.00417.15
7.1.250.0140.00417.16
7.1.240.0110.00517.20
7.1.230.0140.00316.97
7.1.220.0090.00617.21
7.1.210.0140.00317.10
7.1.200.0160.00017.05
7.1.190.0170.00017.15
7.1.180.0140.00217.14
7.1.170.0110.00517.16
7.1.160.0160.00016.95
7.1.150.0130.00317.20
7.1.140.0100.00617.15
7.1.130.0130.00316.96
7.1.120.0170.00017.00
7.1.110.0130.00317.26
7.1.100.0120.00617.13
7.1.90.0170.00017.05
7.1.80.0140.00317.21
7.1.70.0070.00716.87
7.1.60.0090.00617.00
7.1.50.0100.00617.05
7.1.40.0120.00517.07
7.1.30.0110.00517.30
7.1.20.0150.00217.21
7.1.10.0090.00617.12
7.1.00.0120.00417.09
7.0.330.0110.00416.73
7.0.320.0110.00516.88
7.0.310.0120.00316.77
7.0.300.0110.00516.75
7.0.290.0110.00416.75
7.0.280.0100.00516.95
7.0.270.0080.00816.80
7.0.260.0100.00516.92
7.0.250.0070.00916.94
7.0.240.0120.00316.97
7.0.230.0090.00516.93
7.0.220.0090.00516.68
7.0.210.0150.00016.72
7.0.200.0120.00416.94
7.0.190.0110.00416.89
7.0.180.0090.00716.86
7.0.170.0140.00316.93
7.0.160.0110.00616.71
7.0.150.0110.00516.91
7.0.140.0150.00016.69
7.0.130.0100.00317.03
7.0.120.0110.00816.87
7.0.110.0150.00016.89
7.0.100.0150.00016.80
7.0.90.0080.00816.61
7.0.80.0000.01416.64
7.0.70.0100.00316.73
7.0.60.0140.00016.65
7.0.50.0090.00316.80
7.0.40.0070.00716.92
7.0.30.0090.00416.87
7.0.20.0100.00316.80
7.0.10.0060.00616.63
7.0.00.0050.00816.62
5.6.400.0130.00015.64
5.6.390.0060.00615.55
5.6.380.0050.00915.68
5.6.370.0110.00315.39
5.6.360.0070.00715.60
5.6.350.0040.00915.73
5.6.340.0040.00915.63
5.6.330.0040.00915.39
5.6.320.0060.00615.48
5.6.310.0100.00315.48
5.6.300.0130.00015.46
5.6.290.0080.00415.39
5.6.280.0100.00315.69
5.6.270.0120.00015.58
5.6.260.0080.00415.67
5.6.250.0120.00015.66
5.6.240.0120.00015.44
5.6.230.0090.00315.64
5.6.220.0130.00015.48
5.6.210.0050.00915.46
5.6.200.0130.00015.75
5.6.190.0070.00715.69
5.6.180.0100.00315.71
5.6.170.0090.00415.55
5.6.160.0050.00915.57
5.6.150.0080.00415.80
5.6.140.0070.00715.72
5.6.130.0080.00415.73
5.6.120.0030.00915.64
5.6.110.0060.00615.55
5.6.100.0000.01315.42
5.6.90.0130.00015.44
5.6.80.0080.00415.53
5.6.70.0100.00315.74
5.6.60.0030.01015.71
5.6.50.0130.00015.41
5.6.40.0060.00615.57
5.6.30.0100.00315.42
5.6.20.0060.00615.45
5.6.10.0100.00215.36
5.6.00.0100.00315.50
5.5.380.0080.00415.77
5.5.370.0060.00615.66
5.5.360.0130.00015.51
5.5.350.0100.00315.41
5.5.340.0090.00415.29
5.5.330.0070.00715.49
5.5.320.0090.00515.59
5.5.310.0140.00015.44
5.5.300.0090.00615.50
5.5.290.0070.00715.54
5.5.280.0100.00315.30
5.5.270.0070.00715.62
5.5.260.0080.00515.60
5.5.250.0110.00315.53
5.5.240.0080.00515.64
5.5.230.0090.00415.76
5.5.220.0130.00015.62
5.5.210.0100.00215.65
5.5.200.0090.00415.46
5.5.190.0140.00015.36
5.5.180.0040.00915.31
5.5.170.0080.00415.41
5.5.160.0100.00315.35
5.5.150.0090.00515.22
5.5.140.0110.00415.38
5.5.130.0090.00415.40
5.5.120.0130.00015.14
5.5.110.0080.00515.29
5.5.100.0120.00015.54
5.5.90.0040.00915.47
5.5.80.0100.00315.40
5.5.70.0040.00915.47
5.5.60.0100.00315.66
5.5.50.0090.00315.37
5.5.40.0050.00915.52
5.5.30.0080.00515.46
5.5.20.0100.00315.46
5.5.10.0100.00315.30
5.5.00.0060.00615.30
5.4.450.0000.01012.32
5.4.440.0070.00312.28
5.4.430.0100.00012.32
5.4.420.0070.00312.50
5.4.410.0100.00012.58
5.4.400.0120.00012.52
5.4.390.0110.00012.25
5.4.380.0050.00512.23
5.4.370.0050.00512.36
5.4.360.0060.00612.35
5.4.350.0100.00012.37
5.4.340.0040.00712.20
5.4.330.0070.00412.40
5.4.320.0090.00312.23
5.4.310.0050.00512.39
5.4.300.0110.00012.50
5.4.290.0050.00512.59
5.4.280.0080.00312.44
5.4.270.0050.00612.54
5.4.260.0000.01012.21
5.4.250.0110.00012.36
5.4.240.0100.00012.52
5.4.230.0070.00412.33
5.4.220.0070.00412.06
5.4.210.0080.00212.01
5.4.200.0110.00012.18
5.4.190.0110.00012.19
5.4.180.0090.00312.33
5.4.170.0110.00012.22
5.4.160.0070.00412.33
5.4.150.0080.00312.34
5.4.140.0070.00312.35
5.4.130.0060.00312.14
5.4.120.0080.00312.43
5.4.110.0030.00712.42
5.4.100.0100.00012.27
5.4.90.0070.00312.25
5.4.80.0050.00512.49
5.4.70.0080.00312.45
5.4.60.0050.00512.55
5.4.50.0050.00512.16
5.4.40.0070.00312.32
5.4.30.0070.00412.30
5.4.20.0050.00512.43
5.4.10.0080.00312.19
5.4.00.0000.01012.12
5.3.290.0040.00712.65
5.3.280.0100.00012.84
5.3.270.0070.00312.63
5.3.260.0110.00012.61
5.3.250.0080.00312.74
5.3.240.0070.00412.54
5.3.230.0110.00012.84
5.3.220.0090.00312.55
5.3.210.0110.00012.82
5.3.200.0070.00312.57
5.3.190.0110.00012.59
5.3.180.0100.00012.86
5.3.170.0080.00412.74
5.3.160.0060.00512.70
5.3.150.0040.00713.03
5.3.140.0050.00512.68
5.3.130.0080.00312.73
5.3.120.0070.00312.95
5.3.110.0030.00712.79
5.3.100.0000.01012.66
5.3.90.0070.00412.93
5.3.80.0100.00012.66
5.3.70.0040.00712.73
5.3.60.0100.00012.93
5.3.50.0070.00312.85
5.3.40.0000.01012.57
5.3.30.0100.00012.81
5.3.20.0100.00012.77
5.3.10.0030.00612.35
5.3.00.0080.00212.57
5.2.170.0060.00311.81
5.2.160.0040.00411.60
5.2.150.0060.00211.64
5.2.140.0050.00311.84
5.2.130.0080.00011.66
5.2.120.0080.00011.62
5.2.110.0080.00011.84
5.2.100.0040.00411.74
5.2.90.0080.00011.83
5.2.80.0000.00911.52
5.2.70.0080.00011.78
5.2.60.0040.00411.43
5.2.50.0070.00211.88
5.2.40.0060.00211.59
5.2.30.0000.00811.48
5.2.20.0060.00311.61
5.2.10.0040.00411.59
5.2.00.0000.00811.36
5.1.60.0000.00710.84
5.1.50.0050.00210.67
5.1.40.0070.00010.95
5.1.30.0070.00010.84
5.1.20.0050.00210.73
5.1.10.0020.00510.96
5.1.00.0000.00710.46
5.0.50.0000.00710.14
5.0.40.0060.00010.04
5.0.30.0030.0039.74
5.0.20.0060.0009.71
5.0.10.0060.0009.60
5.0.00.0060.0009.60
4.4.90.0040.0009.60
4.4.80.0040.0009.60
4.4.70.0030.0009.60
4.4.60.0030.0009.60
4.4.50.0000.0039.60
4.4.40.0000.0049.60
4.4.30.0030.0009.60
4.4.20.0040.0009.60
4.4.10.0040.0009.60
4.4.00.0040.0009.60
4.3.110.0040.0009.60
4.3.100.0040.0009.60
4.3.90.0030.0019.60
4.3.80.0040.0009.60
4.3.70.0000.0049.60
4.3.60.0040.0009.60
4.3.50.0000.0049.60
4.3.40.0040.0009.60
4.3.30.0030.0009.60
4.3.20.0000.0039.60
4.3.10.0030.0009.60
4.3.00.0030.0009.60

preferences:
31.61 ms | 403 KiB | 5 Q