3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function testArrayOfTuples($arrayOfTuples) { print_r($arrayOfTuples); if ($arrayOfTuples == null) { print_r("Got a NULL array of tuples!"); } else { print_r(count($arrayOfTuples)); } } } $a = new A; $a->testArrayOfTuples([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.0070.01016.38
8.3.50.0110.00716.24
8.3.40.0090.01218.79
8.3.30.0110.00318.64
8.3.20.0030.00619.02
8.3.10.0000.00718.98
8.3.00.0000.00819.55
8.2.180.0110.00418.29
8.2.170.0140.00422.96
8.2.160.0070.00720.64
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0070.00019.77
8.2.120.0070.00026.35
8.2.110.0150.00619.27
8.2.100.0110.00019.21
8.2.90.0000.00817.75
8.2.80.0000.00818.79
8.2.70.0000.00817.93
8.2.60.0050.00318.04
8.2.50.0040.00418.10
8.2.40.0070.00019.51
8.2.30.0040.00419.33
8.2.20.0040.00417.99
8.2.10.0030.00618.08
8.2.00.0040.00419.42
8.1.280.0130.00325.92
8.1.270.0040.00423.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00319.35
8.1.230.0070.00320.96
8.1.220.0080.00018.52
8.1.210.0030.00518.77
8.1.200.0030.00517.35
8.1.190.0080.00017.23
8.1.180.0080.00018.10
8.1.170.0000.01018.50
8.1.160.0000.00718.79
8.1.150.0000.00718.86
8.1.140.0040.00717.59
8.1.130.0050.00318.96
8.1.120.0030.00617.51
8.1.110.0040.00417.39
8.1.100.0000.00817.42
8.1.90.0000.00817.35
8.1.80.0030.00617.38
8.1.70.0070.00017.31
8.1.60.0040.00417.54
8.1.50.0000.00817.41
8.1.40.0070.00017.52
8.1.30.0030.00617.63
8.1.20.0070.00017.51
8.1.10.0030.00617.47
8.1.00.0000.00817.46
8.0.300.0070.00018.77
8.0.290.0080.00016.75
8.0.280.0030.00318.48
8.0.270.0030.00317.17
8.0.260.0030.00617.13
8.0.250.0000.00716.83
8.0.240.0040.00416.84
8.0.230.0000.00716.84
8.0.220.0000.00716.85
8.0.210.0000.00616.77
8.0.200.0000.00716.88
8.0.190.0040.00416.88
8.0.180.0030.00316.95
8.0.170.0000.00816.79
8.0.160.0040.00416.77
8.0.150.0030.00916.84
8.0.140.0000.00716.75
8.0.130.0030.00313.31
8.0.120.0000.00716.81
8.0.110.0050.00216.84
8.0.100.0000.00716.95
8.0.90.0040.00416.71
8.0.80.0110.01116.83
8.0.70.0000.00716.72
8.0.60.0040.00416.72
8.0.50.0070.00016.95
8.0.30.0090.00817.16
8.0.20.0100.00917.40
8.0.10.0080.00017.01
8.0.00.0110.00916.85
7.4.330.0020.00215.55
7.4.320.0020.00516.52
7.4.300.0000.00616.59
7.4.290.0050.00316.50
7.4.280.0000.00916.60
7.4.270.0000.00916.43
7.4.260.0070.00316.58
7.4.250.0000.00716.42
7.4.240.0080.00016.50
7.4.230.0070.00016.38
7.4.220.0040.00416.60
7.4.210.0050.01116.55
7.4.200.0070.00016.39
7.4.160.0100.00516.37
7.4.140.0080.01017.86
7.4.130.0050.01116.58
7.4.120.0090.01216.53
7.4.110.0160.00316.16
7.4.100.0110.01116.42
7.4.90.0110.00516.50
7.4.80.0120.01019.39
7.4.70.0120.00316.55
7.4.60.0070.01016.40
7.4.50.0060.00616.65
7.4.40.0120.01216.36
7.4.10.0100.01014.88
7.4.00.0080.01014.94
7.3.330.0000.00513.22
7.3.320.0060.00013.24
7.3.310.0030.00316.13
7.3.300.0070.00016.11
7.3.290.0030.00316.10
7.3.280.0060.00916.31
7.3.260.0100.00716.22
7.3.240.0100.00816.24
7.3.230.0080.00816.38
7.3.210.0130.00516.33
7.3.200.0000.01616.39
7.3.190.0130.00316.15
7.3.180.0030.01316.21
7.3.170.0050.01116.16
7.3.160.0070.01016.18
7.3.130.0100.00715.00
7.3.120.0020.01615.02
7.3.110.0100.00814.73
7.3.100.0050.00914.61
7.3.90.0040.00914.72
7.3.80.0020.00914.65
7.3.70.0050.00914.73
7.3.60.0030.00614.63
7.3.50.0090.00514.75
7.3.40.0060.00914.73
7.3.30.0050.00714.81
7.3.20.0060.00616.55
7.3.10.0030.00916.60
7.3.00.0080.00616.65
7.2.330.0110.00716.66
7.2.320.0160.02816.44
7.2.310.0060.01516.47
7.2.300.0130.01016.52
7.2.290.0130.00416.50
7.2.260.0040.01514.74
7.2.250.0110.00915.08
7.2.240.0060.00914.88
7.2.230.0070.00714.98
7.2.220.0020.01115.05
7.2.210.0050.01015.01
7.2.200.0080.00314.90
7.2.190.0060.00914.93
7.2.180.0030.01014.97
7.2.170.0040.01114.73
7.2.160.0060.01015.07
7.2.150.0060.00616.89
7.2.140.0030.01317.02
7.2.130.0070.01116.81
7.2.120.0060.00316.93
7.2.110.0030.00716.95
7.2.100.0110.00316.97
7.2.90.0000.01316.99
7.2.80.0090.00417.01
7.2.70.0000.01416.78
7.2.60.0720.00715.84
7.2.50.0670.00915.79
7.2.40.0670.00816.19
7.2.30.1460.00516.09
7.2.20.0900.00516.06
7.2.10.0560.00516.04
7.2.00.1040.00716.04
7.1.330.0080.00615.58
7.1.320.0040.00915.62
7.1.310.0070.01115.89
7.1.300.0050.00615.75
7.1.290.0030.00615.83
7.1.280.0060.01015.72
7.1.270.0020.00715.75
7.1.260.0020.01015.87
7.1.250.0030.01015.92
7.1.240.0000.01215.51
7.1.230.0070.00415.91
7.1.220.0030.01015.69
7.1.210.0000.00915.92
7.1.200.0050.00715.80
7.1.190.0090.00615.84
7.1.180.0000.01515.92
7.1.170.0590.00414.91
7.1.160.0800.00616.27
7.1.150.0780.01016.11
7.1.140.0610.00916.17
7.1.130.0880.01116.20
7.1.120.0880.01016.23
7.1.110.1030.01015.93
7.1.100.1010.00915.92
7.1.90.1020.01115.90
7.1.80.1050.00915.80
7.1.70.0990.00715.42
7.1.60.1000.01524.56
7.1.50.1140.00924.14
7.1.40.0910.01324.13
7.1.30.1200.01324.18
7.1.20.1170.01524.10
7.1.10.1220.01015.32
7.1.00.1040.01115.05
7.0.330.0040.01115.34
7.0.320.0030.00915.54
7.0.310.0000.01015.35
7.0.300.0050.00315.25
7.0.290.0030.01115.59
7.0.280.0060.00615.39
7.0.270.0030.01015.38
7.0.260.0130.00715.04
7.0.250.0040.01115.55
7.0.240.0070.00715.20
7.0.230.0030.01015.12
7.0.220.0080.00015.39
7.0.210.0140.00315.38
7.0.200.0070.01015.38
7.0.190.0090.00915.38
7.0.180.0050.00315.38
7.0.170.0030.01015.55
7.0.160.0070.00715.63
7.0.150.0110.00315.34
7.0.140.0000.00815.23
7.0.130.0000.01115.37
7.0.120.0040.01115.15
7.0.110.0000.01415.38
7.0.100.0040.01115.45
7.0.90.0000.01315.03
7.0.80.0030.01315.28
7.0.70.0000.00815.47
7.0.60.0060.00615.30
7.0.50.0090.00915.50
7.0.40.0040.00413.72
7.0.30.0090.00613.38
7.0.20.0090.00613.46
7.0.10.0030.01013.14
7.0.00.0070.00713.44
5.6.400.0090.00314.36
5.6.390.0030.01314.30
5.6.380.0070.00314.47
5.6.370.0060.00314.40
5.6.360.0040.00714.63
5.6.350.0040.01114.41
5.6.340.0060.00914.52
5.6.330.0070.00714.24
5.6.320.0030.01614.59
5.6.310.0000.01414.09
5.6.300.0040.01113.97
5.6.290.0080.00614.19
5.6.280.0040.00814.44
5.6.270.0000.01414.44
5.6.260.0090.00914.60
5.6.250.0120.00614.65
5.6.240.0000.01614.29
5.6.230.0090.00414.41
5.6.220.0060.00614.25
5.6.210.0030.01314.41
5.6.200.0070.00714.44
5.6.190.0040.00814.39
5.6.180.0070.00414.24
5.6.170.0070.00414.59
5.6.160.0030.01014.26
5.6.150.0000.01114.23
5.6.140.0100.00614.27
5.6.130.0030.01014.24
5.6.120.0080.00614.14
5.6.110.0090.00614.59
5.6.100.0030.00714.58
5.6.90.0000.01414.21
5.6.80.0110.00014.23
5.6.70.0040.00714.07
5.6.60.0060.00614.02
5.6.50.0090.00314.23
5.6.40.0100.00614.18
5.6.30.0100.00714.21
5.6.20.0030.01014.38
5.6.10.0030.00914.29
5.6.00.0060.00614.29

preferences:
53.34 ms | 400 KiB | 5 Q