3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test implements ArrayAccess { public function offsetSet($offset, $value) { var_dump($offset); } public function offsetGet($offset){} public function offsetUnset($offset){} public function offsetExists($offset){} } $test = new Test(); $test[7.3982] = true; $test[new \stdClass()] = true; $x[7.3982] = true; var_dump($x);

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.80.0030.00618.51
8.3.70.0100.01018.20
8.3.60.0120.00316.63
8.3.50.0080.01121.92
8.3.40.0110.00318.86
8.3.30.0090.00618.84
8.3.20.0050.00320.29
8.3.10.0000.00823.66
8.3.00.0040.00419.26
8.2.200.0070.00316.88
8.2.190.0140.00416.63
8.2.180.0040.01518.29
8.2.170.0140.00418.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.52
8.2.120.0040.00426.35
8.2.110.0030.00720.89
8.2.100.0090.00317.75
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0050.00317.78
8.2.50.0040.00418.07
8.2.40.0060.00319.34
8.2.30.0000.00720.67
8.2.20.0040.00417.81
8.2.10.0040.00418.13
8.2.00.0000.00718.14
8.1.290.0000.01118.88
8.1.280.0110.00725.92
8.1.270.0040.00423.87
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0110.00019.06
8.1.230.0080.00417.42
8.1.220.0060.00317.78
8.1.210.0030.00518.77
8.1.200.0040.00417.13
8.1.190.0050.00317.64
8.1.180.0000.00818.10
8.1.170.0040.00418.57
8.1.160.0040.00422.09
8.1.150.0040.00418.89
8.1.140.0000.01019.64
8.1.130.0000.00717.63
8.1.120.0040.00417.55
8.1.110.0040.00417.46
8.1.100.0060.00317.50
8.1.90.0070.00017.50
8.1.80.0040.00417.46
8.1.70.0040.00417.50
8.1.60.0040.00717.64
8.1.50.0030.00617.57
8.1.40.0050.00317.50
8.1.30.0000.00817.73
8.1.20.0040.00417.70
8.1.10.0080.00017.46
8.1.00.0000.00717.47
8.0.300.0090.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.33
8.0.270.0070.00017.18
8.0.260.0060.00017.34
8.0.250.0080.00016.98
8.0.240.0000.00716.95
8.0.230.0000.00717.01
8.0.220.0040.00416.89
8.0.210.0000.00816.96
8.0.200.0000.00716.95
8.0.190.0040.00416.85
8.0.180.0070.00016.81
8.0.170.0040.00416.96
8.0.160.0000.00716.88
8.0.150.0000.00716.83
8.0.140.0000.00916.88
8.0.130.0000.00613.28
8.0.120.0000.00716.87
8.0.110.0070.00016.89
8.0.100.0060.00316.96
8.0.90.0030.00416.86
8.0.80.0110.00716.88
8.0.70.0050.00216.70
8.0.60.0000.00716.73
8.0.50.0000.00716.90
8.0.30.0080.01116.97
8.0.20.0140.00817.40
8.0.10.0040.00416.91
8.0.00.0130.00616.79
7.4.330.0030.00315.08
7.4.320.0060.00016.42
7.4.300.0030.00316.63
7.4.290.0070.00016.66
7.4.280.0030.00616.51
7.4.270.0000.00716.61
7.4.260.0030.00516.39
7.4.250.0040.00416.55
7.4.240.0040.00516.55
7.4.230.0000.00716.68
7.4.220.0120.01216.43
7.4.210.0070.00716.70
7.4.200.0030.00516.68
7.4.160.0030.01216.52
7.4.150.0090.01217.40
7.4.140.0140.00617.86
7.4.130.0090.01116.43
7.4.120.0080.01016.54
7.4.110.0070.01716.36
7.4.100.0120.00916.50
7.4.90.0070.01016.55
7.4.80.0070.01019.39
7.4.70.0090.00916.60
7.4.60.0130.00316.52
7.4.50.0090.00316.35
7.4.40.0070.01016.60
7.4.30.0120.00616.54
7.4.00.0040.01414.91
7.3.330.0060.00213.29
7.3.320.0000.00613.30
7.3.310.0040.00416.16
7.3.300.0030.00316.25
7.3.290.0100.00916.25
7.3.280.0080.01216.25
7.3.270.0110.00717.40
7.3.260.0100.00916.68
7.3.250.0100.00716.51
7.3.240.0070.01016.23
7.3.230.0080.00816.50
7.3.210.0170.00016.32
7.3.200.0330.01016.44
7.3.190.0110.00816.65
7.3.180.0100.01116.32
7.3.170.0120.00616.42
7.3.160.0070.01016.52
7.2.330.0100.00616.67
7.2.320.0100.00716.71
7.2.310.0100.00716.52
7.2.300.0120.00816.47
7.2.290.0030.01316.71
7.2.60.0000.01116.70
7.2.00.0000.00919.28
7.1.200.0040.00715.70
7.1.100.0150.01516.08
7.1.70.0000.01016.92
7.1.60.0030.00917.23
7.1.50.0110.01116.80
7.1.00.0130.06722.30
7.0.200.0060.00916.97
7.0.60.0100.04319.96
7.0.50.0100.08317.78
7.0.40.0030.05720.40
7.0.30.0300.07320.14
7.0.20.0400.05720.19
7.0.10.0200.08020.07
7.0.00.0100.05320.05
5.6.280.0000.06020.91
5.6.210.0030.04020.66
5.6.200.0070.08318.25
5.6.190.0070.08720.77
5.6.180.0230.04720.46
5.6.170.0200.03720.71
5.6.160.0000.04720.50
5.6.150.0070.08318.21
5.6.140.0100.03718.17
5.6.130.0070.04318.18
5.6.120.0030.09020.98
5.6.110.0000.06320.99
5.6.100.0130.07721.01
5.6.90.0070.05720.88
5.6.80.0100.06720.54
5.5.350.0100.05320.43
5.5.340.0100.06317.95
5.5.330.0000.04720.56
5.5.320.0000.04320.30
5.5.310.0370.07020.34
5.5.300.0130.07718.04
5.5.290.0030.04018.04
5.5.280.0100.04320.77
5.5.270.0100.05020.77
5.5.260.0000.04320.73
5.5.250.0170.03320.55
5.5.240.0370.06020.37

preferences:
63.78 ms | 401 KiB | 5 Q