3v4l.org

run code in 300+ PHP versions simultaneously
<?php class IteratorClass implements Iterator { public function __construct() { } public function key() { } public function current() { } function next() { } function valid() { } function rewind() { } } class DerivedClass extends IteratorClass { } class NonIterator { } function dump_iterateable($class) { $reflection = new ReflectionClass($class); var_dump($reflection->isIterateable()); } $classes = array("ArrayObject", "IteratorClass", "DerivedClass", "NonIterator"); foreach ($classes as $class) { echo "Is $class iterateable? "; dump_iterateable($class); }

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.01116.50
8.3.50.0130.01022.04
8.3.40.0140.00018.80
8.3.30.0040.01119.09
8.3.20.0000.00820.27
8.3.10.0040.00423.71
8.3.00.0080.00019.08
8.2.180.0040.01116.38
8.2.170.0140.00022.96
8.2.160.0130.00020.43
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00020.29
8.2.110.0060.00321.07
8.2.100.0060.00617.84
8.2.90.0040.00419.26
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0070.00017.80
8.2.50.0060.00318.07
8.2.40.0080.00019.89
8.2.30.0080.00018.18
8.2.20.0050.00317.67
8.2.10.0000.00718.12
8.2.00.0040.00417.80
8.1.280.0070.00725.92
8.1.270.0000.00823.86
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0060.00322.06
8.1.230.0120.00019.00
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0060.00318.54
8.1.160.0040.00422.01
8.1.150.0000.00818.63
8.1.140.0000.00817.44
8.1.130.0080.00019.17
8.1.120.0070.00017.48
8.1.110.0050.00517.45
8.1.100.0000.00817.36
8.1.90.0050.00317.54
8.1.80.0030.00617.36
8.1.70.0000.00817.32
8.1.60.0030.00617.57
8.1.50.0000.00817.42
8.1.40.0050.00317.52
8.1.30.0060.00317.63
8.1.20.0000.00717.56
8.1.10.0000.00817.57
8.1.00.0040.00417.54
8.0.300.0060.00320.12
8.0.290.0070.00016.63
8.0.280.0000.00718.44
8.0.270.0000.00817.17
8.0.260.0030.00318.52
8.0.250.0000.00716.94
8.0.240.0060.00316.96
8.0.230.0040.00416.91
8.0.220.0000.00616.94
8.0.210.0050.00316.87
8.0.200.0000.00616.81
8.0.190.0080.00016.83
8.0.180.0000.00816.91
8.0.170.0030.00516.96
8.0.160.0000.00716.88
8.0.150.0050.00216.78
8.0.140.0040.00416.91
8.0.130.0000.00613.29
8.0.120.0050.00316.77
8.0.110.0000.00816.91
8.0.100.0050.00316.80
8.0.90.0000.00816.70
8.0.80.0110.00516.84
8.0.70.0000.00816.91
8.0.60.0060.00316.71
8.0.50.0000.00816.94
8.0.30.0070.01817.17
8.0.20.0130.01017.40
8.0.10.0030.00616.97
8.0.00.0060.01316.63
7.4.330.0020.00215.09
7.4.320.0030.00316.52
7.4.300.0060.00016.48
7.4.290.0030.00316.59
7.4.280.0000.00916.39
7.4.270.0000.00716.40
7.4.260.0000.00816.47
7.4.250.0040.00416.48
7.4.240.0020.00616.40
7.4.230.0000.00716.66
7.4.220.0030.02216.51
7.4.210.0070.00816.58
7.4.200.0040.00416.44
7.4.190.0040.00416.44
7.4.160.0080.00816.43
7.4.150.0040.01217.40
7.4.140.0110.01117.86
7.4.130.0110.00516.49
7.4.120.0070.01016.54
7.4.110.0100.00716.27
7.4.100.0140.00316.54
7.4.90.0030.01416.63
7.4.80.0140.00419.39
7.4.70.0110.00516.36
7.4.60.0060.01016.38
7.4.50.0020.00216.53
7.4.40.0090.00816.61
7.4.30.0130.00316.43
7.4.10.0100.00715.10
7.4.00.0070.01114.88
7.3.330.0060.00013.35
7.3.320.0000.00613.23
7.3.310.0070.00016.36
7.3.300.0070.00016.37
7.3.290.0100.01016.39
7.3.280.0120.00816.35
7.3.270.0090.00917.40
7.3.260.0140.00316.57
7.3.250.0070.01016.38
7.3.240.0150.00316.34
7.3.230.0060.01116.59
7.3.210.0030.01416.49
7.3.200.0110.00719.39
7.3.190.0110.01116.25
7.3.180.0000.01616.58
7.3.170.0130.00916.53
7.3.160.0150.00016.32
7.3.130.0090.00814.75
7.3.120.0100.00514.79
7.3.110.0100.00715.04
7.3.100.0090.00615.02
7.3.90.0040.00414.89
7.3.80.0080.00814.88
7.3.70.0060.00614.72
7.3.60.0060.00914.80
7.3.50.0040.00714.62
7.3.40.0040.01114.61
7.3.30.0100.00314.75
7.3.20.0290.00415.88
7.3.10.0130.00816.14
7.3.00.0150.00716.19
7.2.330.0090.00916.85
7.2.320.0060.01216.80
7.2.310.0090.00916.63
7.2.300.0130.00616.70
7.2.290.0090.01016.74
7.2.260.0100.01015.36
7.2.250.0080.00615.02
7.2.240.0090.00614.86
7.2.230.0030.00915.20
7.2.220.0000.01514.89
7.2.210.0110.00614.79
7.2.200.0040.00815.12
7.2.190.0150.00014.72
7.2.180.0090.00014.94
7.2.170.0000.01215.04
7.2.160.0000.01615.16
7.2.150.0220.00616.03
7.2.140.0230.00616.10
7.2.130.0150.00916.46
7.2.120.0150.00716.50
7.2.110.0150.00816.55
7.2.100.0130.00916.40
7.2.90.0140.00616.50
7.2.80.0150.01016.58
7.2.70.0140.00816.58
7.2.60.0150.00716.47
7.2.50.0130.00916.57
7.2.40.0170.00516.62
7.2.30.0160.00816.68
7.2.20.0140.00916.56
7.2.10.0170.00516.57
7.2.00.0100.00816.50
7.1.330.0030.01315.51
7.1.320.0030.01015.75
7.1.310.0030.00915.63
7.1.300.0030.01115.98
7.1.290.0000.01315.80
7.1.280.0060.00615.86
7.1.270.0030.00515.82
7.1.260.0100.00015.78
7.1.250.0170.00515.34
7.1.240.0200.00415.21
7.1.230.0210.00615.12
7.1.220.0250.00815.28
7.1.210.0410.00215.14
7.1.200.0170.00715.23
7.1.190.0200.00815.14
7.1.180.0220.01015.18
7.1.170.0270.00815.12
7.1.160.0180.00715.24
7.1.150.0180.01015.16
7.1.140.0200.00715.29
7.1.130.0180.00814.99
7.1.120.0230.00915.07
7.1.110.0200.00415.16
7.1.100.0200.00515.97
7.1.90.0190.00815.24
7.1.80.0200.00815.15
7.1.70.0140.00715.75
7.1.60.0190.01116.21
7.1.50.0210.00715.65
7.1.40.0150.00515.03
7.1.30.0150.01015.18
7.1.20.0220.00915.20
7.1.10.0200.01115.20
7.1.00.0140.02416.95
7.0.330.0350.01114.48
7.0.320.0270.00614.52
7.0.310.0340.00714.32
7.0.300.0310.00714.42
7.0.290.0320.00814.38
7.0.280.0240.00514.51
7.0.270.0260.00814.47
7.0.260.0350.00614.37
7.0.250.0230.00714.62
7.0.240.0280.01314.41
7.0.230.0900.01314.52
7.0.220.0210.00714.37
7.0.210.0230.00814.63
7.0.200.0150.00615.26
7.0.190.0190.00614.50
7.0.180.0280.00414.44
7.0.170.0170.01514.53
7.0.160.0280.00214.52
7.0.150.0260.00914.47
7.0.140.0210.02817.04
7.0.130.0300.01514.50
7.0.120.0270.00714.41
7.0.110.0290.00714.64
7.0.100.0260.02416.38
7.0.90.0220.01916.29
7.0.80.0160.02016.20
7.0.70.0270.02716.34
7.0.60.0240.02916.41
7.0.50.0170.02216.48
7.0.40.0280.02015.66
7.0.30.0300.01415.63
7.0.20.0180.02615.59
7.0.10.0180.03015.72
7.0.00.0170.02515.55
5.6.380.0090.01214.36
5.6.370.0140.00514.50
5.6.360.0130.00914.36
5.6.350.0090.00914.50
5.6.340.0130.00714.22
5.6.330.0080.00913.94
5.6.320.0090.01414.16
5.6.310.0100.01213.80
5.6.300.0150.00314.47
5.6.290.0140.00514.37
5.6.280.0120.02616.63
5.6.270.0120.00914.39
5.6.260.0140.00814.04
5.6.250.0140.02316.41
5.6.240.0090.02316.37
5.6.230.0070.01916.40
5.6.220.0130.02616.35
5.6.210.0130.02316.32
5.6.200.0070.03116.55
5.6.190.0110.01916.56
5.6.180.0100.02916.53
5.6.170.0110.02816.43
5.6.160.0080.03116.42
5.6.150.0050.02816.67
5.6.140.0110.02216.52
5.6.130.0100.03316.47
5.6.120.0090.03116.42
5.6.110.0100.02316.54
5.6.100.0050.03016.65
5.6.90.0070.03116.49
5.6.80.0180.02316.06
5.6.70.0060.02416.40
5.6.60.0050.02716.27
5.6.50.0090.03416.25
5.6.40.0100.02916.32
5.6.30.0090.01716.24
5.6.20.0090.01916.08
5.6.10.0050.02416.32
5.6.00.0110.03316.33
5.5.380.0050.03414.19
5.5.370.0050.02314.45
5.5.360.0100.01614.23
5.5.350.0060.03214.38
5.5.340.0040.03314.34
5.5.330.0030.02014.38
5.5.320.0070.01914.39
5.5.310.0100.03214.38
5.5.300.0070.01814.38
5.5.290.0050.01914.40
5.5.280.0090.03014.30
5.5.270.0100.02614.46
5.5.260.0050.03214.42
5.5.250.0070.02914.20
5.5.240.0100.02214.18
5.5.230.0030.02814.11
5.5.220.0090.02114.10
5.5.210.0050.03014.14
5.5.200.0050.03014.13
5.5.190.0070.02014.13
5.5.180.0100.01914.22
5.5.170.0040.00911.15
5.5.160.0100.03114.22
5.5.150.0080.02914.22
5.5.140.0110.03214.22
5.5.130.0090.01814.23
5.5.120.0050.01814.10
5.5.110.0070.02814.10
5.5.100.0080.02014.09
5.5.90.0060.01614.11
5.5.80.0110.02914.03
5.5.70.0030.02214.16
5.5.60.0060.01914.07
5.5.50.0040.02214.15
5.5.40.0030.02914.13
5.5.30.0100.01914.13
5.5.20.0050.02914.03
5.5.10.0070.02814.05
5.5.00.0060.01814.14
5.4.450.0090.03013.76
5.4.440.0060.02613.97
5.4.430.0070.02413.76
5.4.420.0070.02813.84
5.4.410.0090.02213.71
5.4.400.0090.02513.73
5.4.390.0090.01913.79
5.4.380.0120.01513.85
5.4.370.0090.02113.71
5.4.360.0100.01813.67
5.4.350.0070.01613.70
5.4.340.0030.03113.79
5.4.330.0030.00911.09
5.4.320.0060.03013.67
5.4.310.0080.02813.79
5.4.300.0070.02613.71
5.4.290.0070.02213.64
5.4.280.0060.02213.84
5.4.270.0090.02313.79
5.4.260.0100.02013.77
5.4.250.0070.01613.70
5.4.240.0090.02813.86
5.4.230.0090.02013.72
5.4.220.0130.01413.79
5.4.210.0080.01713.71
5.4.200.0050.01513.69
5.4.190.0070.02113.65
5.4.180.0100.01313.72
5.4.170.0080.01513.70
5.4.160.0080.02413.74
5.4.150.0050.02513.69
5.4.140.0040.01712.84
5.4.130.0060.01512.89
5.4.120.0060.01912.84
5.4.110.0050.02012.91
5.4.100.0120.01312.94
5.4.90.0100.02112.80
5.4.80.0090.02612.90
5.4.70.0050.03012.84
5.4.60.0060.03012.89
5.4.50.0050.01912.87
5.4.40.0050.02312.93
5.4.30.0080.02112.84
5.4.20.0010.02712.91
5.4.10.0050.02112.86
5.4.00.0080.02112.61
5.3.290.0070.01912.16
5.3.280.0070.02412.09
5.3.270.0070.02112.05
5.3.260.0050.02412.11
5.3.250.0080.02312.14
5.3.240.0050.01512.04
5.3.230.0070.02012.11
5.3.220.0080.02312.09
5.3.210.0090.02412.09
5.3.200.0060.02511.99
5.3.190.0090.02312.05
5.3.180.0070.02812.13
5.3.170.0080.02012.00
5.3.160.0020.02512.16
5.3.150.0040.01912.09
5.3.140.0050.02312.00
5.3.130.0100.02212.01
5.3.120.0050.01512.08
5.3.110.0050.02812.09
5.3.100.0020.03611.98
5.3.90.0050.02711.97
5.3.80.0080.02511.94
5.3.70.0070.02711.94
5.3.60.0030.02211.96
5.3.50.0060.02711.95
5.3.40.0060.02711.98
5.3.30.0050.02311.98
5.3.20.0060.02411.98
5.3.10.0060.02611.91
5.3.00.0060.02511.91

preferences:
44.76 ms | 401 KiB | 5 Q