3v4l.org

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

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.0070.01116.59
8.3.60.0110.01118.18
8.3.50.0110.00416.46
8.3.40.0090.00618.58
8.3.30.0060.00918.46
8.3.20.0040.00418.79
8.3.10.0030.00623.71
8.3.00.0080.00021.30
8.2.190.0100.01016.75
8.2.180.0070.01116.63
8.2.170.0120.00322.96
8.2.160.0110.00320.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00320.81
8.2.110.0040.00420.11
8.2.100.0080.00417.59
8.2.90.0050.00317.78
8.2.80.0090.00017.97
8.2.70.0050.00317.91
8.2.60.0000.00817.91
8.2.50.0030.00618.10
8.2.40.0040.00419.11
8.2.30.0040.00419.20
8.2.20.0000.00718.00
8.2.10.0070.00019.45
8.2.00.0000.00817.41
8.1.280.0000.01425.92
8.1.270.0040.00418.82
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0000.01217.46
8.1.230.0070.00422.70
8.1.220.0060.00317.74
8.1.210.0080.00018.92
8.1.200.0000.00917.23
8.1.190.0060.00617.10
8.1.180.0090.00018.10
8.1.170.0000.00818.66
8.1.160.0000.00718.64
8.1.150.0040.00418.64
8.1.140.0000.00722.22
8.1.130.0030.00319.99
8.1.120.0000.00717.26
8.1.110.0030.00517.24
8.1.100.0000.00717.30
8.1.90.0040.00417.35
8.1.80.0040.00417.17
8.1.70.0030.00317.35
8.1.60.0030.00517.45
8.1.50.0000.00817.39
8.1.40.0000.00717.46
8.1.30.0050.00317.57
8.1.20.0000.00717.58
8.1.10.0060.00317.50
8.1.00.0050.00217.42
8.0.300.0050.00219.65
8.0.290.0030.00616.63
8.0.280.0040.00418.43
8.0.270.0070.00017.14
8.0.260.0000.00620.23
8.0.250.0030.00316.90
8.0.240.0080.00016.86
8.0.230.0000.00916.93
8.0.220.0000.00716.75
8.0.210.0030.00316.79
8.0.200.0000.00716.82
8.0.190.0050.00216.85
8.0.180.0000.00716.88
8.0.170.0050.00316.84
8.0.160.0000.00716.71
8.0.150.0050.00316.73
8.0.140.0040.00416.75
8.0.130.0000.00513.22
8.0.120.0040.00416.80
8.0.110.0000.00816.84
8.0.100.0000.00816.82
8.0.90.0000.00816.80
8.0.80.0080.01116.79
8.0.70.0050.00316.82
8.0.60.0070.00016.83
8.0.50.0000.00816.70
8.0.30.0100.00917.06
8.0.20.0120.00717.40
8.0.10.0070.00016.91
8.0.00.0090.01016.69
7.4.330.0020.00215.55
7.4.320.0030.00316.48
7.4.300.0030.00316.59
7.4.290.0000.00716.65
7.4.280.0030.00516.58
7.4.270.0040.00416.52
7.4.260.0000.01016.60
7.4.250.0030.00316.48
7.4.240.0030.00316.50
7.4.230.0070.00016.50
7.4.220.0000.00716.42
7.4.210.0040.01216.52
7.4.200.0000.00716.44
7.4.160.0090.01016.51
7.4.140.0100.00817.86
7.4.130.0110.00716.27
7.4.120.0090.01116.50
7.4.110.0080.00916.46
7.4.100.0030.01316.41
7.4.90.0090.00916.25
7.4.80.0060.01619.39
7.4.70.0080.00816.58
7.4.60.0100.00716.39
7.4.50.0070.01016.25
7.4.40.0060.01216.27
7.4.10.0110.00714.95
7.4.00.0030.01315.04
7.3.330.0020.00213.21
7.3.320.0050.00013.18
7.3.310.0030.00316.05
7.3.300.0000.00716.14
7.3.290.0000.00716.24
7.3.280.0080.00916.21
7.3.260.0130.00616.30
7.3.240.0130.00516.36
7.3.230.0080.00816.30
7.3.210.0070.01716.26
7.3.200.0070.01016.17
7.3.190.0070.00916.14
7.3.180.0110.00816.29
7.3.170.0130.00716.39
7.3.160.0090.01016.43
7.3.130.0000.01514.95
7.3.120.0130.00314.65
7.3.110.0030.01314.44
7.3.100.0100.00614.57
7.3.90.0120.00314.66
7.3.80.0060.00914.54
7.3.70.0090.00014.66
7.3.60.0000.01114.81
7.3.50.0030.01014.79
7.3.40.0030.01214.57
7.3.30.0030.01014.61
7.3.20.0120.00016.62
7.3.10.0030.01016.39
7.3.00.0060.00316.62
7.2.330.0090.00916.27
7.2.320.0170.00016.45
7.2.310.0100.00716.60
7.2.300.0070.01016.27
7.2.290.0080.00816.57
7.2.260.0110.00714.79
7.2.250.0030.01515.01
7.2.240.0090.00614.95
7.2.230.0000.01314.84
7.2.220.0030.00914.83
7.2.210.0040.01214.84
7.2.200.0030.01014.76
7.2.190.0040.01114.74
7.2.180.0060.00614.75
7.2.170.0040.01514.78
7.2.160.0060.01014.44
7.2.150.0060.00316.59
7.2.140.0100.00616.75
7.2.130.0090.00616.75
7.2.120.0000.00916.54
7.2.110.0510.00515.46
7.2.100.0440.00515.60
7.2.90.0410.00815.63
7.2.80.0390.00815.62
7.2.70.0530.00715.83
7.2.60.0390.00515.87
7.2.50.0490.00915.88
7.2.40.0390.00915.70
7.2.30.0380.00715.85
7.2.20.0410.01015.80
7.2.10.0490.00515.60
7.2.00.0540.00915.72
7.1.330.0040.00815.55
7.1.320.0130.00615.55
7.1.310.0030.00615.39
7.1.300.0080.00815.32
7.1.290.0070.00715.59
7.1.280.0000.01715.49
7.1.270.0000.01215.38
7.1.260.0060.00615.64
7.1.250.0000.00915.66
7.1.240.0040.01215.64
7.1.230.0330.00314.67
7.1.220.0420.00414.79
7.1.210.0390.00514.46
7.1.200.0420.00214.67
7.1.190.0390.00914.70
7.1.180.0550.00614.56
7.1.170.0530.00514.63
7.1.160.0450.00814.61
7.1.150.0370.01014.63
7.1.140.0440.00314.49
7.1.130.0600.00314.49
7.1.120.0130.00715.36
7.1.110.0080.00715.56
7.1.100.0050.00915.38
7.1.90.0060.00615.57
7.1.80.0100.00415.50
7.1.70.0040.00815.33
7.1.60.0100.01124.54
7.1.50.0200.00524.37
7.1.40.0150.00624.58
7.1.30.0150.01024.49
7.1.20.0140.01424.51
7.1.10.0050.01115.25
7.1.00.0090.00715.15
7.0.330.0040.00715.25
7.0.320.0030.00714.92
7.0.310.0040.00414.95
7.0.300.0000.00815.30
7.0.290.0030.00715.01
7.0.280.0030.00515.23
7.0.270.0030.00615.27
7.0.260.0100.00715.46
7.0.250.0120.00315.25
7.0.240.0040.01115.18
7.0.230.0000.00815.27
7.0.220.0070.00715.39
7.0.210.0060.00315.16
7.0.200.0000.01315.04
7.0.190.0090.00615.28
7.0.180.0090.00615.21
7.0.170.0070.00715.32
7.0.160.0070.00715.30
7.0.150.0100.00315.32
7.0.140.0080.00315.37
7.0.130.0070.00315.24
7.0.120.0030.01315.46
7.0.110.0090.00915.11
7.0.100.0120.00415.19
7.0.90.0000.01215.23
7.0.80.0000.00815.11
7.0.70.0070.00714.92
7.0.60.0090.00615.29
7.0.50.0130.00315.33
7.0.40.0030.01013.34
7.0.30.0070.00713.33
7.0.20.0070.00713.41
7.0.10.0070.00713.31
7.0.00.0000.01113.19
5.6.400.0030.01013.82
5.6.390.0070.00714.35
5.6.380.0100.00514.14
5.6.370.0040.01114.40
5.6.360.0040.00814.16
5.6.350.0150.00014.06
5.6.340.0100.00614.46
5.6.330.0060.00814.29
5.6.320.0080.00314.39
5.6.310.0040.00814.50
5.6.300.0040.00714.28
5.6.290.0060.00613.93
5.6.280.0040.00714.32
5.6.270.0070.01013.96
5.6.260.0090.00614.22
5.6.250.0030.00614.54
5.6.240.0040.01114.01
5.6.230.0110.00414.01
5.6.220.0030.00914.17
5.6.210.0060.00914.16
5.6.200.0110.00613.95
5.6.190.0030.01414.38
5.6.180.0030.00614.16
5.6.170.0040.01114.04
5.6.160.0060.00314.15
5.6.150.0000.01014.04
5.6.140.0040.01113.92
5.6.130.0070.00714.22
5.6.120.0030.00614.34
5.6.110.0100.00313.96
5.6.100.0070.00713.91
5.6.90.0070.00714.05
5.6.80.0070.00714.06
5.6.70.0090.00314.12
5.6.60.0030.01014.21
5.6.50.0140.00013.84
5.6.40.0050.00513.95
5.6.30.0030.01114.27
5.6.20.0040.01214.18
5.6.10.0000.00914.20
5.6.00.0060.00914.09

preferences:
48.27 ms | 401 KiB | 5 Q