3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassName { public function foo(): stdClass { return new stdClass(); } } $instance = new ClassName(); $instance->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.4.20.0150.00919.65
8.4.10.0150.00017.51
8.3.150.0180.00017.26
8.3.140.0040.00416.54
8.3.130.0040.00416.57
8.3.120.0120.00218.75
8.3.110.0000.00816.63
8.3.100.0090.00018.34
8.3.90.0190.00026.77
8.3.80.0030.00616.50
8.3.70.0000.01418.30
8.3.60.0150.00316.50
8.3.50.0070.00717.46
8.3.40.0070.00718.49
8.3.30.0030.01418.54
8.3.20.0040.00421.60
8.3.10.0030.00621.88
8.3.00.0050.00319.56
8.2.270.0080.00817.29
8.2.260.0110.00719.03
8.2.250.0080.00016.68
8.2.240.0090.00017.16
8.2.230.0060.00320.94
8.2.220.0000.00837.54
8.2.210.0080.00026.77
8.2.200.0000.01118.54
8.2.190.0100.00718.41
8.2.180.0150.00625.92
8.2.170.0090.01218.84
8.2.160.0140.00022.96
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.54
8.2.110.0000.00919.45
8.2.100.0080.00417.78
8.2.90.0000.00917.91
8.2.80.0000.00818.22
8.2.70.0070.00517.50
8.2.60.0000.00818.04
8.2.50.0040.00418.10
8.2.40.0040.00420.42
8.2.30.0040.00419.35
8.2.20.0040.00417.86
8.2.10.0060.00717.66
8.2.00.0030.00717.67
8.1.310.0040.00417.97
8.1.300.0100.00618.53
8.1.290.0030.00630.84
8.1.280.0090.00625.92
8.1.270.0080.00020.13
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0070.00422.03
8.1.230.0060.00620.87
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0030.00617.10
8.1.180.0060.00318.10
8.1.170.0000.00718.75
8.1.160.0000.00718.72
8.1.150.0030.00318.99
8.1.140.0120.00018.37
8.1.130.0050.00817.30
8.1.120.0040.00817.41
8.1.110.0080.00617.37
8.1.100.0120.00217.30
8.1.90.0060.00717.39
8.1.80.0010.00917.30
8.1.70.0050.00817.29
8.1.60.0050.00517.55
8.1.50.0130.00517.49
8.1.40.0120.00517.46
8.1.30.0110.00717.63
8.1.20.0110.00517.55
8.1.10.0140.00417.48
8.1.00.0150.00217.41
8.0.300.0020.00519.85
8.0.290.0040.00416.63
8.0.280.0000.00718.36
8.0.270.0070.00716.68
8.0.260.0050.00516.70
8.0.250.0080.00316.74
8.0.240.0100.00016.75
8.0.230.0080.00416.87
8.0.220.0110.00116.72
8.0.210.0100.00216.73
8.0.200.0080.00316.74
8.0.190.0070.00516.83
8.0.180.0090.00516.74
8.0.170.0130.00316.79
8.0.160.0090.00516.78
8.0.150.0090.00616.67
8.0.140.0060.00916.74
8.0.130.0070.00415.51
8.0.120.0090.00416.71
8.0.110.0090.00316.72
8.0.100.0070.00516.66
8.0.90.0100.00416.66
8.0.80.0110.00416.74
8.0.70.0130.00216.74
8.0.60.0120.00416.75
8.0.50.0080.00616.63
8.0.30.0100.00916.79
8.0.20.0080.01016.95
8.0.10.0090.00816.91
8.0.00.0130.00716.88
7.4.330.0020.00215.92
7.4.320.0090.00316.37
7.4.300.0050.00616.47
7.4.290.0070.00516.46
7.4.280.0080.00816.39
7.4.270.0090.00616.50
7.4.260.0160.00116.50
7.4.250.0120.00416.45
7.4.240.0140.00216.46
7.4.230.0110.00316.50
7.4.220.0100.00416.44
7.4.210.0130.00516.49
7.4.200.0090.00616.49
7.4.190.0110.00716.53
7.4.180.0150.00416.51
7.4.160.0110.00616.47
7.4.150.0130.00516.38
7.4.140.0080.01017.10
7.4.130.0130.00716.38
7.4.120.0110.00816.38
7.4.110.0110.00716.35
7.4.100.0130.00616.33
7.4.90.0090.00916.41
7.4.80.0110.00716.27
7.4.70.0120.00916.37
7.4.60.0130.00916.35
7.4.50.0110.00716.31
7.4.40.0110.00816.27
7.4.30.0110.00816.39
7.4.20.0100.01016.30
7.4.10.0110.00816.32
7.4.00.0100.00916.36
7.3.330.0090.00315.29
7.3.320.0080.00515.25
7.3.310.0060.00616.22
7.3.300.0110.00216.23
7.3.290.0080.00416.19
7.3.280.0090.00716.21
7.3.270.0080.00816.19
7.3.260.0110.00516.19
7.3.250.0120.00616.28
7.3.240.0110.00816.31
7.3.230.0090.00716.27
7.3.220.0090.00816.18
7.3.210.0090.00916.23
7.3.200.0130.00716.26
7.3.190.0140.00516.21
7.3.180.0140.00716.27
7.3.170.0140.00716.13
7.3.160.0150.00516.27
7.3.150.0120.00816.22
7.3.140.0130.00716.29
7.3.130.0110.00916.21
7.3.120.0120.00916.26
7.3.110.0130.00816.16
7.3.100.0110.00915.95
7.3.90.0090.00915.93
7.3.80.0090.01015.99
7.3.70.0090.00815.65
7.3.60.0100.00915.66
7.3.50.0110.00815.63
7.3.40.0090.00915.58
7.3.30.0100.00815.56
7.3.20.0160.00915.84
7.3.10.0170.00715.93
7.3.00.0150.00815.95
7.2.340.0160.00716.33
7.2.330.0160.00716.38
7.2.320.0160.00916.34
7.2.310.0130.01016.32
7.2.300.0150.00716.39
7.2.290.0150.00816.42
7.2.280.0120.01216.38
7.2.270.0110.01116.39
7.2.260.0120.01116.40
7.2.250.0150.00916.41
7.2.240.0140.00916.42
7.2.230.0110.01016.17
7.2.220.0120.00916.05
7.2.210.0130.00916.06
7.2.200.0130.00715.85
7.2.190.0100.01015.81
7.2.180.0120.00815.81
7.2.170.0130.00715.74
7.2.160.0100.00915.70
7.2.150.0160.00916.16
7.2.140.0160.00816.19
7.2.130.0160.00816.20
7.2.120.0170.01016.19
7.2.110.0160.01016.17
7.2.100.0150.00816.20
7.2.90.0160.00916.14
7.2.80.0150.00916.11
7.2.70.0240.00916.13
7.2.60.0160.00816.15
7.2.50.0170.00916.21
7.2.40.0220.00816.39
7.2.30.0200.00816.35
7.2.20.0190.00916.30
7.2.10.0230.00816.31
7.2.00.0160.00816.30
7.1.330.0150.00715.73
7.1.320.0160.00715.26
7.1.310.0130.01115.32
7.1.300.0130.00815.29
7.1.290.0130.00715.29
7.1.280.0130.00715.13
7.1.270.0140.00915.11
7.1.260.0160.00715.08
7.1.250.0190.00715.03
7.1.240.0230.00815.03
7.1.230.0190.00715.04
7.1.220.0190.00615.04
7.1.210.0180.00814.97
7.1.200.0160.00815.00
7.1.190.0200.00915.00
7.1.180.0200.00715.04
7.1.170.0180.00715.06
7.1.160.0280.00815.21
7.1.150.0220.00915.20
7.1.140.0210.00915.21
7.1.130.0230.00715.21
7.1.120.0230.00915.19
7.1.110.0260.00715.21
7.1.100.0240.00915.15
7.1.90.0240.00915.12
7.1.80.0210.00815.18
7.1.70.0200.00915.09
7.1.60.0260.00917.23
7.1.50.0260.00717.18
7.1.40.0250.00817.21
7.1.30.0250.01117.13
7.1.20.0270.00917.17
7.1.10.0220.01015.03
7.1.00.0260.00815.00
7.0.330.0160.00914.68
7.0.320.0140.00815.32
7.0.310.0110.00915.54
7.0.300.0130.00915.31
7.0.290.0130.00915.29
7.0.280.0150.00815.30
7.0.270.0150.00815.34
7.0.260.0130.00815.28
7.0.250.0150.00915.41
7.0.240.0130.00815.40
7.0.230.0150.00915.38
7.0.220.0140.00915.41
7.0.210.0150.00715.30
7.0.200.0150.00815.26
7.0.190.0140.00815.39
7.0.180.0150.00715.31
7.0.170.0150.00615.36
7.0.160.0190.00915.33
7.0.150.0150.00915.30
7.0.140.0160.00915.37
7.0.130.0160.00715.37
7.0.120.0160.00915.33
7.0.110.0170.00715.35
7.0.100.0140.00815.34
7.0.90.0160.00815.37
7.0.80.0170.00915.35
7.0.70.0150.00815.31
7.0.60.0150.00715.33
7.0.50.0160.00615.34
7.0.40.0150.00815.39
7.0.30.0160.00615.33
7.0.20.0130.00815.33
7.0.10.0190.00715.34
7.0.00.0140.00815.33
5.6.400.0120.01015.00
5.6.390.0140.00814.98
5.6.380.0120.00914.84
5.6.370.0130.01115.71
5.6.360.0150.01015.69
5.6.350.0150.01015.71
5.6.340.0140.01015.67
5.6.330.0150.00715.69
5.6.320.0140.00915.72
5.6.310.0150.00915.71
5.6.300.0150.01015.68
5.6.290.0150.01015.65
5.6.280.0140.01015.68
5.6.270.0160.00915.63
5.6.260.0150.01015.70
5.6.250.0160.00815.67
5.6.240.0140.01115.69
5.6.230.0170.00815.66
5.6.220.0170.00815.66
5.6.210.0140.01115.65
5.6.200.0150.00915.70
5.6.190.0140.01015.69
5.6.180.0130.01015.68
5.6.170.0130.01115.67
5.6.160.0140.00915.72
5.6.150.0120.01115.78
5.6.140.0120.01115.64
5.6.130.0130.01015.69
5.6.120.0110.01115.74
5.6.110.0140.00815.70
5.6.100.0130.01015.67
5.6.90.0150.00815.71
5.6.80.0120.01015.67
5.6.70.0140.00815.69
5.6.60.0110.01115.63
5.6.50.0120.00915.63
5.6.40.0130.00915.59
5.6.30.0140.00915.60
5.6.20.0120.01115.61
5.6.10.0130.00915.61
5.6.00.0130.01015.66

preferences:
46.31 ms | 403 KiB | 5 Q