3v4l.org

run code in 300+ PHP versions simultaneously
<?php function array_or_null(array $test = null) { return $test; } var_dump(array_or_null(null), array_or_null(array()));

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.0100.01018.10
8.4.10.0120.00620.61
8.3.150.0040.00418.93
8.3.140.0040.00420.78
8.3.130.0040.00416.46
8.3.120.0130.00619.07
8.3.110.0060.00320.94
8.3.100.0050.00318.30
8.3.90.0040.00426.77
8.3.80.0060.00319.36
8.3.70.0070.01416.63
8.3.60.0100.01016.49
8.3.50.0100.00723.63
8.3.40.0070.01321.94
8.3.30.0120.00318.34
8.3.20.0000.00824.18
8.3.10.0050.00224.66
8.3.00.0000.00726.16
8.2.260.0080.00017.19
8.2.250.0060.00316.70
8.2.240.0050.00518.59
8.2.230.0060.00322.58
8.2.220.0100.00724.06
8.2.210.0040.00426.77
8.2.200.0030.00616.38
8.2.190.0120.00316.58
8.2.180.0110.00725.92
8.2.170.0150.00018.84
8.2.160.0130.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0030.00626.35
8.2.110.0110.00022.27
8.2.100.0040.00719.51
8.2.90.0080.00017.47
8.2.80.0000.00818.66
8.2.70.0090.00017.80
8.2.60.0000.01017.91
8.2.50.0000.00818.10
8.2.40.0050.00219.05
8.2.30.0070.00019.02
8.2.20.0080.00017.85
8.2.10.0040.00419.18
8.2.00.0040.00419.11
8.1.310.0110.00416.75
8.1.300.0030.00517.65
8.1.290.0060.00330.84
8.1.280.0090.00625.92
8.1.270.0040.00423.96
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0030.00622.05
8.1.230.0080.00317.70
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.21
8.1.190.0040.00417.00
8.1.180.0050.00318.10
8.1.170.0060.00318.50
8.1.160.0040.00418.94
8.1.150.0000.00718.68
8.1.140.0000.00718.76
8.1.130.0070.00017.27
8.1.120.0030.00317.21
8.1.110.0040.00417.36
8.1.100.0060.00317.31
8.1.90.0000.00717.22
8.1.80.0100.00017.27
8.1.70.0030.00317.36
8.1.60.0030.00517.59
8.1.50.0040.00417.45
8.1.40.0070.00417.43
8.1.30.0040.00417.55
8.1.20.0040.00417.54
8.1.10.0040.00417.41
8.1.00.0000.00817.19
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.34
8.0.270.0040.00416.59
8.0.260.0030.00316.70
8.0.250.0030.00316.82
8.0.240.0030.00316.83
8.0.230.0000.00716.68
8.0.220.0000.00616.65
8.0.210.0030.00716.73
8.0.200.0040.00416.86
8.0.190.0070.00016.70
8.0.180.0050.00316.66
8.0.170.0060.00316.74
8.0.160.0040.00416.85
8.0.150.0070.00016.69
8.0.140.0030.00616.65
8.0.130.0000.00513.09
8.0.120.0050.00416.71
8.0.110.0000.00716.78
8.0.100.0000.00716.73
8.0.90.0000.00716.65
8.0.80.0080.00916.76
8.0.70.0000.00716.63
8.0.60.0050.00316.65
8.0.50.0030.00616.65
8.0.30.0000.02017.03
8.0.20.0110.01116.93
8.0.10.0040.00416.77
8.0.00.0090.00916.72
7.4.330.0000.00515.55
7.4.320.0070.00016.34
7.4.300.0060.00316.41
7.4.290.0080.00016.36
7.4.280.0000.00816.41
7.4.270.0030.00316.43
7.4.260.0000.00513.19
7.4.250.0000.00816.50
7.4.240.0070.00016.54
7.4.230.0030.00316.27
7.4.220.0020.00516.48
7.4.210.0060.00816.48
7.4.200.0030.00316.63
7.4.130.0100.00816.43
7.4.120.0150.00816.54
7.4.110.0140.00416.20
7.4.100.0130.00316.30
7.4.90.0030.01416.14
7.4.80.0100.00916.42
7.4.70.0080.00816.25
7.4.60.0120.00616.27
7.4.50.0110.01116.34
7.4.40.0140.00316.29
7.4.30.0100.00716.17
7.4.20.0060.01216.38
7.4.10.0040.01416.27
7.4.00.0030.01316.13
7.3.330.0000.00716.26
7.3.320.0000.00713.06
7.3.310.0000.00716.26
7.3.300.0070.00016.23
7.3.290.0130.00716.22
7.3.260.0100.01016.22
7.3.230.0060.01316.29
7.3.220.0180.00016.09
7.3.210.0110.00516.24
7.3.200.0070.01116.03
7.3.190.0060.01116.18
7.3.180.0070.01116.29
7.3.170.0080.00916.52
7.3.160.0060.01316.19
7.3.150.0030.01316.19
7.3.140.0060.01216.28
7.3.130.0150.00416.13
7.3.120.0170.00316.39
7.3.110.0070.01416.43
7.3.100.0100.00716.13
7.3.90.0130.01316.27
7.3.80.0100.00716.12
7.3.70.0040.01816.32
7.3.60.0090.01216.14
7.3.50.0170.00016.07
7.3.40.0100.00716.25
7.3.30.0130.00916.26
7.3.20.0100.00716.12
7.3.10.0030.01316.40
7.3.00.0120.00616.09
7.2.340.0090.00916.05
7.2.330.0070.01016.23
7.2.320.0060.01216.56
7.2.310.0060.01216.59
7.2.300.0140.00316.40
7.2.290.0100.00716.24
7.2.280.0000.01716.25
7.2.270.0100.00716.48
7.2.260.0150.00316.18
7.2.250.0090.01016.47
7.2.240.0140.00916.18
7.2.230.0120.01216.41
7.2.220.0030.01416.10
7.2.210.0070.01116.26
7.2.200.0140.00716.50
7.2.190.0150.00816.23
7.2.180.0070.01116.20
7.2.170.0030.01616.48
7.2.160.0030.01316.48
7.2.150.0070.01016.20
7.2.140.0090.00916.36
7.2.130.0150.00916.57
7.2.120.0130.00916.49
7.2.110.0140.00316.62
7.2.100.0090.01116.38
7.2.90.0130.00916.55
7.2.80.0170.00916.32
7.2.70.0130.01016.47
7.2.60.0200.00316.40
7.2.50.0140.00916.51
7.2.40.0060.01716.32
7.2.30.0070.01416.46
7.2.20.0080.01316.41
7.2.10.0080.01316.35
7.2.00.0170.01016.39
7.1.330.0270.00315.62
7.1.320.0260.00315.54
7.1.310.0170.01515.46
7.1.300.0200.01015.27
7.1.290.0250.00415.46
7.1.280.0210.01415.52
7.1.270.0190.01215.47
7.1.260.0320.00715.41
7.1.250.0180.01515.33
7.1.240.0300.00715.41
7.1.230.0180.01215.38
7.1.220.0200.01315.55
7.1.210.0280.00715.44
7.1.200.0250.00515.51
7.1.190.0180.01415.50
7.1.180.0250.00715.32
7.1.170.0630.01015.37
7.1.160.0310.00415.44
7.1.150.0180.01215.34
7.1.140.0270.00715.33
7.1.130.0250.00615.32
7.1.120.0290.00315.45
7.1.110.0300.00015.57
7.1.100.0280.00515.42
7.1.90.0260.01015.57
7.1.80.0390.00815.42
7.1.70.0230.00615.55
7.1.60.0310.00615.37
7.1.50.0160.01215.46
7.1.40.0140.01415.49
7.1.30.0210.00915.54
7.1.20.0280.00015.52
7.1.10.0270.00015.34
7.1.00.0190.01415.42
7.0.330.0140.01415.10
7.0.320.0240.00915.21
7.0.310.0240.00515.04
7.0.300.0180.01115.15
7.0.290.0190.01015.12
7.0.280.0170.01115.15
7.0.270.0260.00515.00
7.0.260.0130.01414.85
7.0.250.0190.00815.16
7.0.240.0210.00615.04
7.0.230.0220.01115.00
7.0.220.0250.00715.13
7.0.210.0180.00814.80
7.0.200.0140.01114.92
7.0.190.0160.00815.18
7.0.180.0210.00714.96
7.0.170.0230.00715.15
7.0.160.0160.00614.97
7.0.150.0170.00715.04
7.0.140.0040.02315.19
7.0.130.0230.01014.92
7.0.120.0210.00715.22
7.0.110.0240.00715.18
7.0.100.0280.00415.07
7.0.90.0160.01015.24
7.0.80.0150.01215.10
7.0.70.0210.01115.17
7.0.60.0450.01015.34
7.0.50.0210.00715.15
7.0.40.0140.01015.23
7.0.30.0170.00815.12
7.0.20.0210.00515.07
7.0.10.0190.00815.07
7.0.00.0180.01115.05
5.6.400.0220.01015.94
5.6.390.0210.00915.77
5.6.380.0290.00416.00
5.6.370.0150.01615.69
5.6.360.0160.01615.60
5.6.350.0160.01615.76
5.6.340.0210.01115.59
5.6.330.0150.01715.57
5.6.320.0180.01415.66
5.6.310.0120.01915.64
5.6.300.0200.01115.35
5.6.290.0100.01715.58
5.6.280.0180.01415.52
5.6.270.0230.01115.67
5.6.260.0200.01015.92
5.6.250.0230.00915.70
5.6.240.0170.01315.93
5.6.230.0210.00815.57
5.6.220.0120.01715.67
5.6.210.0190.00915.80
5.6.200.0190.00915.70
5.6.190.0170.01115.71
5.6.180.0230.00315.93
5.6.170.0220.01115.59
5.6.160.0240.01815.69
5.6.150.0150.01515.51
5.6.140.0150.01215.84
5.6.130.0210.01115.79
5.6.120.0210.00915.57
5.6.110.0210.00915.92
5.6.100.0230.00815.68
5.6.90.0200.01215.74
5.6.80.0190.01115.54
5.6.70.0240.00615.45
5.6.60.0170.01415.69
5.6.50.0210.00815.44
5.6.40.0180.01115.50
5.6.30.0170.01315.59
5.6.20.0270.01215.59
5.6.10.0270.00815.46
5.6.00.0200.01715.65
5.5.380.0180.01215.67
5.5.370.0160.01315.68
5.5.360.0170.01015.76
5.5.350.0240.00415.77
5.5.340.0250.00415.62
5.5.330.0230.00515.71
5.5.320.0190.01115.77
5.5.310.0160.01615.60
5.5.300.0140.01415.67
5.5.290.0180.01115.79
5.5.280.0250.00615.83
5.5.270.0170.01515.70
5.5.260.0250.00315.56
5.5.250.0200.01015.41
5.5.240.0260.01515.60
5.5.230.0280.00515.61
5.5.220.0210.00815.72
5.5.210.0180.01115.61
5.5.200.0250.00915.63
5.5.190.0160.01215.61
5.5.180.0180.01815.58
5.5.170.0200.01715.82
5.5.160.0180.01515.72
5.5.150.0210.01215.68
5.5.140.0210.01415.70
5.5.130.0210.01115.66
5.5.120.0170.01815.61
5.5.110.0200.01315.75
5.5.100.0230.01015.66
5.5.90.0270.00715.63
5.5.80.0180.01515.51
5.5.70.0230.01215.56
5.5.60.0220.01015.38
5.5.50.0240.01215.74
5.5.40.0220.00915.82
5.5.30.0240.01115.63
5.5.20.0230.02115.74
5.5.10.0190.02115.66
5.5.00.0260.01315.63
5.4.450.0190.00412.61
5.4.440.0180.00512.42
5.4.430.0120.01312.69
5.4.420.0190.00512.50
5.4.410.0120.00912.43
5.4.400.0250.00312.67
5.4.390.0180.00612.38
5.4.380.0110.01112.48
5.4.370.0240.00012.36
5.4.360.0220.00512.42
5.4.350.0170.01412.43
5.4.340.0170.00712.43
5.4.330.0170.00612.46
5.4.320.0230.00612.71
5.4.310.0190.00412.61
5.4.300.0170.01012.32
5.4.290.0180.00512.54
5.4.280.0170.00712.42
5.4.270.0150.00912.49
5.4.260.0160.01012.66
5.4.250.0120.01212.54
5.4.240.0230.00312.49
5.4.230.0140.01112.61
5.4.220.0230.00712.39
5.4.210.0210.00512.39
5.4.200.0170.01012.50
5.4.190.0170.00912.39
5.4.180.0260.00312.66
5.4.170.0170.01512.63
5.4.160.0180.00912.66
5.4.150.0190.00912.57
5.4.140.0150.00912.42
5.4.130.0180.00812.63
5.4.120.0160.01412.71
5.4.110.0160.01412.42
5.4.100.0220.00312.37
5.4.90.0220.00612.73
5.4.80.0120.01612.52
5.4.70.0130.01312.52
5.4.60.0140.01412.44
5.4.50.0110.01512.52
5.4.40.0130.01012.32
5.4.30.0170.00612.62
5.4.20.0100.01012.41
5.4.10.0160.00812.38
5.4.00.0130.01012.54
5.3.290.0160.01212.96
5.3.280.0140.01712.90
5.3.270.0200.01012.98
5.3.260.0180.01313.04
5.3.250.0280.00012.88
5.3.240.0170.01312.80
5.3.230.0200.01312.98
5.3.220.0200.01013.07
5.3.210.0140.01312.76
5.3.200.0160.01312.93
5.3.190.0160.00912.83
5.3.180.0200.00812.95
5.3.170.0200.00812.99
5.3.160.0240.00313.14
5.3.150.0130.01313.13
5.3.140.0120.01312.88
5.3.130.0230.00312.93
5.3.120.0140.01112.87
5.3.110.0230.00612.88
5.3.100.0170.00812.88
5.3.90.0190.00512.85
5.3.80.0170.00712.83
5.3.70.0220.00012.70
5.3.60.0160.00812.88
5.3.50.0160.01012.73
5.3.40.0120.01212.87
5.3.30.0170.00712.78
5.3.20.0160.00712.85
5.3.10.0110.01612.73
5.3.00.0120.01212.78
5.2.170.0120.00912.03
5.2.160.0130.00712.25
5.2.150.0120.00812.05
5.2.140.0100.01011.90
5.2.130.0040.01611.96
5.2.120.0080.01211.99
5.2.110.0180.00311.97
5.2.100.0160.00312.05
5.2.90.0160.00411.78
5.2.80.0090.01211.66
5.2.70.0120.00911.71
5.2.60.0150.00311.71
5.2.50.0170.00811.75
5.2.40.0190.00611.88
5.2.30.0170.00311.89
5.2.20.0200.00312.05
5.2.10.0140.00711.70
5.2.00.0080.01611.70
5.1.60.0150.00510.87
5.1.50.0130.00810.93
5.1.40.0140.00311.04
5.1.30.0100.00711.21
5.1.20.0100.01111.00
5.1.10.0130.00511.33
5.1.00.0090.01010.85
5.0.50.0040.01310.81
5.0.40.0120.00310.81
5.0.30.0110.00510.81
5.0.20.0070.00710.81
5.0.10.0080.00610.81
5.0.00.0130.00710.81
4.4.90.0070.00310.81
4.4.80.0090.00310.81
4.4.70.0090.00010.81
4.4.60.0050.00510.81
4.4.50.0050.00710.81
4.4.40.0070.00610.81
4.4.30.0110.00010.81
4.4.20.0110.00010.81
4.4.10.0060.00610.81
4.4.00.0040.00810.81
4.3.110.0030.00610.81
4.3.100.0030.00610.81
4.3.90.0070.00310.81
4.3.80.0080.00310.81
4.3.70.0100.00210.81
4.3.60.0030.00710.81
4.3.50.0090.00010.81
4.3.40.0070.00410.81
4.3.30.0090.00010.81
4.3.20.0000.00810.81
4.3.10.0080.00310.81
4.3.00.0070.00410.81

preferences:
37.44 ms | 403 KiB | 5 Q