3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myData implements IteratorAggregate { public $property1 = "Public property one"; public $property2 = "Public property two"; public $property3 = "Public property three"; public function __construct() { $this->property4 = "last property"; } public function getIterator() { return new ArrayIterator($this); } } $obj = new myData; foreach($obj as $key => $value) { var_dump($key, $value); echo "\n"; } ?>

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.40.0100.01018.93
8.3.30.0120.00319.09
8.3.20.0070.00020.25
8.3.10.0040.00423.52
8.3.00.0030.00619.50
8.2.170.0100.01022.96
8.2.160.0150.00420.35
8.2.150.0100.00724.18
8.2.140.0050.00324.66
8.2.130.0130.00626.16
8.2.120.0080.00020.82
8.2.110.0060.00320.52
8.2.100.0040.00718.09
8.2.90.0080.00019.09
8.2.80.0090.00017.97
8.2.70.0050.00317.63
8.2.60.0080.00017.91
8.2.50.0000.00918.07
8.2.40.0060.00318.03
8.2.30.0030.00518.04
8.2.20.0040.00417.63
8.2.10.0050.00318.05
8.2.00.0020.00517.55
8.1.270.0050.00321.99
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00622.23
8.1.230.0040.00719.15
8.1.220.0000.00817.76
8.1.210.0040.00418.77
8.1.200.0150.00017.25
8.1.190.0030.00517.35
8.1.180.0000.00818.10
8.1.170.0050.00318.49
8.1.160.0070.00022.05
8.1.150.0030.00518.93
8.1.140.0050.00217.43
8.1.130.0030.00317.82
8.1.120.0030.00417.50
8.1.110.0000.00717.43
8.1.100.0030.00317.41
8.1.90.0070.00017.38
8.1.80.0070.00017.46
8.1.70.0030.00317.31
8.1.60.0060.00317.60
8.1.50.0070.00517.53
8.1.40.0040.00417.50
8.1.30.0040.00417.55
8.1.20.0040.00417.54
8.1.10.0000.00817.55
8.1.00.0080.00017.43
8.0.300.0030.00618.77
8.0.290.0040.00416.63
8.0.280.0000.00818.43
8.0.270.0050.00317.15
8.0.260.0000.00617.14
8.0.250.0000.00716.99
8.0.240.0000.00716.95
8.0.230.0040.00416.81
8.0.220.0000.00716.88
8.0.210.0030.00316.86
8.0.200.0000.00717.01
8.0.190.0040.00416.95
8.0.180.0060.00316.92
8.0.170.0000.00716.86
8.0.160.0000.00716.89
8.0.150.0000.00716.79
8.0.140.0070.00016.77
8.0.130.0000.00613.29
8.0.120.0040.00416.78
8.0.110.0040.00416.88
8.0.100.0040.00416.73
8.0.90.0030.00516.71
8.0.80.0120.00616.88
8.0.70.0050.00316.78
8.0.60.0040.00416.79
8.0.50.0050.00216.71
8.0.30.0150.00417.19
8.0.20.0070.01417.40
8.0.10.0070.00016.89
8.0.00.0090.01016.66
7.4.330.0000.00515.00
7.4.320.0000.00616.57
7.4.300.0000.00616.57
7.4.290.0000.00716.52
7.4.280.0000.00716.63
7.4.270.0030.00316.41
7.4.260.0030.00316.55
7.4.250.0040.00416.55
7.4.240.0000.00716.56
7.4.230.0030.00316.31
7.4.220.0060.01216.46
7.4.210.0070.01416.48
7.4.200.0070.00016.42
7.4.160.0090.00616.73
7.4.150.0130.00617.40
7.4.140.0100.00717.86
7.4.130.0130.00316.63
7.4.120.0100.00816.48
7.4.110.0150.00916.36
7.4.100.0140.00316.32
7.4.90.0080.00816.46
7.4.80.0110.00819.39
7.4.70.0080.00816.66
7.4.60.0060.01116.55
7.4.50.0050.00316.53
7.4.40.0150.00716.45
7.4.30.0080.00816.57
7.4.00.0140.00015.02
7.3.330.0030.00313.26
7.3.320.0030.00313.30
7.3.310.0000.00716.32
7.3.300.0050.00216.23
7.3.290.0070.00716.27
7.3.280.0090.00816.29
7.3.270.0060.01217.40
7.3.260.0170.00716.73
7.3.250.0120.00816.64
7.3.240.0060.01616.16
7.3.230.0110.00616.50
7.3.210.0140.00316.47
7.3.200.0070.01019.39
7.3.190.0120.00616.32
7.3.180.0150.00416.40
7.3.170.0080.00916.48
7.3.160.0060.00916.47
7.2.330.0040.01216.69
7.2.320.0160.00016.54
7.2.310.0070.01016.52
7.2.300.0100.00716.46
7.2.290.0100.01016.71
7.2.80.0030.01216.82
7.2.70.1700.01614.84
7.2.60.0060.00616.81
7.2.00.0030.00719.25
7.1.200.0000.01215.81
7.1.100.0030.01018.18
7.1.70.0040.00417.22
7.1.60.0040.01517.05
7.1.50.0110.00316.98
7.1.40.0060.00616.65
7.1.30.0060.00616.85
7.1.20.0000.01216.66
7.1.10.0020.00516.71
7.1.00.0030.00616.89
7.0.200.0030.00916.52
7.0.190.0000.01116.88
7.0.180.0030.00616.36
7.0.170.0040.00416.29
7.0.160.0060.00316.25
7.0.150.0040.00416.21
7.0.140.0040.00416.54
7.0.130.0030.00716.61
7.0.120.0000.00816.55
7.0.110.0000.00716.58
7.0.100.0000.00816.55
7.0.90.0070.00016.53
7.0.80.0000.00916.31
7.0.70.0000.01116.45
7.0.60.0040.00416.14
7.0.50.0030.00616.41
7.0.40.0030.00614.92
7.0.30.0000.00714.92
7.0.20.0040.00414.92
7.0.10.0000.00814.92
7.0.00.0000.00814.92
5.6.300.0040.03920.79
5.6.290.0100.03320.67
5.6.280.0000.04620.91
5.6.270.0040.04220.88
5.6.260.0030.04421.08
5.6.250.0030.04120.86
5.6.240.0030.04220.82
5.6.230.0060.03920.87
5.6.220.0030.04320.96
5.6.210.0230.03620.96
5.6.200.0000.05121.06
5.6.190.0000.04421.05
5.6.180.0030.04020.87
5.6.170.0070.03620.87
5.6.160.0030.04021.03
5.6.150.0060.03921.04
5.6.140.0090.03521.03
5.6.130.0000.04321.03
5.6.120.0030.04120.77
5.6.110.0060.03921.01
5.6.100.0030.04421.02
5.6.90.0070.03621.02
5.6.80.0000.04120.22
5.6.70.0000.04120.38
5.6.60.0000.04420.19
5.6.50.0030.03820.16
5.6.40.0030.04120.22
5.6.30.0270.05020.12
5.6.20.0100.04220.32
5.6.10.0040.05220.21
5.6.00.0150.03720.07
5.5.380.0030.06217.65
5.5.370.0060.03617.57
5.5.360.0000.04417.57
5.5.350.0000.04217.43
5.5.340.0000.04318.09
5.5.330.0070.03517.99
5.5.320.0030.03818.09
5.5.310.0030.04018.08
5.5.300.0030.03918.13
5.5.290.0030.04018.08
5.5.280.0030.04118.15
5.5.270.0030.04118.05
5.5.260.0000.04418.07
5.5.250.0000.04717.81
5.5.240.0000.04017.11
5.5.230.0000.04217.12
5.5.220.0100.03717.42
5.5.210.0030.03717.46
5.5.200.0030.04017.45
5.5.190.0000.04717.44
5.5.180.0160.06617.43
5.5.160.0110.03617.38
5.5.150.0260.03217.30
5.5.140.0030.03717.43
5.5.130.0030.03717.45
5.5.120.0030.03917.45
5.5.110.0030.04217.09
5.5.100.0030.04317.26
5.5.90.0100.03417.36
5.5.80.0060.04117.31
5.5.70.0030.03917.32
5.5.60.0070.04617.20
5.5.50.0060.03517.26
5.5.40.0040.03917.23
5.5.30.0100.03817.22
5.5.20.0280.04217.23
5.5.10.0040.04417.24
5.5.00.0070.05217.09
5.4.450.0000.04319.30
5.4.440.0030.04219.25
5.4.430.0040.04019.30
5.4.420.0030.03819.36
5.4.410.0030.03819.23
5.4.400.0040.03519.17
5.4.390.0030.03718.90
5.4.380.0070.03218.95
5.4.370.0060.03419.05
5.4.360.0030.03819.08
5.4.350.0060.04419.20
5.4.340.0000.04719.21
5.4.320.0070.03719.00
5.4.310.0110.03519.04
5.4.300.0030.03719.05
5.4.290.0100.03819.20
5.4.280.0100.03619.23
5.4.270.0100.03019.03
5.4.260.0030.04319.16
5.4.250.0110.03518.98
5.4.240.0030.04019.00
5.4.230.0090.03718.88
5.4.220.0090.03418.89
5.4.210.0180.03319.15
5.4.200.0150.03419.22
5.4.190.0130.06219.19
5.4.180.0130.03918.91
5.4.170.0110.03918.86
5.4.160.0040.04319.06
5.4.150.0100.05518.87
5.4.140.0190.03016.44
5.4.130.0150.03116.59
5.4.120.0160.03516.66
5.4.110.0100.04216.70
5.4.100.0130.03516.73
5.4.90.0140.03516.75
5.4.80.0040.04316.71
5.4.70.0100.04416.63
5.4.60.0200.03216.55
5.4.50.0120.04016.70
5.4.40.0040.04716.57
5.4.30.0090.03716.66
5.4.20.0000.04716.45
5.4.10.0140.03016.40
5.4.00.0060.03215.99
5.3.290.0030.04314.94
5.3.280.0180.03814.92
5.3.270.0040.04014.92
5.3.260.0060.05014.92
5.3.250.0100.03514.92
5.3.240.0110.03614.92
5.3.230.0070.04314.92
5.3.220.0120.03514.92
5.3.210.0000.04814.92
5.3.200.0040.04614.92
5.3.190.0090.03814.92
5.3.180.0110.03414.92
5.3.170.0110.04314.92
5.3.160.0070.04114.95
5.3.150.0030.04514.92
5.3.140.0160.03614.92
5.3.130.0030.04414.92
5.3.120.0090.03414.92
5.3.110.0090.03414.92
5.3.100.0000.04414.92
5.3.90.0000.03814.92
5.3.80.0060.03614.92
5.3.70.0000.04014.92
5.3.60.0060.03214.92
5.3.50.0030.03514.92
5.3.40.0030.03514.92
5.3.30.0060.03514.92
5.3.20.0000.04214.92
5.3.10.0060.03114.92
5.3.00.0060.06114.92
5.2.170.0060.05414.92
5.2.160.0070.03014.92
5.2.150.0000.04414.92
5.2.140.0030.02914.92
5.2.130.0060.02814.92
5.2.120.0030.02714.92
5.2.110.0040.03014.92
5.2.100.0000.04014.92
5.2.90.0000.03414.92
5.2.80.0060.03114.92
5.2.70.0070.02714.92
5.2.60.0030.02914.92
5.2.50.0040.03514.92
5.2.40.0070.02614.92
5.2.30.0000.03314.92
5.2.20.0030.02814.92
5.2.10.0060.03114.92
5.2.00.0110.02814.92
5.1.60.0060.02014.92
5.1.50.0000.02914.92
5.1.40.0030.02414.92
5.1.30.0070.03914.92
5.1.20.0000.03014.92
5.1.10.0070.02114.92
5.1.00.0000.03114.92
5.0.50.0040.01914.92
5.0.40.0000.03614.92
5.0.30.0060.05114.92
5.0.20.0000.02714.92
5.0.10.0030.02114.92
5.0.00.0030.03114.92
4.4.90.0000.01714.92
4.4.80.0040.01414.92
4.4.70.0030.01314.92
4.4.60.0030.01314.92
4.4.50.0000.01614.92
4.4.40.0030.04714.92
4.4.30.0080.01914.92
4.4.20.0030.01614.92
4.4.10.0030.01314.92
4.4.00.0000.02614.92
4.3.110.0000.02514.92
4.3.100.0070.01014.92
4.3.90.0000.01814.92
4.3.80.0000.02614.92
4.3.70.0050.01114.92
4.3.60.0000.03114.92
4.3.50.0030.03414.92
4.3.40.0000.05414.92
4.3.30.0070.03314.92
4.3.20.0000.02514.92
4.3.10.0040.01814.92
4.3.00.0030.01514.92

preferences:
41.81 ms | 400 KiB | 5 Q