3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('foo','bar',1); $x1 = new ArrayObject($a); $x1['foo1'] = 'foo1'; $x2 = new ArrayObject; $x2->exchangeArray(iterator_to_array($x1)); $x2['foo2'] = 'foo2'; var_dump($a, $x1, $x2, iterator_to_array($x1));

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.0090.00618.25
8.3.50.0130.00521.09
8.3.40.0090.00618.51
8.3.30.0080.00618.79
8.3.20.0000.00720.39
8.3.10.0040.00421.91
8.3.00.0050.00322.46
8.2.180.0120.00316.32
8.2.170.0150.00622.96
8.2.160.0100.00320.53
8.2.150.0040.00424.18
8.2.140.0090.00924.66
8.2.130.0000.00826.16
8.2.120.0050.00319.66
8.2.110.0090.00020.39
8.2.100.0090.00319.31
8.2.90.0080.00019.09
8.2.80.0090.00017.97
8.2.70.0030.00617.63
8.2.60.0090.00017.91
8.2.50.0060.00318.07
8.2.40.0000.00818.03
8.2.30.0040.00417.98
8.2.20.0040.00417.57
8.2.10.0050.00217.72
8.2.00.0000.00717.68
8.1.280.0120.00925.92
8.1.270.0090.00020.19
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00923.92
8.1.230.0030.00719.16
8.1.220.0070.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.40
8.1.180.0000.00818.67
8.1.170.0000.00918.50
8.1.160.0000.00822.11
8.1.150.0050.00318.61
8.1.140.0000.00717.26
8.1.130.0030.00317.69
8.1.120.0070.00017.37
8.1.110.0060.00317.29
8.1.100.0000.00717.45
8.1.90.0040.00417.35
8.1.80.0040.00417.32
8.1.70.0030.00517.31
8.1.60.0080.00017.52
8.1.50.0000.00717.36
8.1.40.0040.00417.40
8.1.30.0000.00817.51
8.1.20.0040.00417.53
8.1.10.0040.00417.44
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0000.00717.18
8.0.280.0040.00418.27
8.0.270.0000.00717.23
8.0.260.0000.00616.80
8.0.250.0000.00716.90
8.0.240.0030.00616.89
8.0.230.0000.00716.87
8.0.220.0030.00316.78
8.0.210.0070.00016.73
8.0.200.0040.00416.88
8.0.190.0000.00916.79
8.0.180.0000.00716.86
8.0.170.0000.00716.77
8.0.160.0000.00816.79
8.0.150.0040.00416.73
8.0.140.0050.00216.67
8.0.130.0000.00613.30
8.0.120.0040.00416.80
8.0.110.0050.00316.71
8.0.100.0040.00416.71
8.0.90.0040.00416.71
8.0.80.0090.00916.76
8.0.70.0020.00516.78
8.0.60.0000.00716.77
8.0.50.0030.00516.64
8.0.30.0130.00816.82
8.0.20.0070.01217.40
8.0.10.0040.00417.05
8.0.00.0110.00716.64
7.4.330.0020.00215.00
7.4.320.0060.00016.38
7.4.300.0000.00616.47
7.4.290.0070.00016.34
7.4.280.0000.00716.27
7.4.270.0040.00316.46
7.4.260.0050.00216.49
7.4.250.0070.00016.42
7.4.240.0040.00316.56
7.4.230.0030.00316.45
7.4.220.0070.01116.47
7.4.210.0120.00616.49
7.4.200.0000.00716.55
7.4.190.0080.00016.66
7.4.160.0120.00916.28
7.4.150.0080.00917.40
7.4.140.0140.00917.86
7.4.130.0080.01116.48
7.4.120.0060.01216.39
7.4.110.0040.01316.36
7.4.100.0090.00916.37
7.4.90.0040.01416.19
7.4.80.0150.00319.39
7.4.70.0030.01316.39
7.4.60.0120.00616.49
7.4.50.0040.00416.53
7.4.40.0040.01122.77
7.4.30.0110.00516.27
7.4.00.0070.00714.60
7.3.330.0030.00312.92
7.3.320.0040.00413.18
7.3.310.0000.01016.33
7.3.300.0000.00716.06
7.3.290.0000.02016.17
7.3.280.0110.00816.23
7.3.270.0070.01017.40
7.3.260.0160.01016.42
7.3.250.0100.00816.37
7.3.240.0130.01116.10
7.3.230.0140.01116.39
7.3.210.0080.01116.43
7.3.200.0110.00719.39
7.3.190.0070.01616.30
7.3.180.0080.00816.26
7.3.170.0050.01116.38
7.3.160.0090.01216.66
7.3.120.0090.00614.80
7.3.110.0130.00014.79
7.3.100.0090.00614.69
7.3.90.0100.01014.63
7.3.80.0070.01014.69
7.3.70.0110.00314.89
7.3.60.0030.01314.79
7.3.50.0090.00614.59
7.3.40.0080.00314.72
7.3.30.0100.00314.74
7.3.20.0060.00916.69
7.3.10.0120.00316.54
7.3.00.0120.00516.50
7.2.330.0160.00316.57
7.2.320.0130.00716.70
7.2.310.0160.00916.63
7.2.300.0110.00616.32
7.2.290.0100.00716.80
7.2.250.0090.00815.02
7.2.240.0040.01514.62
7.2.230.0100.00315.19
7.2.220.0070.01414.77
7.2.210.0070.01115.09
7.2.200.0090.00614.89
7.2.190.0070.00714.97
7.2.180.0040.00714.94
7.2.170.0040.01114.86
7.2.130.0160.00316.79
7.2.120.0070.00716.57
7.2.110.0100.00317.05
7.2.100.0140.00416.90
7.2.90.0110.00716.75
7.2.80.0160.00316.79
7.2.70.0130.00316.88
7.2.60.0000.01016.92
7.2.50.0070.01116.59
7.2.40.0120.00616.59
7.2.30.0130.00616.82
7.2.20.0170.00316.76
7.2.10.0130.00316.52
7.2.00.0140.00416.79
7.1.330.0100.00315.80
7.1.320.0000.01415.99
7.1.310.0060.00315.82
7.1.300.0030.00815.38
7.1.290.0070.00715.61
7.1.280.0100.00315.66
7.1.270.0100.00715.84
7.1.260.0060.00615.52
7.1.250.0110.00415.70
7.1.240.0040.01515.59
7.1.230.0030.01315.53
7.1.220.0070.00715.68
7.1.210.0160.00015.75
7.1.200.0120.00015.81
7.1.190.0100.00315.49
7.1.180.0120.00315.84
7.1.170.0110.00315.71
7.1.160.0040.00915.44
7.1.150.0130.00315.62
7.1.140.0100.00315.79
7.1.130.0100.00715.41
7.1.120.0080.00815.69
7.1.110.0100.00715.73
7.1.100.0070.00715.83
7.1.90.0100.00315.81
7.1.80.0070.00715.68
7.1.70.0030.00716.50
7.1.60.0040.01017.82
7.1.50.0050.00816.11
7.1.40.0100.01015.59
7.1.30.0100.00715.61
7.1.20.0070.00415.67
7.1.10.0100.00715.62
7.1.00.0040.03419.06
7.0.330.0040.00715.31
7.0.320.0100.00715.34
7.0.310.0090.00615.36
7.0.300.0110.00015.48
7.0.290.0060.00915.15
7.0.280.0000.01215.14
7.0.270.0030.00915.09
7.0.260.0070.00415.22
7.0.250.0120.00315.48
7.0.240.0140.00015.17
7.0.230.0030.01015.37
7.0.220.0090.00615.33
7.0.210.0060.00615.05
7.0.200.0030.00715.88
7.0.190.0070.00415.34
7.0.180.0070.01015.46
7.0.170.0030.00915.55
7.0.160.0090.00615.30
7.0.150.0040.00815.24
7.0.140.0070.03718.81
7.0.130.0120.00315.51
7.0.120.0070.00715.14
7.0.110.0060.00615.22
7.0.100.0140.03717.63
7.0.90.0120.03017.59
7.0.80.0050.02617.66
7.0.70.0080.02217.69
7.0.60.0030.02817.75
7.0.50.0120.04217.74
7.0.40.0080.03316.74
7.0.30.0050.02816.66
7.0.20.0090.03216.83
7.0.10.0050.03416.77
7.0.00.0050.03416.74
5.6.380.0030.01013.95
5.6.370.0030.00614.50
5.6.360.0060.01014.24
5.6.350.0120.00614.63
5.6.340.0060.00314.11
5.6.330.0090.00313.94
5.6.320.0050.01014.10
5.6.310.0090.00614.56
5.6.300.0080.00814.27
5.6.290.0070.00714.18
5.6.280.0060.04017.73
5.6.270.0080.00914.27
5.6.260.0080.00813.85
5.6.250.0080.04517.37
5.6.240.0100.04317.25
5.6.230.0030.03817.46
5.6.220.0060.02417.27
5.6.210.0080.03017.26
5.6.200.0060.03617.54
5.6.190.0060.04917.52
5.6.180.0130.04017.70
5.6.170.0170.03817.65
5.6.160.0120.04317.78
5.6.150.0100.02317.52
5.6.140.0100.02817.79
5.6.130.0080.02217.77
5.6.120.0090.03017.73
5.6.110.0060.02717.68
5.6.100.0090.02217.66
5.6.90.0090.03317.57
5.6.80.0120.03517.43
5.6.70.0140.03617.28
5.6.60.0060.03517.29
5.6.50.0060.02217.30
5.6.40.0030.02517.24
5.6.30.0060.02417.21
5.6.20.0070.02417.25
5.6.10.0030.02617.19
5.6.00.0050.02117.31
5.5.380.0060.03715.50
5.5.370.0040.02515.61
5.5.360.0010.02715.43
5.5.350.0050.02715.68
5.5.340.0050.03115.82
5.5.330.0050.02315.72
5.5.320.0050.03815.70
5.5.310.0090.03315.90
5.5.300.0060.04415.70
5.5.290.0030.04215.91
5.5.280.0070.01915.90
5.5.270.0030.04515.88
5.5.260.0100.02715.93
5.5.250.0050.02815.52
5.5.240.0070.03915.56
5.5.230.0060.02715.65
5.5.220.0060.02115.56
5.5.210.0080.02115.52
5.5.200.0030.02315.54
5.5.190.0030.02315.47
5.5.180.0030.02315.54
5.5.170.0080.00411.09
5.5.160.0080.01815.70
5.5.150.0040.02415.49
5.5.140.0070.01515.34
5.5.130.0080.01615.53
5.5.120.0020.04115.44
5.5.110.0000.02815.63
5.5.100.0030.03815.48
5.5.90.0050.02015.37
5.5.80.0050.02115.58
5.5.70.0080.02215.40
5.5.60.0060.01815.53
5.5.50.0160.01415.52
5.5.40.0040.02215.49
5.5.30.0040.02415.42
5.5.20.0050.02015.42
5.5.10.0060.02015.53
5.5.00.0040.02215.55
5.4.450.0050.02315.21
5.4.440.0070.02115.18
5.4.430.0060.03215.19
5.4.420.0070.02115.15
5.4.410.0030.04015.19
5.4.400.0020.02414.96
5.4.390.0060.03814.86
5.4.380.0080.02014.87
5.4.370.0080.02014.83
5.4.360.0000.02614.86
5.4.350.0070.01814.85
5.4.340.0030.02514.94
5.4.330.0030.00910.77
5.4.320.0060.01814.88
5.4.310.0040.01814.97
5.4.300.0050.03514.72
5.4.290.0050.04214.97
5.4.280.0060.02114.94
5.4.270.0040.02014.73
5.4.260.0030.02314.87
5.4.250.0060.03014.87
5.4.240.0020.02415.09
5.4.230.0050.02014.96
5.4.220.0080.02114.75
5.4.210.0060.01814.85
5.4.200.0050.02014.75
5.4.190.0040.02415.06
5.4.180.0020.02415.02
5.4.170.0050.02014.83
5.4.160.0060.02114.94
5.4.150.0040.02414.95
5.4.140.0020.01913.47
5.4.130.0020.02113.55
5.4.120.0050.02013.56
5.4.110.0050.02113.46
5.4.100.0000.02413.37
5.4.90.0030.01913.52
5.4.80.0000.02213.53
5.4.70.0050.01713.40
5.4.60.0020.01913.50
5.4.50.0030.01813.48
5.4.40.0010.02213.58
5.4.30.0050.01713.50
5.4.20.0010.02113.46
5.4.10.0020.01913.53
5.4.00.0020.01913.37
5.3.290.0030.02012.48
5.3.280.0050.02112.43
5.3.270.0020.02212.42
5.3.260.0020.02412.57
5.3.250.0020.01912.52
5.3.240.0000.02612.49
5.3.230.0010.02012.54
5.3.220.0000.02412.46
5.3.210.0020.02012.49
5.3.200.0050.01812.35
5.3.190.0010.02312.37
5.3.180.0030.01712.45
5.3.170.0070.01512.59
5.3.160.0020.01912.56
5.3.150.0010.02112.53
5.3.140.0000.01912.54
5.3.130.0050.02012.36
5.3.120.0020.01912.50
5.3.110.0000.02012.53
5.3.100.0000.02012.28
5.3.90.0020.01912.28
5.3.80.0050.01812.24
5.3.70.0050.01512.15
5.3.60.0030.01712.13
5.3.50.0020.02012.06
5.3.40.0020.01812.14
5.3.30.0070.01311.99
5.3.20.0070.01311.90
5.3.10.0030.01911.85
5.3.00.0030.01611.83
5.2.170.0020.01710.28
5.2.160.0030.01210.19
5.2.150.0060.01010.24
5.2.140.0000.01610.38
5.2.130.0020.01810.35
5.2.120.0050.01310.28
5.2.110.0030.02010.27
5.2.100.0050.01210.33
5.2.90.0060.01310.30
5.2.80.0050.02710.29
5.2.70.0030.01610.17
5.2.60.0020.03510.24
5.2.50.0030.01710.21
5.2.40.0080.02310.21
5.2.30.0050.01310.19
5.2.20.0000.02110.22
5.2.10.0020.01310.16
5.2.00.0010.01510.04
5.1.60.0020.0109.70
5.1.50.0070.0259.70
5.1.40.0050.0169.71
5.1.30.0050.0229.90
5.1.20.0030.0329.85
5.1.10.0070.0289.75
5.1.00.0020.0159.74
5.0.50.0020.0129.50
5.0.40.0030.0139.50
5.0.30.0040.0159.50
5.0.20.0030.0159.50
5.0.10.0050.0109.50
5.0.00.0030.0189.50
4.4.90.0010.0089.50
4.4.80.0000.0149.50
4.4.70.0030.0089.50
4.4.60.0020.0209.50
4.4.50.0000.0109.50
4.4.40.0000.0199.50
4.4.30.0050.0109.50
4.4.20.0010.0099.50
4.4.10.0040.0189.50
4.4.00.0060.0259.50
4.3.110.0090.0179.50
4.3.100.0020.0169.50
4.3.90.0030.0109.50
4.3.80.0050.0189.50
4.3.70.0070.0209.50
4.3.60.0020.0199.50
4.3.50.0070.0159.50
4.3.40.0060.0139.50
4.3.30.0030.0089.50
4.3.20.0040.0149.50
4.3.10.0020.0189.50
4.3.00.0060.0099.50

preferences:
50.48 ms | 401 KiB | 5 Q