3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo implements ArrayAccess { public function offsetSet(string $offset, string $value) { // } public function offsetExists(string $offset) { // } public function offsetUnset(string $offset) { // } public function offsetGet(string $offset) { // } }

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.70.0150.00316.63
8.3.60.0120.00616.88
8.3.50.0120.00821.08
8.3.40.0070.00718.61
8.3.30.0090.00618.52
8.3.20.0000.00720.25
8.3.10.0040.00421.55
8.3.00.0040.00421.76
8.2.180.0100.01016.38
8.2.170.0040.01122.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00421.04
8.2.120.0070.00026.35
8.2.110.0000.00920.87
8.2.100.0040.00817.91
8.2.90.0040.00419.08
8.2.80.0080.00017.97
8.2.70.0030.00617.47
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0040.00422.20
8.2.30.0040.00419.25
8.2.20.0000.00817.68
8.2.10.0050.00317.99
8.2.00.0040.00417.95
8.1.280.0070.00725.92
8.1.270.0080.00022.03
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.32
8.1.230.0040.00719.17
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.48
8.1.160.0000.00720.61
8.1.150.0040.00420.52
8.1.140.0050.00319.64
8.1.130.0000.00717.55
8.1.120.0000.00717.46
8.1.110.0040.00417.23
8.1.100.0060.00317.40
8.1.90.0050.00317.34
8.1.80.0050.00217.35
8.1.70.0050.00317.32
8.1.60.0000.00717.52
8.1.50.0000.00817.49
8.1.40.0040.00417.48
8.1.30.0000.00817.65
8.1.20.0000.00717.55
8.1.10.0040.00417.36
8.1.00.0020.00517.29
8.0.300.0050.00318.77
8.0.290.0030.00616.75
8.0.280.0030.00318.38
8.0.270.0030.00317.29
8.0.260.0000.00617.16
8.0.250.0070.00016.93
8.0.240.0030.00316.97
8.0.230.0000.00716.84
8.0.220.0000.00716.90
8.0.210.0000.00816.77
8.0.200.0030.00316.85
8.0.190.0030.00516.84
8.0.180.0040.00416.92
8.0.170.0050.00216.82
8.0.160.0080.00016.89
8.0.150.0040.00416.88
8.0.140.0040.00416.81
8.0.130.0030.00313.34
8.0.120.0030.00516.87
8.0.110.0030.00516.79
8.0.100.0000.00817.00
8.0.90.0030.00316.76
8.0.80.0030.01116.90
8.0.70.0000.00816.72
8.0.60.0040.00416.81
8.0.50.0070.00016.79
8.0.30.0090.00916.97
8.0.20.0130.01017.40
8.0.10.0000.00716.98
8.0.00.0120.00916.79
7.4.330.0000.00516.86
7.4.320.0000.00616.44
7.4.300.0000.00716.54
7.4.290.0070.00016.59
7.4.280.0040.00716.55
7.4.270.0030.00316.32
7.4.260.0000.00716.48
7.4.250.0040.00416.55
7.4.240.0040.00316.52
7.4.230.0000.00716.57
7.4.220.0090.00916.50
7.4.210.0070.00816.43
7.4.200.0070.00016.47
7.4.160.0140.00716.64
7.4.150.0070.01017.40
7.4.140.0080.01317.86
7.4.130.0120.00616.41
7.4.120.0090.00816.43
7.4.110.0110.00716.37
7.4.100.0150.00916.50
7.4.90.0180.00316.15
7.4.80.0140.00719.39
7.4.70.0060.01516.57
7.4.60.0060.00916.51
7.4.50.0060.01016.54
7.4.40.0160.00016.48
7.4.30.0140.00816.34
7.4.00.0090.00614.89
7.3.330.0060.00013.02
7.3.320.0000.00513.26
7.3.310.0040.00416.25
7.3.300.0000.00716.29
7.3.290.0030.00316.24
7.3.280.0060.01016.23
7.3.270.0140.00317.40
7.3.260.0120.00916.49
7.3.240.0150.00516.18
7.3.230.0120.00616.39
7.3.210.0030.01416.45
7.3.200.0030.01319.39
7.3.190.0030.01316.27
7.3.180.0130.01016.37
7.3.170.0040.01316.29
7.3.160.0090.00616.23
7.3.120.0030.01514.79
7.3.110.0110.00814.74
7.3.100.0020.01314.59
7.3.90.0060.00514.68
7.3.80.0050.00714.61
7.3.70.0080.00614.70
7.3.60.0000.01114.79
7.3.50.0050.00514.62
7.3.40.0050.00814.67
7.3.30.0050.00614.56
7.3.20.0050.01016.22
7.3.10.0070.00516.55
7.3.00.0050.00716.49
7.2.330.0060.01216.51
7.2.320.0140.00416.52
7.2.310.0030.01416.58
7.2.300.0090.00916.36
7.2.290.0040.01116.36
7.2.250.0030.01215.07
7.2.240.0090.00914.88
7.2.230.0020.01314.71
7.2.220.0070.00714.85
7.2.210.0080.00514.87
7.2.200.0060.00914.79
7.2.190.0060.00814.93
7.2.180.0090.00715.01
7.2.170.0080.00514.72
7.2.160.0060.00614.68
7.2.150.0030.01316.60
7.2.140.0090.00616.56
7.2.130.0120.00316.51
7.2.120.0130.00316.70
7.2.110.0000.01216.82
7.2.100.0030.01016.89
7.2.90.0090.00016.67
7.2.80.0030.00616.64
7.2.70.0090.00016.94
7.2.60.0070.00716.59
7.2.50.0070.00716.89
7.2.40.0090.00316.48
7.2.30.0080.00816.89
7.2.20.0080.00816.50
7.2.10.0000.01816.95
7.2.00.0030.01217.91
7.1.330.0050.00815.47
7.1.320.0030.00815.73
7.1.310.0020.01015.84
7.1.300.0050.00915.53
7.1.290.0080.00715.44
7.1.280.0040.00515.47
7.1.270.0040.00815.63
7.1.260.0060.00915.60
7.1.250.0060.00315.46
7.1.200.0070.00715.80
7.1.100.0000.01117.90
7.1.70.0070.00317.06
7.1.60.0030.02119.28
7.1.50.0040.01816.51
7.1.00.0030.07322.55
7.0.200.0140.00316.43
7.0.60.0130.06721.84
7.0.50.0100.07317.87
7.0.40.0070.04020.13
7.0.30.0270.03720.34
7.0.20.0230.04020.23
7.0.10.0070.06720.15
7.0.00.0070.08320.10
5.6.280.0070.04320.79
5.6.210.0000.08020.71
5.6.200.0030.05018.18
5.6.190.0200.07720.40
5.6.180.0470.05020.46
5.6.170.0300.08020.52
5.6.160.0070.05020.47
5.6.150.0130.07318.19
5.6.140.0100.06318.19
5.6.130.0070.04318.14
5.6.120.0100.06320.97
5.6.110.0100.06720.89
5.6.100.0070.08720.96
5.6.90.0230.05320.98
5.6.80.0070.07720.51
5.5.350.4170.04020.30
5.5.340.0000.06718.09
5.5.330.0100.04720.40
5.5.320.0530.07320.34
5.5.310.0230.05020.38
5.5.300.0130.07317.97
5.5.290.0030.08017.99
5.5.280.0000.04320.78
5.5.270.0100.03320.95
5.5.260.0070.08020.87
5.5.250.0070.06020.67
5.5.240.0230.06320.34

preferences:
48.52 ms | 401 KiB | 5 Q