3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array( array('a' => 'testA', 'b' => 'testB'), array('a' =>'testC', 'b' => 'testD') ); print_r(array_keys($test, array('a' => 'testA', 'b' => 'testB')));

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.0060.00916.25
8.3.50.0120.00317.18
8.3.40.0090.00618.62
8.3.30.0100.00318.57
8.3.20.0080.00018.49
8.3.10.0000.00818.57
8.3.00.0040.00419.25
8.2.180.0090.00616.32
8.2.170.0140.00722.96
8.2.160.0120.00318.71
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00020.80
8.2.110.0090.00320.38
8.2.100.0110.00019.39
8.2.90.0060.00317.50
8.2.80.0060.00318.70
8.2.70.0000.00817.50
8.2.60.0000.00817.80
8.2.50.0000.00918.07
8.2.40.0050.00318.22
8.2.30.0000.00817.90
8.2.20.0030.00617.55
8.2.10.0090.00017.57
8.2.00.0000.00717.55
8.1.280.0140.00325.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0100.00728.09
8.1.240.0060.00320.52
8.1.230.0040.00817.70
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0070.00017.23
8.1.180.0040.00419.06
8.1.170.0000.00818.78
8.1.160.0070.00018.81
8.1.150.0000.00818.83
8.1.140.0040.00417.43
8.1.130.0000.00717.33
8.1.120.0000.00717.29
8.1.110.0030.00317.28
8.1.100.0000.00717.28
8.1.90.0000.00717.38
8.1.80.0000.00717.27
8.1.70.0040.00417.33
8.1.60.0050.00317.40
8.1.50.0000.00717.42
8.1.40.0000.00817.33
8.1.30.0000.00917.45
8.1.20.0040.00417.60
8.1.10.0050.00317.39
8.1.00.0080.00017.31
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0000.00718.39
8.0.270.0070.00017.07
8.0.260.0030.00316.68
8.0.250.0040.00416.93
8.0.240.0000.00716.79
8.0.230.0030.00316.86
8.0.220.0040.00416.80
8.0.210.0040.00416.72
8.0.200.0000.00716.94
8.0.190.0050.00316.85
8.0.180.0050.00516.86
8.0.170.0040.00416.72
8.0.160.0040.00416.83
8.0.150.0080.00016.84
8.0.140.0030.00616.78
8.0.130.0050.00013.27
8.0.120.0030.00516.71
8.0.110.0050.00316.81
8.0.100.0000.00716.60
8.0.90.0050.00316.65
8.0.80.0060.00916.77
8.0.70.0000.00816.67
8.0.60.0090.00016.59
8.0.50.0050.00316.79
8.0.30.0070.01016.79
8.0.20.0100.01216.94
8.0.10.0000.00716.81
8.0.00.0090.01116.76
7.4.330.0050.00012.86
7.4.320.0000.00716.48
7.4.300.0030.00316.43
7.4.290.0060.00016.46
7.4.280.0050.00316.43
7.4.270.0060.00016.36
7.4.260.0030.00313.16
7.4.250.0070.00016.47
7.4.240.0040.00416.54
7.4.230.0030.00616.46
7.4.220.0060.01316.57
7.4.210.0130.01016.56
7.4.200.0030.00516.36
7.4.190.0030.00316.40
7.4.160.0160.00316.50
7.4.150.0070.01016.25
7.4.140.0130.00416.54
7.4.130.0130.00816.41
7.4.120.0100.00716.41
7.4.110.0070.01016.30
7.4.100.0080.01116.34
7.4.90.0070.01116.46
7.4.80.0130.00619.39
7.4.70.0000.01616.37
7.4.60.0040.01216.55
7.4.50.0030.00316.04
7.4.40.0070.01016.25
7.4.30.0070.01016.43
7.4.00.0020.01214.62
7.3.330.0070.00013.01
7.3.320.0000.00512.86
7.3.310.0000.00716.18
7.3.300.0030.00316.15
7.3.290.0100.00816.11
7.3.280.0080.00916.13
7.3.270.0030.01316.18
7.3.260.0100.00616.31
7.3.250.0150.00816.21
7.3.240.0060.01016.29
7.3.230.0060.00916.15
7.3.210.0120.00616.14
7.3.200.0110.00816.20
7.3.190.0100.01316.44
7.3.180.0090.00916.08
7.3.170.0090.00616.09
7.3.160.0080.00816.31
7.3.120.0030.01014.70
7.3.10.0160.00316.13
7.3.00.0080.00016.38
7.2.330.0090.00916.32
7.2.320.0080.00816.51
7.2.310.0070.01016.33
7.2.300.0120.00916.14
7.2.290.0100.01116.44
7.2.130.0130.00016.63
7.2.120.0070.00816.61
7.2.110.0080.00816.49
7.2.100.0150.00316.21
7.2.90.0040.01116.79
7.2.80.0120.00616.49
7.2.70.0040.01516.27
7.2.60.0070.00716.24
7.2.50.0110.00716.50
7.2.40.0100.00616.54
7.2.30.0070.00716.66
7.2.20.0100.00316.79
7.2.10.0060.00316.60
7.2.00.0040.00716.72
7.1.250.0000.01215.59
7.1.100.0240.01217.32
7.1.70.0000.01016.89
7.1.60.0170.00719.30
7.1.50.0170.00716.88
7.1.00.0070.06322.31
7.0.200.0030.00316.71
7.0.140.0000.07722.15
7.0.120.0000.07722.04
7.0.60.0130.07719.81
7.0.50.0030.07317.73
7.0.40.0100.08020.30
7.0.30.0300.06720.26
7.0.20.0200.05720.20
7.0.10.0300.08020.09
7.0.00.0100.08320.05
5.6.280.0030.07021.07
5.6.210.0030.05320.68
5.6.200.0100.04018.23
5.6.190.0130.07320.60
5.6.180.0270.04320.36
5.6.170.0400.04320.57
5.6.160.0070.04320.54
5.6.150.0030.04318.11
5.6.140.0100.05318.28
5.6.130.0030.08718.18
5.6.120.0100.08021.01
5.6.110.0070.08020.93
5.6.100.0030.08721.08
5.6.90.0100.07720.99
5.6.80.0030.04320.53
5.6.70.0200.02720.49
5.5.350.0270.07320.45
5.5.340.0130.03717.97
5.5.330.0170.06320.30
5.5.320.0200.07020.29
5.5.310.0370.07320.34
5.5.300.0030.04317.95
5.5.290.0130.07018.08
5.5.280.0070.04020.86
5.5.270.0070.08720.85
5.5.260.0000.06720.86
5.5.250.0030.06720.68
5.5.240.0100.08020.23
5.4.450.0100.08019.30
5.4.440.0070.04019.56
5.4.430.0130.04719.32
5.4.420.0070.03719.44
5.4.410.0000.05719.34
5.4.400.0070.04018.86
5.4.390.0030.06019.16
5.4.380.0070.07019.00
5.4.370.0030.07319.07
5.4.360.0100.06019.07
5.4.350.0100.03719.23
5.4.340.0070.05019.11
5.4.320.0100.06318.98
5.4.310.0000.04719.20
5.4.300.0030.04318.92
5.4.290.0030.04018.84
5.4.280.0070.06718.87
5.4.270.0100.07019.09
5.4.260.0030.04018.84
5.4.250.0070.07319.14
5.4.240.0070.05019.23
5.4.230.0070.08019.23
5.4.220.0000.06718.99
5.4.210.0070.06319.15
5.4.200.0070.06718.95
5.4.190.0100.07719.07
5.4.180.0030.04019.23
5.4.170.0100.04718.99
5.4.160.0100.06018.89
5.4.150.0130.04719.18
5.4.140.0100.03716.34
5.4.130.0070.06316.27
5.4.120.0000.08016.26
5.4.110.0070.06716.45
5.4.100.0130.06716.32
5.4.90.0170.06316.38
5.4.80.0170.05016.45
5.4.70.0030.05016.37
5.4.60.0100.04016.48
5.4.50.0070.07016.27
5.4.40.0170.06316.27
5.4.30.0070.04016.48
5.4.20.0030.03716.38
5.4.10.0130.03716.39
5.4.00.0070.04715.80
5.3.290.0070.04314.65
5.3.280.0030.08314.59
5.3.270.0070.03714.52
5.3.260.0030.08314.66
5.3.250.0070.07714.75
5.3.240.0130.06714.61
5.3.230.0130.06714.64
5.3.220.0030.07714.61
5.3.210.0100.05314.57
5.3.200.0070.07314.55
5.3.190.0030.04314.56
5.3.180.0000.04014.63
5.3.170.0070.05314.55
5.3.160.0030.07314.59
5.3.150.0070.04314.55
5.3.140.0030.04014.54
5.3.130.0070.07714.56
5.3.120.0030.04314.46
5.3.110.0000.06314.43
5.3.100.0070.07014.04
5.3.90.0070.06014.02
5.3.80.0070.08014.05
5.3.70.0070.07713.93
5.3.60.0030.08014.09
5.3.50.0030.05713.82
5.3.40.0100.06013.95
5.3.30.0030.04713.79
5.3.20.0000.06013.84
5.3.10.0170.03313.68
5.3.00.0030.05013.78
5.2.170.0070.06311.11
5.2.160.0070.05011.19
5.2.150.0070.06011.09
5.2.140.0030.04011.10
5.2.130.0000.03711.10
5.2.120.0100.04011.02
5.2.110.0100.06711.25
5.2.100.0070.02711.05
5.2.90.0000.03311.09
5.2.80.0030.06011.01
5.2.70.0000.06011.05
5.2.60.0100.05311.04
5.2.50.0100.04711.17
5.2.40.0130.05311.14
5.2.30.0070.06010.88
5.2.20.0070.03011.04
5.2.10.0070.05010.93
5.2.00.0070.04010.60
5.1.60.0100.01710.10
5.1.50.0000.0279.96
5.1.40.0000.0509.97
5.1.30.0030.03710.32
5.1.20.0070.05310.26
5.1.10.0030.05310.12
5.1.00.0070.05010.05
5.0.50.0070.0478.60
5.0.40.0030.0278.55
5.0.30.0030.0408.27
5.0.20.0030.0478.27
5.0.10.0100.0378.27
5.0.00.0070.0538.27
4.4.90.0030.0308.27
4.4.80.0000.0408.27
4.4.70.0030.0338.27
4.4.60.0000.0238.27
4.4.50.0030.0178.27
4.4.40.0000.0278.27
4.4.30.0030.0338.27
4.4.20.0000.0338.27
4.4.10.0030.0378.27
4.4.00.0000.0538.27
4.3.110.0000.0378.27
4.3.100.0000.0308.27
4.3.90.0030.0178.27
4.3.80.0030.0408.27
4.3.70.0070.0308.27
4.3.60.0000.0308.27
4.3.50.0030.0238.27
4.3.40.0030.0508.27
4.3.30.0000.0308.27
4.3.20.0000.0278.27
4.3.10.0000.0378.27
4.3.00.0000.0208.27

preferences:
51.93 ms | 401 KiB | 5 Q