3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { return new stdClass; } $foo1 = foo(); $foo2 = foo(); var_dump( spl_object_hash($foo1), spl_object_hash($foo2), foo(), 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.0120.00318.18
8.3.50.0120.01021.98
8.3.40.0140.00318.58
8.3.30.0170.00318.54
8.3.20.0030.00618.57
8.3.10.0080.00020.94
8.3.00.0080.00023.45
8.2.180.0070.00716.75
8.2.170.0090.00622.96
8.2.160.0140.00020.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00321.10
8.2.110.0070.00320.47
8.2.100.0090.00317.55
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0030.00517.93
8.2.50.0040.00418.07
8.2.40.0000.00718.09
8.2.30.0030.00619.66
8.2.20.0040.00417.49
8.2.10.0060.00317.70
8.2.00.0020.00517.62
8.1.280.0180.00025.92
8.1.270.0040.00423.99
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00322.29
8.1.230.0110.00020.89
8.1.220.0050.00318.77
8.1.210.0040.00418.90
8.1.200.0030.00617.23
8.1.190.0080.00017.41
8.1.180.0100.00018.10
8.1.170.0080.00018.58
8.1.160.0000.00818.73
8.1.150.0050.00218.57
8.1.140.0070.00017.39
8.1.130.0000.00817.86
8.1.120.0040.00417.31
8.1.110.0000.00717.43
8.1.100.0040.00417.37
8.1.90.0000.00717.34
8.1.80.0040.00417.39
8.1.70.0040.00417.39
8.1.60.0070.00017.60
8.1.50.0000.00817.54
8.1.40.0000.00717.45
8.1.30.0070.00017.70
8.1.20.0000.00817.67
8.1.10.0040.00417.55
8.1.00.0040.00417.41
8.0.300.0000.00720.02
8.0.290.0030.00317.05
8.0.280.0030.00318.36
8.0.270.0040.00417.12
8.0.260.0060.00016.75
8.0.250.0070.00016.77
8.0.240.0000.00816.88
8.0.230.0000.00816.81
8.0.220.0030.00316.87
8.0.210.0040.00416.70
8.0.200.0000.00716.84
8.0.190.0040.00416.86
8.0.180.0050.00216.80
8.0.170.0030.00316.85
8.0.160.0040.00416.82
8.0.150.0040.00416.75
8.0.140.0030.00316.77
8.0.130.0000.00513.18
8.0.120.0000.00716.82
8.0.110.0000.00716.88
8.0.100.0020.00516.72
8.0.90.0070.00016.72
8.0.80.0000.01416.84
8.0.70.0000.00716.71
8.0.60.0000.00716.89
8.0.50.0000.00716.70
8.0.30.0130.00717.06
8.0.20.0130.00717.40
8.0.10.0080.00016.83
8.0.00.0120.00416.73
7.4.330.0000.00514.59
7.4.320.0000.00616.33
7.4.300.0030.00316.48
7.4.290.0000.00716.64
7.4.280.0040.00416.61
7.4.270.0030.00316.52
7.4.260.0050.00013.16
7.4.250.0030.00316.43
7.4.240.0000.00716.59
7.4.230.0080.00016.31
7.4.220.0060.01216.53
7.4.210.0090.00816.65
7.4.200.0040.00416.48
7.4.190.0000.00716.68
7.4.160.0100.00516.62
7.4.150.0070.01017.40
7.4.140.0090.00817.86
7.4.130.0060.01016.39
7.4.120.0090.00816.49
7.4.110.0040.01316.49
7.4.100.0090.00816.40
7.4.90.0110.00716.48
7.4.80.0060.01219.37
7.4.70.0100.00716.49
7.4.60.0090.00616.44
7.4.50.0040.00416.46
7.4.40.0100.00622.52
7.4.30.0030.01316.51
7.4.00.0030.00714.97
7.3.330.0000.00513.05
7.3.320.0020.00513.18
7.3.310.0030.00516.08
7.3.300.0000.00716.32
7.3.290.0040.01116.22
7.3.280.0100.00816.24
7.3.270.0070.01017.40
7.3.260.0140.00518.24
7.3.250.0120.00916.35
7.3.240.0130.00716.46
7.3.230.0140.00916.39
7.3.210.0180.00516.30
7.3.200.0150.00319.39
7.3.190.0080.00816.59
7.3.180.0060.00916.45
7.3.170.0030.01916.27
7.3.160.0110.00416.37
7.3.120.0030.01014.72
7.2.330.0000.01616.49
7.2.320.0150.00316.39
7.2.310.0070.01116.47
7.2.300.0100.00616.56
7.2.290.0120.00616.39
7.2.60.0050.00516.60
7.2.00.0070.01019.34
7.1.200.0060.00615.84
7.1.100.0000.01018.05
7.1.70.0040.00417.12
7.1.60.0170.00719.40
7.1.50.0160.00416.90
7.1.00.0070.07322.28
7.0.200.0070.00714.77
7.0.140.0000.07721.97
7.0.80.0330.04019.96
7.0.70.0370.03719.85
7.0.60.0330.03719.88
7.0.50.0370.03720.25
7.0.40.0030.08320.07
7.0.30.0030.03720.12
7.0.20.0070.04720.14
7.0.10.0000.04020.08
7.0.00.0170.06720.17
5.6.280.0030.07320.78
5.6.230.0070.03320.59
5.6.220.0030.03720.62
5.6.210.0130.08020.64
5.6.200.0070.09021.05
5.6.190.0070.06721.10
5.6.180.0030.03721.05
5.6.170.0070.08021.04
5.6.160.0000.09021.11
5.6.150.0030.08021.01
5.6.140.0030.08020.93
5.6.130.0100.04721.04
5.6.120.0100.06721.04
5.6.110.0030.07320.95
5.6.100.0170.07320.99
5.6.90.0100.07021.11
5.6.80.0030.06020.44
5.6.70.0070.04020.43
5.6.60.0030.04020.41
5.6.50.0030.04720.42
5.6.40.0170.06720.29
5.6.30.0100.08020.50
5.6.20.0070.04320.48
5.6.10.0000.03720.48
5.6.00.0030.08320.36
5.5.370.0030.03320.50
5.5.360.0100.08020.50
5.5.350.0030.03720.46
5.5.340.0030.08720.89
5.5.330.0070.07320.82
5.5.320.0030.05720.83
5.5.310.0130.07320.86
5.5.300.0170.07720.79
5.5.290.0100.03720.73
5.5.280.0070.04020.87
5.5.270.0030.03720.89
5.5.260.0100.07720.89
5.5.250.0000.08720.70
5.5.240.0100.03320.27
5.5.230.0100.06720.23
5.5.220.0000.07720.16
5.5.210.0100.07720.25
5.5.200.0030.04020.08
5.5.190.0070.03020.24
5.5.180.0130.07320.17
5.5.160.0000.03720.25
5.5.150.0070.06320.09
5.5.140.0070.04020.24
5.5.130.0100.03720.14
5.5.120.0030.08020.20
5.5.110.0070.04020.10
5.5.100.0170.06020.10
5.5.90.0030.04020.09
5.5.80.0030.05320.04
5.5.70.0030.04720.05
5.5.60.0100.04320.05
5.5.50.0070.08020.05
5.5.40.0000.06720.04
5.5.30.0070.07720.11
5.5.20.0100.04719.95
5.5.10.0100.06720.03
5.5.00.0100.02720.13
5.4.450.0030.03319.48
5.4.440.0130.07319.57
5.4.430.0030.03319.35
5.4.420.0130.03019.37
5.4.410.0030.08019.23
5.4.400.0030.06319.14
5.4.390.0030.08019.14
5.4.380.0070.04319.05
5.4.370.0100.06019.21
5.4.360.0030.05019.23
5.4.350.0000.03318.85
5.4.340.0030.08719.18
5.4.320.0100.02719.03
5.4.310.0070.07318.92
5.4.300.0070.07719.13
5.4.290.0200.06319.17
5.4.280.0070.05019.23
5.4.270.0100.04319.20
5.4.260.0030.07319.25
5.4.250.0070.08319.11
5.4.240.0030.03718.87
5.4.230.0030.04018.93
5.4.220.0130.06719.08
5.4.210.0130.08019.04
5.4.200.0030.04318.86
5.4.190.0070.07719.11
5.4.180.0070.06019.13
5.4.170.0100.07319.15
5.4.160.0070.04718.89
5.4.150.0000.05319.02
5.4.140.0030.04716.46
5.4.130.0070.02716.45
5.4.120.0030.03316.41
5.4.110.0000.03716.43
5.4.100.0070.02716.48
5.4.90.0030.06016.39
5.4.80.0030.03316.32
5.4.70.0030.04016.31
5.4.60.0070.07716.37
5.4.50.0030.03316.29
5.4.40.0030.05316.30
5.4.30.0030.03716.36
5.4.20.0000.03316.32
5.4.10.0030.04716.49
5.4.00.0030.07315.86
5.3.290.0130.05714.65
5.3.280.0030.03314.55
5.3.270.0170.07014.72
5.3.260.0100.06714.59
5.3.250.0000.07014.70
5.3.240.0100.04714.62
5.3.230.0000.06314.56
5.3.220.0000.03314.67
5.3.210.0130.06314.57
5.3.200.0100.02314.68
5.3.190.0030.04314.67
5.3.180.0100.03014.67
5.3.170.0100.03314.66
5.3.160.0100.07314.54
5.3.150.0030.04314.58
5.3.140.0000.04714.58
5.3.130.0000.06014.65
5.3.120.0100.02714.47
5.3.110.0070.04014.49
5.3.100.0030.04014.03
5.3.90.0000.04014.07
5.3.80.0070.03314.13
5.3.70.0030.06713.96
5.3.60.0070.03314.12
5.3.50.0070.03314.00
5.3.40.0030.04014.04
5.3.30.0070.08714.00
5.3.20.0000.03313.78
5.3.10.0100.06013.58
5.3.00.0030.03013.70
5.2.170.0030.03313.26
5.2.160.0000.04013.26
5.2.150.0100.03013.26
5.2.140.0030.03013.26
5.2.130.0000.04713.26
5.2.120.0000.03313.26
5.2.110.0030.03313.26
5.2.100.0000.06713.26
5.2.90.0000.05713.26
5.2.80.0070.03313.26
5.2.70.0030.03713.26
5.2.60.0000.06713.26
5.2.50.0070.03013.26
5.2.40.0000.05313.26
5.2.30.0100.05713.26
5.2.20.0030.05713.26
5.2.10.0030.05713.26
5.2.00.0000.03713.26
5.1.60.0000.05713.26
5.1.50.0000.04013.26
5.1.40.0030.02313.26
5.1.30.0000.03013.26
5.1.20.0000.03013.26
5.1.10.0070.02313.26
5.1.00.0000.03013.26
5.0.50.0000.03313.26
5.0.40.0030.01713.26
5.0.30.0000.04313.26
5.0.20.0070.03713.26
5.0.10.0030.01713.26
5.0.00.0070.04013.26
4.4.90.0000.01713.26
4.4.80.0100.01313.26
4.4.70.0030.02013.26
4.4.60.0070.01313.26
4.4.50.0000.01713.26
4.4.40.0000.05713.26
4.4.30.0000.03713.26
4.4.20.0000.01713.26
4.4.10.0030.02313.26
4.4.00.0030.04713.26
4.3.110.0000.03013.26
4.3.100.0030.02313.26
4.3.90.0000.02313.26
4.3.80.0000.04013.26
4.3.70.0030.03013.26
4.3.60.0030.01713.26
4.3.50.0000.03013.26
4.3.40.0000.02713.26
4.3.30.0000.01713.26
4.3.20.0000.02713.26
4.3.10.0000.03713.26
4.3.00.0030.01313.26

preferences:
41.05 ms | 401 KiB | 5 Q