3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = new SplObjectStorage(); $hash[new ArrayObject(array(1, 2, 'three'))] = "jim jones"; echo $hash[new ArrayObject(array(1, 2, 'three'))]; ?>

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.0070.00716.75
8.3.50.0100.01018.06
8.3.40.0070.00718.97
8.3.30.0150.00318.71
8.3.20.0040.00420.36
8.3.10.0080.00023.70
8.3.00.0040.00419.44
8.2.180.0130.00918.41
8.2.170.0110.00422.96
8.2.160.0100.01020.22
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0060.00617.75
8.2.120.0050.00326.35
8.2.110.0100.00022.22
8.2.100.0140.00317.55
8.2.90.0020.00519.28
8.2.80.0000.00817.97
8.2.70.0080.00017.59
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0070.00019.52
8.2.30.0030.00320.48
8.2.20.0000.00817.74
8.2.10.0070.00018.11
8.2.00.0070.00017.95
8.1.280.0060.01525.92
8.1.270.0040.00422.19
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0090.00022.48
8.1.230.0110.00017.78
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0060.00317.13
8.1.180.0030.00618.10
8.1.170.0040.00418.31
8.1.160.0050.00321.89
8.1.150.0000.00718.75
8.1.140.0040.00419.46
8.1.130.0000.00717.59
8.1.120.0040.00417.30
8.1.110.0000.00717.36
8.1.100.0040.00417.29
8.1.90.0040.00417.38
8.1.80.0070.00017.38
8.1.70.0000.00817.34
8.1.60.0050.00317.50
8.1.50.0000.00817.46
8.1.40.0040.00717.50
8.1.30.0060.00317.64
8.1.20.0050.00317.48
8.1.10.0030.00617.47
8.1.00.0000.00817.35
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0050.00318.40
8.0.270.0030.00317.09
8.0.260.0030.00317.21
8.0.250.0000.00716.95
8.0.240.0060.00316.91
8.0.230.0000.00716.98
8.0.220.0040.00416.87
8.0.210.0030.00316.88
8.0.200.0000.00816.91
8.0.190.0000.01016.92
8.0.180.0040.00416.96
8.0.170.0040.00416.88
8.0.160.0000.00716.77
8.0.150.0000.00716.86
8.0.140.0030.00716.80
8.0.130.0000.00713.35
8.0.120.0050.00316.71
8.0.110.0000.00916.81
8.0.100.0070.00016.66
8.0.90.0000.00816.90
8.0.80.0120.00316.91
8.0.70.0050.00316.66
8.0.60.0050.00316.89
8.0.50.0040.00416.94
8.0.30.0090.00717.06
8.0.20.0100.00917.40
8.0.10.0050.00216.99
8.0.00.0080.00916.62
7.4.330.0000.00515.08
7.4.320.0060.00016.53
7.4.300.0060.00016.39
7.4.290.0000.00816.49
7.4.280.0000.00816.64
7.4.270.0030.00316.40
7.4.260.0030.00316.52
7.4.250.0040.00416.59
7.4.240.0020.00516.49
7.4.230.0050.00216.50
7.4.220.0100.01316.56
7.4.210.0090.01016.56
7.4.200.0070.00016.61
7.4.160.0100.00616.36
7.4.150.0110.00617.40
7.4.140.0100.01217.86
7.4.130.0210.00316.36
7.4.120.0090.01216.57
7.4.110.0130.01016.46
7.4.100.0120.00616.51
7.4.90.0160.00616.51
7.4.80.0130.00919.39
7.4.70.0060.01316.40
7.4.60.0080.00816.34
7.4.50.0030.00316.30
7.4.40.0130.00316.57
7.4.30.0090.01316.29
7.4.10.0110.00714.94
7.4.00.0060.01014.88
7.3.330.0030.00313.20
7.3.320.0020.00213.07
7.3.310.0070.00016.27
7.3.300.0100.00016.29
7.3.290.0060.00016.28
7.3.280.0090.01016.30
7.3.270.0180.00017.40
7.3.260.0160.00716.43
7.3.240.0090.00716.20
7.3.230.0000.01916.39
7.3.210.0030.01416.34
7.3.200.0070.01016.71
7.3.190.0110.01116.26
7.3.180.0040.01116.29
7.3.170.0110.00516.43
7.3.160.0060.00916.46
7.3.130.0070.01014.86
7.3.120.0040.01114.61
7.3.110.0050.01214.69
7.3.100.0030.01014.86
7.3.90.0030.01014.74
7.3.80.0090.00714.85
7.3.70.0050.00714.78
7.3.60.0050.00414.71
7.3.50.0060.00914.81
7.3.40.0110.00514.66
7.3.30.0070.00814.87
7.3.20.0050.00616.55
7.3.10.0030.01016.78
7.3.00.0060.00616.70
7.2.330.0130.00816.84
7.2.320.0110.00616.73
7.2.310.0040.01216.43
7.2.300.0060.01016.54
7.2.290.0090.00916.68
7.2.260.0030.01415.17
7.2.250.0090.00915.01
7.2.240.0050.00814.97
7.2.230.0060.00814.99
7.2.220.0040.00915.16
7.2.210.0090.00615.00
7.2.200.0050.00915.02
7.2.190.0030.01314.98
7.2.180.0050.01115.05
7.2.170.0060.00915.00
7.2.160.0030.01214.85
7.2.150.0100.00616.92
7.2.140.0080.00516.84
7.2.130.0050.00816.77
7.2.120.0110.00316.89
7.2.110.0080.00516.69
7.2.100.0070.01016.63
7.2.90.0030.01116.76
7.2.80.0030.01216.64
7.2.70.0030.01016.94
7.2.60.0070.00816.98
7.2.50.0050.00816.89
7.2.40.0050.01016.91
7.2.30.0030.01216.99
7.2.20.0070.00416.71
7.2.10.0070.00717.01
7.2.00.0040.01117.63
7.1.330.0050.01015.79
7.1.320.0050.00815.87
7.1.310.0060.00615.86
7.1.300.0110.00615.75
7.1.290.0060.00715.69
7.1.280.0060.00915.65
7.1.270.0020.01315.75
7.1.260.0020.00915.87
7.1.250.0060.00615.68
7.1.240.0030.01015.72
7.1.230.0030.01215.70
7.1.220.0030.00515.66
7.1.210.0090.00315.63
7.1.200.0090.00515.85
7.1.190.0040.00715.41
7.1.180.0100.00315.89
7.1.170.0060.00615.50
7.1.160.0100.00615.72
7.1.150.0000.01215.80
7.1.140.0040.01215.77
7.1.130.0000.01015.54
7.1.120.0030.01015.61
7.1.110.0070.01015.72
7.1.100.0030.00816.83
7.1.90.0030.01015.88
7.1.80.0030.01015.77
7.1.70.0080.00516.46
7.1.60.0090.00817.66
7.1.50.0040.01216.40
7.1.40.0070.00715.68
7.1.30.0090.00015.78
7.1.20.0030.00915.86
7.1.10.0080.00515.75
7.1.00.0030.04419.18
7.0.330.0000.01315.52
7.0.320.0030.01015.38
7.0.310.0030.00615.63
7.0.300.0030.00615.46
7.0.290.0060.00615.23
7.0.280.0040.00415.17
7.0.270.0060.00615.07
7.0.260.0070.00315.36
7.0.250.0110.00315.46
7.0.240.0100.00315.51
7.0.230.0000.01215.53
7.0.220.0070.00715.55
7.0.210.0080.00415.51
7.0.200.0130.00615.11
7.0.190.0080.00315.36
7.0.180.0000.00915.36
7.0.170.0040.00415.49
7.0.160.0000.01015.50
7.0.150.0000.01115.53
7.0.140.0070.00315.54
7.0.130.0080.00315.54
7.0.120.0060.00615.49
7.0.110.0100.00315.46
7.0.100.0050.04518.49
7.0.90.0030.04318.61
7.0.80.0050.04518.60
7.0.70.0050.05118.57
7.0.60.0120.03718.52
7.0.50.0050.04018.87
7.0.40.0030.02816.87
7.0.30.0050.04616.61
7.0.20.0090.02916.72
7.0.10.0050.03216.87
7.0.00.0040.04416.84
5.6.400.0040.01114.30
5.6.390.0030.00614.47
5.6.380.0080.00014.16
5.6.370.0030.01014.27
5.6.360.0060.00314.69
5.6.350.0030.01214.23
5.6.340.0110.00014.45
5.6.330.0080.00814.30
5.6.320.0000.01014.09
5.6.310.0070.00714.31
5.6.300.0060.00614.65
5.6.290.0060.00914.41
5.6.280.0060.02717.70
5.6.270.0060.00314.38
5.6.260.0090.00314.37
5.6.250.0100.03717.54
5.6.240.0080.04017.38
5.6.230.0080.03317.34
5.6.220.0070.04717.40
5.6.210.0050.04217.42
5.6.200.0070.04217.68
5.6.190.0070.04417.74
5.6.180.0050.04317.83
5.6.170.0030.04217.61
5.6.160.0060.03917.64
5.6.150.0070.04117.84
5.6.140.0050.04817.79
5.6.130.0080.03517.72
5.6.120.0070.04517.68
5.6.110.0030.03117.65
5.6.100.0020.04617.73
5.6.90.0010.04217.64
5.6.80.0070.04417.48
5.6.70.0030.04317.23
5.6.60.0050.04217.41
5.6.50.0030.04317.45
5.6.40.0020.04117.34
5.6.30.0030.04717.53
5.6.20.0050.04517.34
5.6.10.0030.03317.27
5.6.00.0050.04017.35
5.5.380.0050.04117.39
5.5.370.0070.04517.26
5.5.360.0100.03917.25
5.5.350.0000.03417.47
5.5.340.0050.03717.54
5.5.330.0080.03717.59
5.5.320.0040.03917.61
5.5.310.0030.03017.61
5.5.300.0090.04217.59
5.5.290.0060.04017.56
5.5.280.0110.04017.69
5.5.270.0090.04017.55
5.5.260.0060.04317.69
5.5.250.0050.04717.38
5.5.240.0020.04117.17
5.5.230.0070.03817.23
5.5.220.0060.04117.28
5.5.210.0060.04017.15
5.5.200.0050.04217.20
5.5.190.0030.04617.37
5.5.180.0020.04617.26
5.5.170.0070.00714.51
5.5.160.0020.03317.22
5.5.150.0050.04517.10
5.5.140.0030.04317.20
5.5.130.0100.03817.04
5.5.120.0100.04017.24
5.5.110.0020.04517.21
5.5.100.0080.04117.24
5.5.90.0100.03817.21
5.5.80.0070.04017.16
5.5.70.0080.03717.25
5.5.60.0030.03817.18
5.5.50.0090.03917.10
5.5.40.0050.03216.97
5.5.30.0050.04217.01
5.5.20.0050.03517.07
5.5.10.0020.04517.19
5.5.00.0060.02617.11

preferences:
34.78 ms | 400 KiB | 5 Q