3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function validateStringArray(string ...$strings) {} function validateIntArray(int ...$strings) {} 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]);

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.60.0080.00818.68
8.3.50.0130.00316.45
8.3.40.0140.00718.55
8.3.30.0100.01018.69
8.3.20.0080.01118.91
8.3.10.0040.00423.50
8.3.00.0060.00319.82
8.2.180.0130.00816.50
8.2.170.0070.01422.96
8.2.160.0040.01120.53
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00419.70
8.2.120.0080.00026.35
8.2.110.0090.00020.38
8.2.100.0080.00317.78
8.2.90.0000.00819.11
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0000.00717.91
8.2.50.0040.00418.07
8.2.40.0030.00518.00
8.2.30.0040.00417.89
8.2.20.0080.00017.87
8.2.10.0030.00519.30
8.2.00.0030.00517.52
8.1.280.0000.01725.92
8.1.270.0130.00618.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00622.72
8.1.230.0060.00617.77
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0080.00017.35
8.1.190.0060.00317.35
8.1.180.0090.00318.10
8.1.170.0000.00818.82
8.1.160.0000.00718.89
8.1.150.0000.00719.00
8.1.140.0000.00722.04
8.1.130.0030.00320.18
8.1.120.0000.00717.39
8.1.110.0040.00417.48
8.1.100.0040.00417.47
8.1.90.0030.00517.41
8.1.80.0000.00917.46
8.1.70.0000.00717.47
8.1.60.0030.00617.63
8.1.50.0040.00417.44
8.1.40.0060.00317.41
8.1.30.0050.00317.67
8.1.20.0040.00417.65
8.1.10.0040.00417.47
8.1.00.0080.00017.50
8.0.300.0000.00718.77
8.0.290.0000.00916.75
8.0.280.0070.00018.31
8.0.270.0070.00017.25
8.0.260.0060.00018.26
8.0.250.0090.00016.95
8.0.240.0030.00316.96
8.0.230.0070.00016.94
8.0.220.0030.00316.94
8.0.210.0070.00016.90
8.0.200.0060.00016.82
8.0.190.0030.00616.94
8.0.180.0040.00416.81
8.0.170.0000.00816.83
8.0.160.0080.00316.94
8.0.150.0040.00416.78
8.0.140.0040.00416.90
8.0.130.0000.00613.31
8.0.120.0000.00716.85
8.0.110.0040.00416.85
8.0.100.0000.00716.95
8.0.90.0030.00517.00
8.0.80.0050.01316.99
8.0.70.0000.00717.00
8.0.60.0080.00016.83
8.0.50.0040.00416.82
8.0.30.0090.00817.01
8.0.20.0110.00917.40
8.0.10.0000.00717.09
8.0.00.0110.00716.79
7.4.330.0030.00315.55
7.4.320.0030.00316.50
7.4.300.0000.00716.40
7.4.290.0000.00716.48
7.4.280.0070.00016.47
7.4.270.0040.00416.59
7.4.260.0030.00316.46
7.4.250.0000.00716.35
7.4.240.0000.00816.59
7.4.230.0030.00316.47
7.4.220.0080.00016.57
7.4.210.0080.00916.53
7.4.200.0000.00716.48
7.4.160.0100.00816.51
7.4.140.0100.00717.86
7.4.130.0100.01316.39
7.4.120.0110.00816.46
7.4.110.0130.00316.35
7.4.100.0110.01416.55
7.4.90.0100.01316.50
7.4.80.0060.01319.39
7.4.70.0080.00816.33
7.4.60.0080.00816.54
7.4.50.0090.00316.54
7.4.40.0090.01216.32
7.4.00.0090.00615.02
7.3.330.0060.00013.08
7.3.320.0070.00013.11
7.3.310.0000.00716.19
7.3.300.0000.00716.34
7.3.290.0070.00016.34
7.3.280.0110.00416.30
7.3.260.0100.01016.55
7.3.240.0100.00816.47
7.3.230.0040.01216.33
7.3.210.0040.01816.43
7.3.200.0060.01016.38
7.3.190.0100.01016.35
7.3.180.0040.01216.34
7.3.170.0120.00916.34
7.3.160.0130.00316.36
7.3.120.0110.00714.85
7.3.110.0070.01114.71
7.3.100.0100.00314.89
7.3.90.0060.00614.90
7.3.80.0090.00414.94
7.3.70.0030.00614.79
7.3.60.0030.00914.88
7.3.50.0030.01214.95
7.3.40.0030.01014.71
7.3.30.0040.00714.93
7.3.20.0070.00316.78
7.3.10.0100.00316.69
7.3.00.0070.00316.77
7.2.330.0090.00916.60
7.2.320.0100.00716.62
7.2.310.0080.00916.42
7.2.300.0140.00416.46
7.2.290.0080.00816.31
7.2.250.0090.00914.86
7.2.240.0140.00714.54
7.2.230.0060.00915.18
7.2.220.0040.01115.10
7.2.210.0070.00714.93
7.2.200.0000.01415.00
7.2.190.0060.00614.86
7.2.180.0000.01315.08
7.2.170.0090.00014.77
7.2.110.0780.00316.52
7.2.100.0770.00614.62
7.2.90.0880.00714.72
7.2.80.0900.00614.75
7.2.70.0890.01014.57
7.2.60.0940.00314.95
7.2.50.0800.01015.10
7.2.40.1000.01015.06
7.2.30.1180.01314.95
7.2.20.0660.00014.88
7.2.10.0870.00714.84
7.2.00.0930.00714.91
7.1.330.0060.00815.87
7.1.320.0080.00615.79
7.1.310.0040.01015.56
7.1.300.0070.00715.83
7.1.290.0070.00715.78
7.1.280.0070.00415.71
7.1.270.0000.01515.65
7.1.260.0080.00715.68
7.1.230.0900.00613.93
7.1.220.0740.01313.96
7.1.210.0870.00313.75
7.1.200.1080.00513.91
7.1.190.0900.00613.77
7.1.180.0830.00313.66
7.1.170.0960.00313.78
7.1.160.0910.01013.62
7.1.150.1200.00313.77
7.1.140.0880.00613.72
7.1.130.1000.00313.55
7.1.120.0940.00913.90
7.1.110.1220.00313.71
7.1.100.1620.01013.85
7.1.90.0910.00713.40
7.1.80.0970.00313.66
7.1.70.0890.00713.80
7.1.60.1330.01031.38
7.1.50.1030.00731.55
7.1.40.1110.01031.79
7.1.30.1140.00731.93
7.1.20.1200.00631.60
7.1.10.0840.01013.91
7.1.00.0990.00713.64
5.6.380.0090.00814.16

preferences:
63.46 ms | 400 KiB | 5 Q