3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { return new stdClass; } $foo1 = foo(); $foo2 = foo(); var_dump( md5(spl_object_hash(foo())), md5(spl_object_hash(foo())) );

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.0090.00616.63
8.3.50.0170.00218.42
8.3.40.0140.00418.67
8.3.30.0100.00718.58
8.3.20.0030.00518.62
8.3.10.0030.00620.34
8.3.00.0100.00019.13
8.2.180.0040.01116.38
8.2.170.0070.01322.96
8.2.160.0100.01021.07
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0060.00320.46
8.2.110.0000.01021.18
8.2.100.0000.01217.59
8.2.90.0070.00420.91
8.2.80.0040.00419.28
8.2.70.0040.00417.50
8.2.60.0000.00917.68
8.2.50.0050.00518.07
8.2.40.0080.00018.09
8.2.30.0040.00419.76
8.2.20.0040.00417.46
8.2.10.0080.00017.67
8.2.00.0080.00017.63
8.1.280.0110.00425.92
8.1.270.0100.00724.66
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0080.00022.61
8.1.230.0060.00621.04
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.00917.10
8.1.190.0030.00517.30
8.1.180.0030.00518.10
8.1.170.0030.00618.68
8.1.160.0050.00318.81
8.1.150.0040.00418.57
8.1.140.0050.00317.37
8.1.130.0040.00417.81
8.1.120.0000.00817.33
8.1.110.0070.00017.37
8.1.100.0030.00517.37
8.1.90.0000.00817.42
8.1.80.0030.00517.40
8.1.70.0030.00317.37
8.1.60.0070.00017.55
8.1.50.0040.00417.39
8.1.40.0030.00617.46
8.1.30.0000.00917.54
8.1.20.0040.00417.68
8.1.10.0050.00217.54
8.1.00.0040.00417.43
8.0.300.0030.00619.86
8.0.290.0070.00016.63
8.0.280.0040.00418.38
8.0.270.0040.00417.19
8.0.260.0070.00016.75
8.0.250.0000.00716.86
8.0.240.0040.00416.78
8.0.230.0030.00316.77
8.0.220.0040.00316.87
8.0.210.0000.00716.83
8.0.200.0030.00316.88
8.0.190.0040.00716.78
8.0.180.0040.00416.68
8.0.170.0000.00816.86
8.0.160.0000.00716.72
8.0.150.0000.00816.78
8.0.140.0040.00416.72
8.0.130.0030.00313.31
8.0.120.0050.00316.82
8.0.110.0000.00716.85
8.0.100.0030.00316.69
8.0.90.0000.00816.86
8.0.80.0000.01816.85
8.0.70.0030.00516.82
8.0.60.0040.00416.61
8.0.50.0040.00416.71
8.0.30.0060.01317.05
8.0.20.0060.01216.87
8.0.10.0000.00716.82
8.0.00.0070.01216.77
7.4.330.0030.00312.92
7.4.320.0060.00316.42
7.4.300.0000.00616.41
7.4.290.0040.00416.39
7.4.280.0040.00416.48
7.4.270.0000.00716.55
7.4.260.0050.00313.30
7.4.250.0030.00616.61
7.4.240.0040.00416.59
7.4.230.0000.00716.47
7.4.220.0120.00616.46
7.4.210.0100.00616.50
7.4.200.0030.00516.52
7.4.190.0040.00416.31
7.4.160.0060.00916.40
7.4.150.0120.00616.61
7.4.140.0110.00616.55
7.4.130.0110.00916.63
7.4.120.0070.01216.46
7.4.110.0120.00616.54
7.4.100.0090.00916.55
7.4.90.0110.00716.31
7.4.80.0120.00619.39
7.4.70.0000.01716.35
7.4.60.0070.01016.48
7.4.50.0090.00416.26
7.4.40.0070.01016.27
7.4.30.0170.00016.46
7.4.00.0030.01114.74
7.3.330.0030.00313.05
7.3.320.0050.00013.23
7.3.310.0070.00016.25
7.3.300.0000.00716.14
7.3.290.0040.01116.21
7.3.280.0080.00616.20
7.3.270.0140.00516.51
7.3.260.0070.01016.60
7.3.250.0110.00916.41
7.3.240.0130.00416.20
7.3.230.0000.01816.39
7.3.210.0120.00616.43
7.3.200.0150.00616.25
7.3.190.0060.01616.29
7.3.180.0040.01116.41
7.3.170.0100.00916.17
7.3.160.0060.01016.51
7.3.120.0030.01014.73
7.2.330.0150.00416.72
7.2.320.0120.00616.62
7.2.310.0190.00316.32
7.2.300.0040.01416.62
7.2.290.0130.00316.33
7.2.60.0100.00316.61
7.2.00.0180.00018.58
7.1.200.0070.00715.79
7.1.70.0000.01017.12
7.1.60.0100.00317.25
7.1.50.0160.01934.77
7.1.00.0030.05722.35
7.0.200.0080.00816.70
7.0.140.0030.07721.96
7.0.120.0000.07322.04
7.0.60.0070.08019.82
7.0.50.0030.08317.84
7.0.40.0100.07717.84
7.0.30.0130.07717.70
7.0.20.0030.08317.72
7.0.10.0030.08017.75
7.0.00.0030.09317.75
5.6.210.0170.07320.71
5.6.200.0100.08018.29
5.6.190.0070.06018.19
5.6.180.0070.08018.16
5.6.170.0130.08018.22
5.6.160.0070.08718.14
5.6.150.0170.07018.19
5.6.140.0130.06718.15
5.6.130.0130.07718.19
5.6.120.0100.04718.17
5.6.110.0030.06718.17
5.6.100.0070.04018.17
5.6.90.0030.04718.15
5.6.80.0100.05717.53
5.6.70.0070.07717.56
5.6.60.0100.07317.65
5.6.50.0070.08017.68
5.6.40.0030.08317.51
5.6.30.0100.04317.64
5.6.20.0030.06717.54
5.6.10.0030.05017.46
5.6.00.0100.04017.52
5.5.350.0230.04020.35
5.5.340.0030.08317.96
5.5.330.0070.08317.94
5.5.320.0100.08317.94
5.5.310.0100.07318.10
5.5.300.0200.07018.06
5.5.290.0100.03717.98
5.5.280.0100.04718.02
5.5.270.0070.04718.02
5.5.260.0030.05018.08
5.5.250.0000.06717.86
5.5.240.0100.04317.47
5.5.230.0030.06717.46
5.5.220.0170.06717.37
5.5.210.0100.06717.46
5.5.200.0100.05017.28
5.5.190.0030.06017.44
5.5.180.0100.07717.31
5.5.160.0070.04717.43
5.5.150.0070.07717.43
5.5.140.0000.05017.30
5.5.130.0030.04017.33
5.5.120.0030.08317.31
5.5.110.0000.06017.43
5.5.100.0170.04717.25
5.5.90.0030.07717.32
5.5.80.0000.05317.27
5.5.70.0000.09017.23
5.5.60.0100.05017.21
5.5.50.0070.03717.29
5.5.40.0030.08017.22
5.5.30.0070.07317.21
5.5.20.0030.07717.19
5.5.10.0100.08017.23
5.5.00.0070.07717.22
5.4.450.0070.04319.50
5.4.440.0100.05019.45
5.4.430.0030.06719.39
5.4.420.0030.04019.30
5.4.410.0030.06719.25
5.4.400.0100.06319.12
5.4.390.0000.04319.02
5.4.380.0070.07319.13
5.4.370.0100.07318.98
5.4.360.0100.07719.00
5.4.350.0070.06319.13
5.4.340.0170.07319.09
5.4.320.0070.05319.04
5.4.310.0070.03719.13
5.4.300.0130.07318.98
5.4.290.0100.04719.04
5.4.280.0100.07719.12
5.4.270.0100.07318.94
5.4.260.0100.07718.94
5.4.250.0030.04019.13
5.4.240.0030.04019.04
5.4.230.0070.03719.26
5.4.220.0070.08018.87
5.4.210.0000.04319.03
5.4.200.0070.07719.12
5.4.190.0030.04019.08
5.4.180.0030.07019.12
5.4.170.0030.07019.10
5.4.160.0100.07719.01
5.4.150.0030.08319.06
5.4.140.0030.05016.32
5.4.130.0170.05716.31
5.4.120.0000.04716.44
5.4.110.0070.03716.57
5.4.100.0070.06016.34
5.4.90.0070.05316.55
5.4.80.0070.06716.43
5.4.70.0070.06716.30
5.4.60.0000.05716.41
5.4.50.0070.07016.53
5.4.40.0030.07716.51
5.4.30.0100.07016.38
5.4.20.0100.03716.39
5.4.10.0130.05716.39
5.4.00.0070.06715.77
5.3.290.0100.07714.69
5.3.280.0030.07714.56
5.3.270.0130.07014.70
5.3.260.0030.08314.63
5.3.250.0070.04714.64
5.3.240.0100.07314.64
5.3.230.0100.07014.67
5.3.220.0070.07314.56
5.3.210.0100.03714.55
5.3.200.0070.03714.41
5.3.190.0000.08714.60
5.3.180.0070.03314.62
5.3.170.0000.04714.59
5.3.160.0170.07014.66
5.3.150.0100.07714.78
5.3.140.0070.07014.56
5.3.130.0070.08014.39
5.3.120.0070.07314.50
5.3.110.0070.07014.50
5.3.100.0030.08013.99
5.3.90.0070.07314.04
5.3.80.0100.07714.03
5.3.70.0030.06014.05
5.3.60.0000.05014.20
5.3.50.0100.06714.15
5.3.40.0070.05314.15
5.3.30.0170.06313.86
5.3.20.0070.04013.72
5.3.10.0100.06013.65
5.3.00.0070.03713.65
5.2.170.0030.03011.03
5.2.160.0030.05311.19
5.2.150.0000.06311.15
5.2.140.0030.05711.03
5.2.130.0130.05011.09
5.2.120.0070.02711.14
5.2.110.0030.03711.13
5.2.100.0030.06711.12
5.2.90.0070.05711.13
5.2.80.0000.05011.08
5.2.70.0030.05311.13
5.2.60.0070.04710.89
5.2.50.0070.05011.04
5.2.40.0070.03010.84
5.2.30.0070.03311.07
5.2.20.0030.04710.85
5.2.10.0070.04010.90
5.2.00.0030.06010.62
5.1.60.0070.05310.00
5.1.50.0000.03010.00
5.1.40.0030.0579.89
5.1.30.0030.03010.39
5.1.20.0030.05710.35
5.1.10.0030.05310.17
5.1.00.0000.04310.11
5.0.50.0070.0308.46
5.0.40.0000.0208.45
5.0.30.0000.0638.18
5.0.20.0030.0478.26
5.0.10.0000.0378.38
5.0.00.0100.0578.20
4.4.90.0000.0337.45
4.4.80.0000.0377.45
4.4.70.0030.0307.45
4.4.60.0000.0307.45
4.4.50.0070.0207.45
4.4.40.0000.0437.45
4.4.30.0000.0207.45
4.4.20.0070.0307.45
4.4.10.0000.0237.45
4.4.00.0030.0237.45
4.3.110.0000.0277.45
4.3.100.0030.0177.45
4.3.90.0000.0337.45
4.3.80.0000.0307.45
4.3.70.0000.0207.45
4.3.60.0070.0307.45
4.3.50.0030.0137.45
4.3.40.0030.0507.45
4.3.30.0000.0237.45
4.3.20.0000.0207.45
4.3.10.0030.0137.45
4.3.00.0000.0177.45

preferences:
59.11 ms | 400 KiB | 5 Q