3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface foo { public function getThing() : \Traversable; } class mything implements foo { public function getThing() : \ArrayIterator { return new \ArrayIterator([]); } } $xxx = new mything;

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.00916.50
8.3.50.0090.00918.18
8.3.40.0070.00718.62
8.3.30.0070.00718.42
8.3.20.0000.00720.16
8.3.10.0080.00020.82
8.3.00.0050.00320.64
8.2.180.0140.00716.63
8.2.170.0110.00422.96
8.2.160.0070.00719.43
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00717.91
8.2.120.0040.00426.35
8.2.110.0090.00322.27
8.2.100.0040.00817.72
8.2.90.0040.00419.23
8.2.80.0050.00318.05
8.2.70.0000.01117.63
8.2.60.0000.00917.93
8.2.50.0000.00718.10
8.2.40.0000.00822.14
8.2.30.0030.00519.25
8.2.20.0000.00718.10
8.2.10.0000.00818.05
8.2.00.0040.00417.90
8.1.280.0110.01125.92
8.1.270.0060.00322.14
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00623.96
8.1.230.0070.00322.08
8.1.220.0030.00617.74
8.1.210.0090.00018.77
8.1.200.0000.01017.48
8.1.190.0050.00317.25
8.1.180.0040.00418.10
8.1.170.0040.00420.25
8.1.160.0000.00719.04
8.1.150.0000.00818.79
8.1.140.0020.00519.57
8.1.130.0060.00318.86
8.1.120.0000.00717.46
8.1.110.0040.00417.32
8.1.100.0070.00017.33
8.1.90.0040.00417.35
8.1.80.0000.00717.33
8.1.70.0070.00017.49
8.1.60.0030.00617.52
8.1.50.0040.00417.51
8.1.40.0080.00017.43
8.1.30.0040.00417.69
8.1.20.0000.00817.65
8.1.10.0040.00417.57
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0030.00318.32
8.0.270.0030.00317.25
8.0.260.0000.00719.00
8.0.250.0070.00016.95
8.0.240.0050.00217.01
8.0.230.0000.00916.93
8.0.220.0000.00716.78
8.0.210.0040.00416.90
8.0.200.0030.00316.98
8.0.190.0000.00816.98
8.0.180.0040.00416.78
8.0.170.0040.00416.93
8.0.160.0000.00716.93
8.0.150.0030.00316.71
8.0.140.0030.00316.84
8.0.130.0030.00313.27
8.0.120.0070.00016.91
8.0.110.0040.00416.84
8.0.100.0000.00716.91
8.0.90.0000.00816.85
8.0.80.0120.00916.87
8.0.70.0020.00516.91
8.0.60.0040.00416.78
8.0.50.0070.00016.77
8.0.30.0130.00617.17
8.0.20.0130.00617.40
8.0.10.0040.00416.85
8.0.00.0110.00816.66
7.4.330.0050.00015.55
7.4.320.0060.00016.49
7.4.300.0030.00316.44
7.4.290.0040.00416.39
7.4.280.0030.00416.52
7.4.270.0070.00016.51
7.4.260.0050.00316.45
7.4.250.0050.00216.60
7.4.240.0000.00716.51
7.4.230.0050.00316.63
7.4.220.0090.00916.53
7.4.210.0080.00816.55
7.4.200.0000.00716.66
7.4.160.0130.00716.50
7.4.150.0070.01017.40
7.4.140.0120.00717.86
7.4.130.0120.00916.41
7.4.120.0100.00816.47
7.4.110.0090.00916.48
7.4.100.0120.00416.59
7.4.90.0130.00416.49
7.4.80.0070.01019.39
7.4.70.0120.00616.43
7.4.60.0000.01616.58
7.4.50.0080.00416.46
7.4.40.0100.01016.43
7.4.30.0030.01516.41
7.4.00.0070.01014.80
7.3.330.0030.00313.10
7.3.320.0080.00013.11
7.3.310.0000.00716.11
7.3.300.0000.00716.07
7.3.290.0030.00316.16
7.3.280.0100.00716.21
7.3.270.0130.00617.40
7.3.260.0100.01116.27
7.3.250.0080.01016.33
7.3.240.0110.00716.30
7.3.230.0110.00816.38
7.3.210.0060.01016.32
7.3.200.0120.00316.24
7.3.190.0100.00516.28
7.3.180.0120.00316.38
7.3.170.0090.00916.36
7.3.160.0100.00616.23
7.3.10.0040.00816.61
7.3.00.0050.00516.53
7.2.330.0100.00716.48
7.2.320.0100.01016.43
7.2.310.0130.00416.64
7.2.300.0070.01016.56
7.2.290.0120.00916.61
7.2.130.0040.00916.81
7.2.120.0020.00816.79
7.2.110.0020.00916.78
7.2.100.0060.00616.81
7.2.90.0050.00816.62
7.2.80.0040.00716.66
7.2.70.0030.00816.67
7.2.60.0050.00916.77
7.2.50.0030.00816.88
7.2.40.0060.00616.81
7.2.30.0080.00616.76
7.2.20.0020.00816.73
7.2.10.0050.00916.67
7.2.00.0050.00816.68
7.1.250.0090.00315.52
7.1.240.0040.00815.57
7.1.230.0050.00515.58
7.1.220.0100.00315.78
7.1.210.0030.00915.77
7.1.200.0020.01115.50
7.1.190.0090.00915.59
7.1.180.0060.00915.78
7.1.170.0040.00815.79
7.1.160.0000.01415.45
7.1.150.0020.00515.46
7.1.140.0090.00315.63
7.1.130.0040.00815.71
7.1.120.0000.01115.64
7.1.110.0030.01015.72
7.1.100.0030.00815.56
7.1.90.0050.00315.35
7.1.80.0030.00615.69
7.1.70.0530.00415.38
7.1.60.0550.00724.38
7.1.50.0560.00924.21
7.1.40.0570.00723.90
7.1.30.0820.00623.96
7.1.20.0640.00624.14
7.1.10.0640.00514.98
7.1.00.1170.00815.06
7.0.330.0000.00715.11
7.0.320.0030.00615.16
7.0.310.0090.00315.16
7.0.300.0090.00315.47
7.0.290.0000.01115.09
7.0.280.0060.00615.06
7.0.270.0030.01015.14
7.0.260.0150.00015.39
7.0.250.0050.00315.34
7.0.240.0070.00715.14
7.0.230.0030.00615.28
7.0.220.0040.00815.29
7.0.210.0030.00615.34
7.0.200.0710.00614.93
7.0.190.0590.00614.89
7.0.180.0500.01014.80
7.0.170.0660.00514.86
7.0.160.0700.00514.62
7.0.150.0580.00714.81
7.0.140.0730.00414.56
7.0.130.0930.01014.81
7.0.120.0670.00314.88
7.0.110.0590.01014.83
7.0.100.0690.00714.88
7.0.90.0620.00914.79
7.0.80.0630.00714.82
7.0.70.0640.00914.71
7.0.60.0680.00614.69
7.0.50.0920.00314.79
7.0.40.0650.00613.99
7.0.30.0610.00713.77
7.0.20.0590.00913.86
7.0.10.0630.00513.87
7.0.00.0630.00813.92
5.6.380.0070.01014.00

preferences:
54 ms | 400 KiB | 5 Q