3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo implements Iterator { public function __construct() { $this->position = 0; } function rewind() { $this->position = 0; } function current() { return $this->array[$this->position]; } function key() { return $this->position; } function next() { ++$this->position; } function valid() { return isset($this->array[$this->position]); } function bar() { return "brap brap"; } } foo::bar();

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.00616.50
8.3.50.0200.01016.54
8.3.40.0040.01118.97
8.3.30.0110.00318.89
8.3.20.0040.00418.82
8.3.10.0050.00318.86
8.3.00.0050.00319.38
8.2.180.0110.01118.54
8.2.170.0060.00822.96
8.2.160.0150.00018.82
8.2.150.0060.00324.18
8.2.140.0090.00624.66
8.2.130.0070.00026.16
8.2.120.0040.00420.97
8.2.110.0030.00620.46
8.2.100.0060.00917.91
8.2.90.0030.00617.63
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0040.00418.03
8.2.50.0050.00318.07
8.2.40.0000.00919.48
8.2.30.0040.00417.79
8.2.20.0060.00317.64
8.2.10.0050.00217.61
8.2.00.0060.00317.75
8.1.280.0070.00725.92
8.1.270.0030.00523.99
8.1.260.0000.00926.35
8.1.250.0000.00728.09
8.1.240.0060.00917.84
8.1.230.0000.01120.73
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0000.00818.89
8.1.160.0040.00418.89
8.1.150.0040.00418.57
8.1.140.0000.00717.38
8.1.130.0000.00717.39
8.1.120.0040.00417.43
8.1.110.0040.00417.38
8.1.100.0030.00517.39
8.1.90.0000.00717.43
8.1.80.0080.00017.27
8.1.70.0080.00017.41
8.1.60.0070.00017.54
8.1.50.0060.00317.29
8.1.40.0040.00417.46
8.1.30.0000.00917.58
8.1.20.0040.00417.49
8.1.10.0040.00417.41
8.1.00.0000.00717.30
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0080.00018.56
8.0.270.0030.00317.25
8.0.260.0030.00316.93
8.0.250.0000.00817.01
8.0.240.0040.00416.98
8.0.230.0040.00416.92
8.0.220.0000.00816.87
8.0.210.0030.00316.93
8.0.200.0060.00016.92
8.0.190.0050.00317.03
8.0.180.0040.00416.99
8.0.170.0040.00417.03
8.0.160.0040.00416.95
8.0.150.0030.00616.79
8.0.140.0020.00516.81
8.0.130.0000.00513.31
8.0.120.0000.00816.95
8.0.110.0030.00317.01
8.0.100.0050.00216.75
8.0.90.0000.00816.94
8.0.80.0040.01416.88
8.0.70.0050.00316.95
8.0.60.0030.00517.00
8.0.50.0000.00817.02
8.0.30.0040.01617.05
8.0.20.0100.01117.28
8.0.10.0040.00416.94
8.0.00.0110.01016.74
7.4.330.0020.00212.82
7.4.320.0000.00716.48
7.4.300.0030.00316.45
7.4.290.0000.00916.54
7.4.280.0040.00416.44
7.4.270.0000.00916.46
7.4.260.0000.00513.12
7.4.250.0040.00416.50
7.4.240.0000.00816.43
7.4.230.0000.00816.63
7.4.220.0060.01216.46
7.4.210.0110.00816.58
7.4.200.0000.00716.60
7.4.190.0030.00316.67
7.4.160.0090.01516.31
7.4.150.0070.01816.53
7.4.140.0170.00317.86
7.4.130.0090.01216.43
7.4.120.0130.00316.58
7.4.110.0180.00416.57
7.4.100.0080.00916.40
7.4.90.0150.00916.38
7.4.80.0060.01019.39
7.4.70.0060.01216.24
7.4.60.0090.00616.70
7.4.50.0050.00016.44
7.4.40.0090.00616.63
7.4.30.0030.01516.43
7.4.00.0100.00314.81
7.3.330.0040.00413.33
7.3.320.0030.00313.14
7.3.310.0020.00516.12
7.3.300.0030.00316.18
7.3.290.0040.01216.26
7.3.280.0120.00416.24
7.3.270.0070.01016.34
7.3.260.0070.01016.37
7.3.240.0050.01116.34
7.3.230.0200.00416.30
7.3.210.0130.00316.21
7.3.200.0070.01016.36
7.3.190.0070.01716.33
7.3.180.0000.01616.36
7.3.170.0110.01116.38
7.3.160.0070.00716.41
7.3.120.0030.00714.84
7.2.330.0060.01216.45
7.2.320.0070.01016.34
7.2.310.0150.00316.42
7.2.300.0120.00616.45
7.2.290.0060.01216.39
7.2.60.0040.00816.77
7.2.50.0070.00616.93
7.2.00.0080.00419.45
7.1.200.0040.00815.64
7.1.100.0060.00618.05
7.1.70.0000.00717.13
7.1.60.0110.01419.25
7.1.50.0200.01734.58
7.1.00.0000.03722.33
7.0.200.0070.00316.57
7.0.140.0100.06722.00
7.0.120.0070.06022.03
7.0.110.0000.08719.95
7.0.100.0100.08020.00
7.0.90.0130.07719.96
7.0.80.0170.08019.91
7.0.70.0100.07319.93
7.0.60.0070.04720.00
7.0.50.0170.07720.39
7.0.40.0030.07320.28
7.0.30.0000.08320.29
7.0.20.0130.09320.27
7.0.10.0200.06720.27
7.0.00.0100.08020.02
5.6.280.0070.09021.09
5.6.250.0100.07720.73
5.6.240.0130.07720.70
5.6.230.0070.08020.52
5.6.220.0100.08720.63
5.6.210.0030.06020.66
5.6.200.0130.07721.04
5.6.190.0100.08321.07
5.6.180.0070.07321.28
5.6.170.0070.07721.04
5.6.160.0100.07721.29
5.6.150.0130.05021.11
5.6.140.0130.04321.09
5.6.130.0070.08021.20
5.6.120.0030.04721.20
5.6.110.0130.07721.13
5.6.100.0070.08320.98
5.6.90.0100.06720.90
5.6.80.0030.07320.33
5.6.70.0130.07020.48
5.6.60.0070.08320.66
5.6.50.0070.08020.68
5.6.40.0170.07020.35
5.6.30.0130.06320.39
5.6.20.0130.04320.50
5.6.10.0030.05020.32
5.6.00.0030.08320.45
5.5.380.0030.08320.50
5.5.370.0130.07020.34
5.5.360.0130.07720.52
5.5.350.0070.08320.43
5.5.340.0130.07320.95
5.5.330.0100.08020.90
5.5.320.0000.08720.75
5.5.310.0170.07720.80
5.5.300.0200.06720.99
5.5.290.0130.07320.82
5.5.280.0000.08320.96
5.5.270.0130.07320.81
5.5.260.0100.08320.81
5.5.250.0100.06720.56
5.5.240.0130.07320.14
5.5.230.0130.08020.13
5.5.220.0130.07320.27
5.5.210.0030.08020.40
5.5.200.0100.03720.25
5.5.190.0070.08320.25
5.5.180.0170.07020.14
5.5.160.0170.07320.38
5.5.150.0130.07320.30
5.5.140.0130.07020.19
5.5.130.0130.07020.16
5.5.120.0070.07320.13
5.5.110.0070.07320.25
5.5.100.0030.08320.00
5.5.90.0130.06020.01
5.5.80.0070.08320.28
5.5.70.0100.04720.02
5.5.60.0100.07720.04
5.5.50.0100.06320.21
5.5.40.0070.05320.07
5.5.30.0070.04020.03
5.5.20.0070.08320.00
5.5.10.0270.05720.04
5.5.00.0100.07020.17
5.4.450.0030.08319.33
5.4.440.0100.07019.46
5.4.430.0100.06719.55
5.4.420.0170.07319.66
5.4.410.0100.07319.20
5.4.400.0100.06719.18
5.4.390.0170.06319.16
5.4.380.0030.07019.14
5.4.370.0070.07719.18
5.4.360.0070.07019.18
5.4.350.0000.06319.03
5.4.340.0070.07319.31
5.4.320.0170.04019.00
5.4.310.0030.07719.23
5.4.300.0130.04318.90
5.4.290.0130.07019.09
5.4.280.0030.06019.14
5.4.270.0070.07019.24
5.4.260.0100.07319.01
5.4.250.0070.07718.98
5.4.240.0130.06719.00
5.4.230.0070.07319.31
5.4.220.0070.07318.98
5.4.210.0130.06719.00
5.4.200.0130.06319.30
5.4.190.0100.06719.00
5.4.180.0070.07319.02
5.4.170.0130.07018.97
5.4.160.0030.08319.29
5.4.150.0030.08319.16
5.4.140.0070.06716.48
5.4.130.0030.07716.46
5.4.120.0030.07716.43
5.4.110.0100.04716.54
5.4.100.0100.04016.57
5.4.90.0130.06316.56
5.4.80.0130.06716.30
5.4.70.0170.04716.54
5.4.60.0070.07016.45
5.4.50.0000.07716.45
5.4.40.0030.04716.57
5.4.30.0170.04716.43
5.4.20.0030.04016.55
5.4.10.0130.07316.63
5.4.00.0070.07016.04
5.3.290.0100.07314.67
5.3.280.0130.07314.62
5.3.270.0070.07314.48
5.3.260.0100.07314.48
5.3.250.0070.05314.47
5.3.240.0000.08014.46
5.3.230.0070.08014.64
5.3.220.0130.07314.59
5.3.210.0070.07714.70
5.3.200.0070.06714.71
5.3.190.0000.06314.68
5.3.180.0070.07014.70
5.3.170.0130.06714.56
5.3.160.0070.04314.56
5.3.150.0030.07314.58
5.3.140.0030.07714.70
5.3.130.0030.08014.56
5.3.120.0100.06014.53
5.3.110.0130.06714.64
5.3.100.0170.07014.04
5.3.90.0030.04714.16
5.3.80.0100.07314.18
5.3.70.0070.04314.01
5.3.60.0070.07314.03
5.3.50.0130.07014.01
5.3.40.0100.06713.96
5.3.30.0100.06713.93
5.3.20.0070.06713.93
5.3.10.0030.05313.74
5.3.00.0070.06713.66
5.2.170.0070.03711.17
5.2.160.0030.02711.18
5.2.150.0030.06311.11
5.2.140.0070.06011.21
5.2.130.0170.05011.19
5.2.120.0070.06011.13
5.2.110.0200.03011.10
5.2.100.0100.04311.07
5.2.90.0070.03011.09
5.2.80.0030.05011.23
5.2.70.0070.03011.06
5.2.60.0000.03011.14
5.2.50.0000.05011.00
5.2.40.0070.02710.98
5.2.30.0000.03010.99
5.2.20.0030.03711.05
5.2.10.0130.03310.73
5.2.00.0070.02310.73
5.1.60.0000.02710.25
5.1.50.0030.0279.97
5.1.40.0030.0239.95
5.1.30.0100.05310.20
5.1.20.0000.04310.44
5.1.10.0000.02710.05
5.1.00.0000.02710.05
5.0.50.0070.0138.53
5.0.40.0000.0238.37
5.0.30.0000.0308.20
5.0.20.0000.0208.27
5.0.10.0030.0278.18
5.0.00.0000.0308.16
4.4.90.0030.0177.85
4.4.80.0070.0107.85
4.4.70.0000.0207.85
4.4.60.0000.0177.85
4.4.50.0030.0137.85
4.4.40.0030.0307.85
4.4.30.0000.0137.85
4.4.20.0030.0137.85
4.4.10.0030.0137.85
4.4.00.0030.0337.85
4.3.110.0000.0177.85
4.3.100.0030.0137.85
4.3.90.0000.0277.85
4.3.80.0000.0237.85
4.3.70.0000.0177.85
4.3.60.0030.0137.85
4.3.50.0030.0137.85
4.3.40.0000.0277.85
4.3.30.0000.0177.85
4.3.20.0000.0307.85
4.3.10.0030.0207.85
4.3.00.0000.0137.85

preferences:
88.05 ms | 401 KiB | 5 Q