3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new stdClass(); $x->foo = 'foo'; $x->bar = 'bar'; $y = array('foo' => 'foo', 'bar' => 'bar'); var_dump(count(objectToArray($x)));var_dump(count(objectToArray($y)));

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.0120.00618.68
8.3.50.0110.00921.97
8.3.40.0070.01418.97
8.3.30.0090.00619.04
8.3.20.0040.00420.35
8.3.10.0110.00421.78
8.3.00.0040.00418.03
8.2.180.0130.00716.36
8.2.170.0140.00022.96
8.2.160.0100.01020.38
8.2.150.0040.00424.18
8.2.140.0070.00724.66
8.2.130.0040.00426.16
8.2.120.0000.00820.97
8.2.110.0100.00019.39
8.2.100.0040.00717.84
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0000.01017.63
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0030.00618.09
8.2.30.0000.01118.01
8.2.20.0000.00717.75
8.2.10.0000.00718.06
8.2.00.0000.00917.79
8.1.280.0090.00625.92
8.1.270.0120.00623.96
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0040.00421.24
8.1.230.0070.00417.70
8.1.220.0060.00317.76
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0000.00918.10
8.1.170.0030.00518.50
8.1.160.0000.00721.94
8.1.150.0030.00518.80
8.1.140.0030.00617.33
8.1.130.0000.00717.83
8.1.120.0000.00717.30
8.1.110.0000.00817.30
8.1.100.0070.00017.37
8.1.90.0030.00517.38
8.1.80.0070.00017.39
8.1.70.0040.00417.25
8.1.60.0000.01017.49
8.1.50.0040.00417.49
8.1.40.0040.00417.48
8.1.30.0030.00517.55
8.1.20.0050.00317.64
8.1.10.0040.00417.58
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.43
8.0.270.0070.00017.13
8.0.260.0000.00617.21
8.0.250.0000.00716.83
8.0.240.0070.00016.92
8.0.230.0030.00316.85
8.0.220.0000.00716.88
8.0.210.0000.00716.95
8.0.200.0040.00416.98
8.0.190.0040.00416.96
8.0.180.0040.00416.96
8.0.170.0000.00816.80
8.0.160.0030.00516.88
8.0.150.0000.00816.97
8.0.140.0040.00416.76
8.0.130.0050.00013.20
8.0.120.0030.00616.90
8.0.110.0030.00616.97
8.0.100.0030.00516.88
8.0.90.0030.00516.84
8.0.80.0030.01716.86
8.0.70.0040.00416.88
8.0.60.0040.00416.77
8.0.50.0050.00316.75
8.0.30.0140.00517.06
8.0.20.0110.00817.40
8.0.10.0040.00416.86
8.0.00.0100.00816.71
7.4.330.0050.00015.00
7.4.320.0030.00316.39
7.4.300.0030.00316.55
7.4.290.0070.00016.64
7.4.280.0060.00316.50
7.4.270.0000.00716.53
7.4.260.0030.00316.54
7.4.250.0000.00716.57
7.4.240.0030.00416.50
7.4.230.0040.00416.54
7.4.220.0100.01616.61
7.4.210.0070.00716.44
7.4.200.0000.00716.61
7.4.160.0060.00916.57
7.4.150.0190.00017.40
7.4.140.0050.01217.86
7.4.130.0090.00816.51
7.4.120.0070.01016.58
7.4.110.0150.00316.38
7.4.100.0070.01016.40
7.4.90.0180.00616.46
7.4.80.0040.01819.39
7.4.70.0070.01016.59
7.4.60.0080.00816.48
7.4.50.0000.00816.25
7.4.40.0030.01416.60
7.4.30.0100.00616.71
7.4.00.0070.01214.93
7.3.330.0050.00213.02
7.3.320.0000.00613.03
7.3.310.0000.00816.16
7.3.300.0000.00816.29
7.3.290.0100.00316.30
7.3.280.0070.01016.25
7.3.270.0220.00317.40
7.3.260.0060.01216.44
7.3.250.0070.00916.26
7.3.240.0070.01716.30
7.3.230.0140.00316.39
7.3.210.0100.01016.33
7.3.200.0050.01719.39
7.3.190.0090.01316.40
7.3.180.0080.00816.24
7.3.170.0090.00916.33
7.3.160.0100.01116.41
7.3.120.0100.00714.86
7.3.110.0140.00714.42
7.3.100.0040.01114.64
7.3.90.0040.01114.61
7.3.80.0030.00914.95
7.3.70.0090.00614.77
7.3.60.0000.01314.84
7.3.50.0030.01014.63
7.3.40.0100.00314.63
7.3.30.0000.01514.89
7.3.20.0030.01216.68
7.3.10.0000.01016.48
7.3.00.0030.01416.29
7.2.330.0130.00616.69
7.2.320.0170.00316.44
7.2.310.0110.00516.43
7.2.300.0040.01216.56
7.2.290.0120.00416.36
7.2.250.0070.01115.02
7.2.240.0100.00715.04
7.2.230.0100.00614.88
7.2.220.0030.00714.86
7.2.210.0000.01214.77
7.2.200.0110.00715.02
7.2.190.0040.00414.96
7.2.180.0000.01114.88
7.2.170.0000.01614.85
7.2.60.0100.00316.69
7.2.00.0000.01219.38
7.1.330.0090.00315.83
7.1.320.0060.00315.57
7.1.310.0030.01015.83
7.1.300.0100.00315.50
7.1.290.0070.00715.43
7.1.280.0070.01015.59
7.1.270.0030.01315.71
7.1.260.0030.00715.45
7.1.200.0000.01115.47
7.1.100.0050.00917.93
7.1.70.0060.00616.96
7.1.60.0090.01619.40
7.1.50.0100.01016.55
7.1.00.0070.07322.42
7.0.200.0000.00716.79
7.0.140.0030.07322.21
7.0.60.0000.04319.99
7.0.50.0000.07317.91
7.0.40.0030.05020.20
7.0.30.0570.06320.34
7.0.20.0170.04020.00
7.0.10.0100.08020.30
7.0.00.0130.08020.09
5.6.280.0070.07021.09
5.6.210.0200.07020.54
5.6.200.0000.08318.21
5.6.190.0070.07720.29
5.6.180.0270.06320.76
5.6.170.0330.05320.41
5.6.160.0100.08320.40
5.6.150.0070.03718.21
5.6.140.0100.08018.21
5.6.130.0070.04018.20
5.6.120.0030.08721.10
5.6.110.0170.08020.88
5.6.100.0130.08020.95
5.6.90.0070.08321.11
5.6.80.0000.08720.50
5.5.350.0000.08020.31
5.5.340.0070.08317.91
5.5.330.0130.07720.43
5.5.320.0300.05720.14
5.5.310.0300.04020.13
5.5.300.0030.06717.91
5.5.290.0070.07317.88
5.5.280.0000.08020.77
5.5.270.0170.07720.83
5.5.260.0230.08020.66
5.5.250.0170.07320.46
5.5.240.0230.06320.04
5.4.450.0670.03719.24
5.4.440.0330.05719.43
5.4.430.0330.05019.48
5.4.420.1300.04019.14
5.4.410.0300.04019.30
5.4.400.0400.03318.94
5.4.390.0330.04319.10
5.4.380.0230.06318.50
5.4.370.0400.07318.61
5.4.360.0470.10718.68
5.4.350.0600.07318.70
5.4.340.0400.05718.64
5.4.320.0090.03312.45
5.4.310.0030.04112.46
5.4.300.0060.04212.45
5.4.290.0080.03612.45
5.4.280.0050.03512.35
5.4.270.0090.03212.35
5.4.260.0080.04412.35
5.4.250.0040.04012.35
5.4.240.0060.03612.35
5.4.230.0050.04012.34
5.4.220.0090.03412.34
5.4.210.0060.03612.34
5.4.200.0100.03512.34
5.4.190.0050.03712.34
5.4.180.0050.04712.34
5.4.170.0100.03412.35
5.4.160.0060.03512.34
5.4.150.0060.03512.34
5.4.140.0060.04412.02
5.4.130.0060.03712.01
5.4.120.0060.03511.97
5.4.110.0080.03511.96
5.4.100.0050.03611.97
5.4.90.0080.03411.96
5.4.80.0080.04111.96
5.4.70.0020.03711.96
5.4.60.0050.03711.96
5.4.50.0050.03511.96
5.4.40.0060.03411.95
5.4.30.0060.03511.95
5.4.20.0040.03511.95
5.4.10.0070.04011.95
5.4.00.0020.04011.44
5.3.290.0050.04212.80
5.3.280.0050.03912.71
5.3.270.0080.04012.72
5.3.260.0100.04012.72
5.3.250.0060.04212.72
5.3.240.0070.03512.72
5.3.230.0100.04012.71
5.3.220.0080.04112.68
5.3.210.0080.03912.68
5.3.200.0070.03812.68
5.3.190.0100.04112.68
5.3.180.0070.03512.68
5.3.170.0090.04012.67
5.3.160.0100.03512.67
5.3.150.0070.03512.67
5.3.140.0050.04112.66
5.3.130.0060.03812.66
5.3.120.0080.04212.66
5.3.110.0050.04212.66
5.3.100.0090.03512.12
5.3.90.0080.03512.09
5.3.80.0060.03712.08
5.3.70.0070.03412.07
5.3.60.0060.03812.07
5.3.50.0030.04112.00
5.3.40.0070.03512.00
5.3.30.0050.03611.95
5.3.20.0080.03311.73
5.3.10.0070.03411.69
5.3.00.0060.03611.68
5.2.170.0060.0299.18
5.2.160.0040.0309.18
5.2.150.0060.0359.18
5.2.140.0040.0319.18
5.2.130.0060.0279.14
5.2.120.0020.0309.14
5.2.110.0030.0309.15
5.2.100.0080.0349.14
5.2.90.0050.0349.14
5.2.80.0060.0299.14
5.2.70.0030.0329.14
5.2.60.0040.0309.09
5.2.50.0060.0299.06
5.2.40.0020.0329.04
5.2.30.0060.0329.02
5.2.20.0050.0319.00
5.2.10.0080.0268.92
5.2.00.0040.0298.78
5.1.60.0060.0218.07
5.1.50.0050.0268.07
5.1.40.0070.0258.05
5.1.30.0020.0298.40
5.1.20.0040.0288.41
5.1.10.0070.0298.14
5.1.00.0040.0308.14
5.0.50.0000.0236.62
5.0.40.0040.0196.48
5.0.30.0040.0316.29
5.0.20.0050.0176.26
5.0.10.0040.0326.24
5.0.00.0040.0326.23
4.4.90.0030.0174.78
4.4.80.0010.0184.75
4.4.70.0030.0164.75
4.4.60.0030.0174.75
4.4.50.0040.0164.77
4.4.40.0040.0244.71
4.4.30.0050.0144.76
4.4.20.0030.0164.85
4.4.10.0030.0154.85
4.4.00.0050.0264.76
4.3.110.0010.0174.66
4.3.100.0030.0154.66
4.3.90.0050.0214.63
4.3.80.0060.0244.58
4.3.70.0030.0144.63
4.3.60.0020.0144.62
4.3.50.0040.0144.63
4.3.40.0010.0254.54
4.3.30.0020.0183.28
4.3.20.0030.0153.26
4.3.10.0000.0203.21
4.3.00.0100.02014.10

preferences:
51.68 ms | 401 KiB | 5 Q