3v4l.org

run code in 300+ PHP versions simultaneously
<?php //declare(strict_types=1); function validateStringArray(string ...$strings) {} function validateIntArray(int ...$ints) {} function processStringArray(array $strings) { try { validateStringArray(...$strings); } catch (Error $error) { throw new Exception("only arrays of strings are allowed"); } } function processIntArray(array $arr) { try { validateIntArray(...$arr); } catch (Error $error) { throw new Exception("only arrays of ints are allowed"); } } //processStringArray(['abc', 'eef', 'a']); processIntArray([12,3,4,1.2,'3']);

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.70.0140.00716.62
8.3.60.0070.00718.43
8.3.50.0080.00816.12
8.3.40.0070.01118.75
8.3.30.0040.01118.71
8.3.20.0000.01918.54
8.3.10.0070.00723.48
8.3.00.0080.00819.61
8.2.190.0070.01716.58
8.2.180.0190.00616.38
8.2.170.0210.00022.96
8.2.160.0100.00320.43
8.2.150.0000.00724.18
8.2.140.0070.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00420.98
8.2.110.0070.00422.19
8.2.100.0110.00017.72
8.2.90.0110.00017.91
8.2.80.0030.00618.78
8.2.70.0040.00417.91
8.2.60.0040.00417.91
8.2.50.0040.00418.10
8.2.40.0030.00619.05
8.2.30.0000.00819.29
8.2.20.0050.00317.99
8.2.10.0000.00719.43
8.2.00.0000.00917.62
8.1.280.0100.01025.92
8.1.270.0110.00718.74
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0000.00922.14
8.1.230.0090.00321.04
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0080.00017.10
8.1.180.0000.00818.10
8.1.170.0080.00018.65
8.1.160.0050.00218.68
8.1.150.0050.00218.67
8.1.140.0000.00722.13
8.1.130.0030.00320.18
8.1.120.0050.00217.38
8.1.110.0040.00417.29
8.1.100.0030.00317.22
8.1.90.0040.00417.21
8.1.80.0060.00317.38
8.1.70.0030.00317.28
8.1.60.0060.00317.52
8.1.50.0030.00517.46
8.1.40.0030.00517.34
8.1.30.0040.00417.63
8.1.20.0030.00617.56
8.1.10.0000.00717.50
8.1.00.0000.00817.46
8.0.300.0000.00720.06
8.0.290.0030.00616.63
8.0.280.0050.00318.43
8.0.270.0000.00717.09
8.0.260.0000.00620.19
8.0.250.0000.00916.85
8.0.240.0070.00016.77
8.0.230.0030.00316.86
8.0.220.0030.00316.75
8.0.210.0070.00016.71
8.0.200.0060.00016.91
8.0.190.0060.00316.86
8.0.180.0040.00416.81
8.0.170.0000.00816.71
8.0.160.0030.00616.80
8.0.150.0000.00816.75
8.0.140.0050.00316.80
8.0.130.0000.00613.23
8.0.120.0000.00716.64
8.0.110.0000.00716.63
8.0.100.0040.00416.86
8.0.90.0030.00516.82
8.0.80.0080.00816.76
8.0.70.0040.00416.69
8.0.60.0050.00316.79
8.0.50.0050.00216.68
8.0.30.0070.01117.04
8.0.20.0140.00517.40
8.0.10.0050.00316.80
8.0.00.0160.01016.72
7.4.330.0030.00315.55
7.4.320.0000.00616.49
7.4.300.0000.00716.57
7.4.290.0000.00716.51
7.4.280.0070.00016.58
7.4.270.0000.00716.57
7.4.260.0030.00316.42
7.4.250.0040.00416.54
7.4.240.0070.00016.59
7.4.230.0070.00016.40
7.4.220.0070.00016.38
7.4.210.0090.00916.61
7.4.200.0030.00516.58
7.4.160.0080.00716.45
7.4.140.0110.00717.86
7.4.130.0120.00916.46
7.4.120.0090.01116.45
7.4.110.0040.01216.36
7.4.100.0110.00716.55
7.4.90.0070.01716.31
7.4.80.0100.00719.39
7.4.70.0030.01316.53
7.4.60.0090.00616.41
7.4.50.0000.01516.38
7.4.40.0110.01016.43
7.4.10.0060.01214.91
7.4.00.0100.00514.96
7.3.330.0060.00013.02
7.3.320.0050.00213.25
7.3.310.0070.00016.28
7.3.300.0060.00016.29
7.3.290.0000.00716.11
7.3.280.0070.01116.17
7.3.260.0120.00816.38
7.3.240.0070.01016.41
7.3.230.0100.01416.34
7.3.210.0090.00616.19
7.3.200.0120.00316.25
7.3.190.0060.01616.59
7.3.180.0090.00616.25
7.3.170.0100.01316.28
7.3.160.0100.00716.23
7.3.130.0110.00714.93
7.3.120.0060.01014.70
7.3.110.0120.00614.75
7.3.100.0060.00615.01
7.3.90.0060.00614.48
7.3.80.0000.01314.86
7.3.70.0060.00614.55
7.3.60.0120.00414.55
7.3.50.0040.01214.89
7.3.40.0060.00314.56
7.3.30.0120.00314.64
7.3.20.0070.00716.55
7.3.10.0060.00616.59
7.3.00.0030.01016.48
7.2.330.0150.00316.27
7.2.320.0140.00316.29
7.2.310.0030.01416.39
7.2.300.0080.00816.53
7.2.290.0060.01216.40
7.2.260.0070.01014.91
7.2.250.0070.01015.16
7.2.240.0070.01114.53
7.2.230.0060.00615.00
7.2.220.0120.00614.81
7.2.210.0040.01114.91
7.2.200.0060.00615.03
7.2.190.0130.00714.89
7.2.180.0030.00914.89
7.2.170.0000.01514.84
7.2.160.0120.00314.79
7.2.150.0060.01016.69
7.2.140.0060.00916.84
7.2.130.0070.00716.79
7.2.120.0040.00816.90
7.2.110.0080.00915.80
7.2.100.0110.00815.49
7.2.90.0130.00415.47
7.2.80.0180.01115.74
7.2.70.0990.00915.92
7.2.60.1260.00915.69
7.2.50.1000.00515.84
7.2.40.0910.00815.83
7.2.30.0650.00515.80
7.2.20.1050.00715.87
7.2.10.0980.00715.69
7.2.00.1390.00815.70
7.1.330.0060.00915.65
7.1.320.0070.00715.63
7.1.310.0000.01515.79
7.1.300.0000.01715.70
7.1.290.0030.00615.76
7.1.280.0030.01015.44
7.1.270.0150.00015.61
7.1.260.0030.01315.82
7.1.250.0030.01015.87
7.1.240.0060.00915.27
7.1.230.0730.00914.74
7.1.220.0090.01114.66
7.1.210.0080.00514.80
7.1.200.0950.00714.74
7.1.190.0890.00714.59
7.1.180.0950.00714.58
7.1.170.1000.00514.66
7.1.160.1310.00714.80
7.1.150.0980.00814.78
7.1.140.1070.00814.73
7.1.130.1010.00714.72
7.1.120.1120.00514.73
7.1.110.0980.01114.70
7.1.100.1100.00514.77
7.1.90.1010.00314.57
7.1.80.0970.00514.85
7.1.70.0860.01014.64
7.1.60.0220.00723.80
7.1.50.1340.00823.70
7.1.40.1430.01023.77
7.1.30.1530.00523.71
7.1.20.1410.00823.67
7.1.10.0090.00714.65
7.1.00.0250.00514.58
7.0.330.0040.01115.26
7.0.320.0040.00715.54
7.0.310.0030.00815.28
7.0.300.0000.01415.40
7.0.290.0060.00615.32
7.0.280.0070.00715.39
7.0.270.0100.00015.25
7.0.260.0090.00015.12
7.0.250.0100.00315.35
7.0.240.0000.01415.41
7.0.230.0090.00315.49
7.0.220.0030.00915.17
7.0.210.0060.00615.31
7.0.200.0040.00715.41
7.0.190.0030.00815.31
7.0.180.0070.00715.44
7.0.170.0070.00715.34
7.0.160.0070.00315.13
7.0.150.0070.00715.00
7.0.140.0090.00615.43
7.0.130.0000.01315.42
7.0.120.0040.01115.40
7.0.110.0030.00515.36
7.0.100.0070.00715.33
7.0.90.0030.00715.36
7.0.80.0040.00415.44
7.0.70.0070.00715.33
7.0.60.0070.00415.24
7.0.50.0000.01215.38
7.0.40.0040.01113.29
7.0.30.0070.00313.42
7.0.20.0030.00713.38
7.0.10.0000.01413.46
7.0.00.0070.00413.29
5.6.400.0090.00914.20
5.6.390.0000.00914.39
5.6.380.0070.00514.50
5.6.370.0100.00013.88
5.6.360.0000.01514.26
5.6.350.0090.00614.37
5.6.340.0070.01014.50
5.6.330.0080.00414.34
5.6.320.0070.00414.38
5.6.310.0060.00914.49
5.6.300.0000.00914.60
5.6.290.0090.00614.20
5.6.280.0100.00314.26
5.6.270.0060.00914.39
5.6.260.0110.00414.01
5.6.250.0100.00314.16
5.6.240.0000.00914.24
5.6.230.0040.01214.30
5.6.220.0060.01014.29
5.6.210.0030.00914.28
5.6.200.0000.01114.33
5.6.190.0120.00314.41
5.6.180.0060.00613.91
5.6.170.0030.01214.30
5.6.160.0070.00614.19
5.6.150.0030.00714.32
5.6.140.0070.00714.34
5.6.130.0030.00613.95
5.6.120.0030.00614.22
5.6.110.0030.01314.19
5.6.100.0120.00014.27
5.6.90.0040.01213.95
5.6.80.0060.00614.08
5.6.70.0090.00014.24
5.6.60.0070.00714.38
5.6.50.0030.01014.02
5.6.40.0070.00714.09
5.6.30.0060.00314.02
5.6.20.0100.00314.29
5.6.10.0060.00613.97
5.6.00.0030.01014.22

preferences:
39.65 ms | 401 KiB | 5 Q