3v4l.org

run code in 300+ PHP versions simultaneously
<?php $h1 = spl_object_hash(new stdClass); // the obj is destroyed just after the call, since it has no refs $h2 = spl_object_hash(new stdClass); // when the second obj is constructed, the first is destroyed already, so it could happen that the second one get the same memory address internally var_dump($h1 === $h2);

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.01118.02
8.3.50.0140.00821.99
8.3.40.0110.00418.79
8.3.30.0030.01718.49
8.3.20.0110.00018.64
8.3.10.0050.00320.58
8.3.00.0070.00021.90
8.2.180.0100.01016.63
8.2.170.0070.01022.96
8.2.160.0030.01020.36
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00419.23
8.2.110.0050.00520.52
8.2.100.0090.00317.78
8.2.90.0060.00318.91
8.2.80.0000.00917.97
8.2.70.0030.00517.50
8.2.60.0080.00017.80
8.2.50.0000.01018.07
8.2.40.0000.00718.03
8.2.30.0000.00819.74
8.2.20.0000.00717.64
8.2.10.0000.00817.48
8.2.00.0000.00817.68
8.1.280.0090.00625.92
8.1.270.0070.00023.99
8.1.260.0070.01126.35
8.1.250.0050.00328.09
8.1.240.0090.00022.39
8.1.230.0090.00320.90
8.1.220.0040.00418.77
8.1.210.0040.00418.77
8.1.200.0000.01217.23
8.1.190.0040.00417.53
8.1.180.0000.00718.10
8.1.170.0080.00018.32
8.1.160.0040.00418.83
8.1.150.0060.00318.49
8.1.140.0040.00417.30
8.1.130.0000.00717.73
8.1.120.0070.00017.37
8.1.110.0000.00817.30
8.1.100.0030.00517.43
8.1.90.0040.00417.37
8.1.80.0050.00217.40
8.1.70.0000.00717.29
8.1.60.0040.00417.41
8.1.50.0000.00817.45
8.1.40.0050.00317.36
8.1.30.0000.00717.60
8.1.20.0040.00417.54
8.1.10.0080.00017.57
8.1.00.0000.00817.37
8.0.300.0000.00820.04
8.0.290.0040.00417.16
8.0.280.0000.00718.29
8.0.270.0030.00317.20
8.0.260.0060.00016.76
8.0.250.0070.00016.88
8.0.240.0050.00216.91
8.0.230.0030.00316.80
8.0.220.0060.00016.75
8.0.210.0000.00716.73
8.0.200.0000.00716.79
8.0.190.0000.00716.83
8.0.180.0000.00816.91
8.0.170.0000.00716.86
8.0.160.0000.00716.86
8.0.150.0050.00316.79
8.0.140.0000.00716.77
8.0.130.0000.00813.19
8.0.120.0040.00416.84
8.0.110.0030.00516.81
8.0.100.0050.00316.83
8.0.90.0040.00416.66
8.0.80.0110.00716.79
8.0.70.0040.00416.86
8.0.60.0040.00416.87
8.0.50.0040.00416.87
8.0.30.0050.01417.04
8.0.20.0130.00717.40
8.0.10.0070.00016.94
8.0.00.0130.00816.89
7.4.330.0000.00713.43
7.4.320.0060.00016.52
7.4.300.0000.00716.49
7.4.290.0070.00016.41
7.4.280.0060.00616.51
7.4.270.0070.00016.62
7.4.260.0030.00313.30
7.4.250.0030.00516.55
7.4.240.0070.00016.54
7.4.230.0000.00716.32
7.4.220.0140.00416.58
7.4.210.0090.00616.54
7.4.200.0030.00316.48
7.4.190.0070.00016.66
7.4.160.0070.01016.45
7.4.150.0100.01317.40
7.4.140.0050.01317.86
7.4.130.0140.00816.42
7.4.120.0080.01016.35
7.4.110.0170.00016.41
7.4.100.0070.01016.78
7.4.90.0070.01016.45
7.4.80.0090.00919.37
7.4.70.0060.00916.64
7.4.60.0110.00616.31
7.4.50.0060.00316.41
7.4.40.0060.01222.27
7.4.30.0060.01216.58
7.4.00.0030.01114.88
7.3.330.0050.00012.93
7.3.320.0000.00513.05
7.3.310.0030.00316.12
7.3.300.0030.00316.21
7.3.290.0050.01016.37
7.3.280.0080.00916.19
7.3.270.0120.00917.40
7.3.260.0100.01018.24
7.3.250.0150.00516.27
7.3.240.0100.00716.08
7.3.230.0070.01016.39
7.3.210.0030.01316.58
7.3.200.0130.00919.39
7.3.190.0160.00016.05
7.3.180.0080.00816.21
7.3.170.0170.00616.27
7.3.160.0150.00316.32
7.3.120.0040.01115.03
7.2.330.0110.00616.54
7.2.320.0090.01216.42
7.2.310.0100.00716.41
7.2.300.0150.00316.57
7.2.290.0100.00716.62
7.2.60.0060.00316.59
7.2.00.0000.01219.43
7.1.200.0030.00615.82
7.1.100.0000.01217.95
7.1.70.0060.00316.95
7.1.60.0000.01519.40
7.1.50.0070.01117.02
7.1.00.0000.03722.27
7.0.200.0050.00216.73
7.0.140.0070.07022.16
7.0.70.0100.04019.86
7.0.60.0070.04319.73
7.0.50.0170.05320.36
7.0.40.0000.05020.07
7.0.30.0070.04720.05
7.0.20.0070.03020.04
7.0.10.0070.03720.06
7.0.00.0070.04020.16
5.6.220.0000.08320.58
5.6.210.0030.04720.73
5.6.200.0100.03721.11
5.6.190.0100.04021.09
5.6.180.0070.06721.11
5.6.170.0000.04021.02
5.6.160.0030.04021.03
5.6.150.0030.03721.07
5.6.140.0070.06721.09
5.6.130.0130.02321.10
5.6.120.0130.03321.03
5.6.110.0030.04320.93
5.6.100.0030.04321.04
5.6.90.0030.04020.99
5.6.80.0170.07720.49
5.6.70.0030.09020.42
5.6.60.0100.04020.48
5.6.50.0100.07720.40
5.6.40.0000.06020.48
5.6.30.0070.05720.41
5.6.20.0170.06720.28
5.6.10.0030.08020.29
5.6.00.0000.05320.28
5.5.360.0070.08320.41
5.5.350.0030.05020.44
5.5.340.0000.04320.64
5.5.330.0070.04020.82
5.5.320.0000.04320.76
5.5.310.0030.05020.85
5.5.300.0070.03320.62
5.5.290.0000.04720.89
5.5.280.0030.05020.72
5.5.270.0000.04320.85
5.5.260.0000.03720.87
5.5.250.0070.04320.68
5.5.240.0070.04020.24
5.5.230.0100.07320.20
5.5.220.0030.04020.25
5.5.210.0030.04020.24
5.5.200.0130.07020.27
5.5.190.0030.07720.23
5.5.180.0030.08720.27
5.5.160.0100.07320.14
5.5.150.0100.08020.23
5.5.140.0130.07020.11
5.5.130.0070.07719.98
5.5.120.0170.04320.26
5.5.110.0030.08720.13
5.5.100.0070.05720.07
5.5.90.0070.06320.08
5.5.80.0100.06320.16
5.5.70.0130.07320.03
5.5.60.0130.07720.08
5.5.50.0070.08320.14
5.5.40.0070.07719.98
5.5.30.0030.07719.95
5.5.20.0100.07319.94
5.5.10.0070.04320.05
5.5.00.0070.08320.03
5.4.450.0000.05719.39
5.4.440.0030.04019.38
5.4.430.0030.04319.34
5.4.420.0030.05319.16
5.4.410.0030.03719.34
5.4.400.0000.09018.97
5.4.390.0100.07318.98
5.4.380.0070.08018.96
5.4.370.0070.04718.94
5.4.360.0100.07719.16
5.4.350.0100.03318.90
5.4.340.0130.07318.81
5.4.320.0130.07718.95
5.4.310.0070.04318.90
5.4.300.0070.06319.04
5.4.290.0000.04319.00
5.4.280.0000.08318.90
5.4.270.0130.07319.24
5.4.260.0100.08019.14
5.4.250.0100.07319.09
5.4.240.0030.07318.83
5.4.230.0070.05718.80
5.4.220.0130.07018.89
5.4.210.0070.07719.02
5.4.200.0030.06319.02
5.4.190.0130.06719.11
5.4.180.0130.07719.05
5.4.170.0070.08018.96
5.4.160.0030.08019.01
5.4.150.0100.07718.96
5.4.140.0100.07316.27
5.4.130.0100.07316.26
5.4.120.0030.07716.05
5.4.110.0230.03716.36
5.4.100.0000.08716.21
5.4.90.0170.06316.32
5.4.80.0130.07316.24
5.4.70.0070.07316.41
5.4.60.0000.08316.22
5.4.50.0100.06716.19
5.4.40.0030.04716.23
5.4.30.0030.05316.23
5.4.20.0030.07716.35
5.4.10.0030.08016.28
5.4.00.0000.06015.50
5.3.290.0100.03714.64
5.3.280.0070.05314.41
5.3.270.0070.05014.48
5.3.260.0130.06314.51
5.3.250.0170.05314.59
5.3.240.0000.08714.56
5.3.230.0030.07714.43
5.3.220.0130.06714.52
5.3.210.0100.07714.57
5.3.200.0170.06714.38
5.3.190.0100.07014.39
5.3.180.0070.04014.56
5.3.170.0100.07714.54
5.3.160.0030.08314.57
5.3.150.0100.07014.56
5.3.140.0170.06314.37
5.3.130.0100.07714.55
5.3.120.0100.07714.40
5.3.110.0070.07714.40
5.3.100.0070.07713.98
5.3.90.0100.07013.83
5.3.80.0070.07714.00
5.3.70.0170.06713.80
5.3.60.0130.07013.82
5.3.50.0000.06013.80
5.3.40.0030.06713.71
5.3.30.0070.07013.91
5.3.20.0070.07313.66
5.3.10.0000.06313.66
5.3.00.0100.06713.66
5.2.170.0070.06013.66
5.2.160.0070.05013.66
5.2.150.0030.04713.66
5.2.140.0100.04313.66
5.2.130.0030.06013.66
5.2.120.0000.07013.66
5.2.110.0030.04313.66
5.2.100.0100.04713.66
5.2.90.0070.06313.66
5.2.80.0000.06013.66
5.2.70.0100.06013.66
5.2.60.0100.05713.66
5.2.50.0070.05713.66
5.2.40.0070.05013.66
5.2.30.0070.06013.66
5.2.20.0070.06013.66
5.2.10.0000.03313.66
5.2.00.0100.05713.66
5.1.60.0030.05313.66
5.1.50.0130.04713.66
5.1.40.0000.04713.66
5.1.30.0000.06713.66
5.1.20.0030.03313.66
5.1.10.0030.05713.66
5.1.00.0070.02313.66
5.0.50.0070.04013.66
5.0.40.0070.04013.66
5.0.30.0070.05013.66
5.0.20.0000.04713.66
5.0.10.0030.04713.66
5.0.00.0030.03013.66
4.4.90.0000.03713.66
4.4.80.0030.03713.66
4.4.70.0000.02713.66
4.4.60.0070.02713.66
4.4.50.0000.04013.66
4.4.40.0030.04013.66
4.4.30.0070.03013.66
4.4.20.0100.01713.66
4.4.10.0000.02313.66
4.4.00.0030.05713.66
4.3.110.0030.03713.66
4.3.100.0070.03013.66
4.3.90.0030.02013.66
4.3.80.0000.03013.66
4.3.70.0070.02313.66
4.3.60.0070.03013.66
4.3.50.0000.03013.66
4.3.40.0100.03713.66
4.3.30.0000.03313.66
4.3.20.0000.03713.66
4.3.10.0000.03313.66
4.3.00.0000.03713.66

preferences:
43.62 ms | 401 KiB | 5 Q