3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IMyClass { public function myMeth(); } function my_class($name) { return new class($name) implements IMyClass{ public function __construct($name) { $this->name = $name; } public function myMeth() { return 'Hello ' . $this->name; } }; } echo my_class('Dwayne')->myMeth();

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.68
8.3.50.0120.01021.98
8.3.40.0150.00418.93
8.3.30.0060.00918.87
8.3.20.0050.00320.04
8.3.10.0080.00020.48
8.3.00.0070.00021.80
8.2.180.0150.00316.50
8.2.170.0110.00422.96
8.2.160.0160.00320.35
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00420.81
8.2.120.0050.00326.35
8.2.110.0090.00022.13
8.2.100.0080.00417.68
8.2.90.0050.00319.27
8.2.80.0000.00917.97
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0080.00018.09
8.2.40.0060.00322.32
8.2.30.0050.00219.50
8.2.20.0040.00417.72
8.2.10.0040.00418.05
8.2.00.0080.00018.09
8.1.280.0030.01425.92
8.1.270.0070.01122.04
8.1.260.0000.00828.09
8.1.250.0070.00028.09
8.1.240.0070.00323.79
8.1.230.0080.00417.77
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0000.01017.25
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0060.00318.43
8.1.160.0050.00320.75
8.1.150.0000.00718.67
8.1.140.0050.00319.47
8.1.130.0040.00417.51
8.1.120.0030.00317.31
8.1.110.0030.00517.45
8.1.100.0070.00017.37
8.1.90.0040.00417.38
8.1.80.0040.00417.46
8.1.70.0050.00217.43
8.1.60.0070.00017.63
8.1.50.0000.00817.54
8.1.40.0000.00817.51
8.1.30.0050.00317.63
8.1.20.0070.00017.55
8.1.10.0050.00317.54
8.1.00.0050.00317.50
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0030.00318.48
8.0.270.0070.00017.19
8.0.260.0030.00317.22
8.0.250.0030.00316.96
8.0.240.0000.00816.93
8.0.230.0030.00316.91
8.0.220.0000.00716.77
8.0.210.0000.00716.82
8.0.200.0030.00316.88
8.0.190.0050.00316.75
8.0.180.0070.00316.76
8.0.170.0000.00716.91
8.0.160.0080.00416.91
8.0.150.0040.00416.71
8.0.140.0080.00016.71
8.0.130.0030.00313.19
8.0.120.0070.00016.70
8.0.110.0000.00816.80
8.0.100.0040.00416.95
8.0.90.0000.00716.95
8.0.80.0090.01316.93
8.0.70.0000.00716.79
8.0.60.0040.00416.93
8.0.50.0030.00416.67
8.0.30.0090.01016.84
8.0.20.0110.00817.43
8.0.10.0070.00016.91
8.0.00.0070.01216.77
7.4.330.0000.00516.79
7.4.320.0030.00316.55
7.4.300.0000.00616.54
7.4.290.0030.00316.54
7.4.280.0040.00416.33
7.4.270.0040.00416.46
7.4.260.0040.00416.52
7.4.250.0000.00716.39
7.4.240.0030.00316.46
7.4.230.0020.00516.53
7.4.220.0100.00716.65
7.4.210.0090.00716.48
7.4.200.0040.00416.44
7.4.160.0090.00616.55
7.4.150.0150.00917.40
7.4.140.0100.01417.86
7.4.130.0070.01116.55
7.4.120.0120.00516.40
7.4.110.0080.00816.50
7.4.100.0130.01016.50
7.4.90.0030.01316.50
7.4.80.0100.00819.39
7.4.70.0080.00816.56
7.4.60.0090.00816.48
7.4.50.0070.00716.43
7.4.40.0120.00416.51
7.4.30.0110.00716.56
7.4.00.0070.00714.93
7.3.330.0000.00513.09
7.3.320.0050.00013.28
7.3.310.0060.00316.18
7.3.300.0030.00316.17
7.3.290.0070.00016.27
7.3.280.0120.00816.31
7.3.270.0130.00717.40
7.3.260.0120.01616.43
7.3.250.0070.01016.36
7.3.240.0110.00816.49
7.3.230.0120.00616.45
7.3.210.0080.00816.30
7.3.200.0080.00816.32
7.3.190.0070.01016.42
7.3.180.0130.01016.44
7.3.170.0090.01516.53
7.3.160.0060.01016.44
7.3.120.0070.01114.73
7.3.110.0140.00414.94
7.3.100.0030.00614.76
7.3.90.0070.00714.75
7.3.80.0070.00715.05
7.3.70.0000.01314.87
7.3.60.0030.01014.78
7.3.50.0070.01014.88
7.3.40.0000.01514.75
7.3.30.0030.01314.92
7.3.20.0040.01416.68
7.3.10.0060.00616.54
7.3.00.0060.00916.75
7.2.330.0110.00416.54
7.2.320.0100.00716.70
7.2.310.0090.00916.78
7.2.300.0100.00616.67
7.2.290.0120.00816.74
7.2.250.0130.00615.04
7.2.240.0120.00615.04
7.2.230.0070.00714.78
7.2.220.0100.00315.00
7.2.210.0040.00714.89
7.2.200.0080.00414.79
7.2.190.0140.00315.14
7.2.180.0030.00915.15
7.2.170.0070.01115.11
7.2.160.0100.01015.24
7.2.150.0000.01317.05
7.2.140.0090.00916.85
7.2.130.0000.01516.96
7.2.120.0000.01516.79
7.2.110.0040.01416.73
7.2.100.0090.00916.88
7.2.90.0040.01117.02
7.2.80.0110.00416.92
7.2.70.0040.01517.00
7.2.60.0060.01116.84
7.2.50.0080.01216.86
7.2.40.0030.01716.73
7.2.30.0090.00616.88
7.2.20.0030.01416.78
7.2.10.0100.00316.94
7.2.00.0060.00316.85
7.1.330.0060.01015.94
7.1.320.0060.00815.77
7.1.310.0060.00615.54
7.1.300.0070.00715.73
7.1.290.0070.00715.76
7.1.280.0000.01115.84
7.1.270.0030.01015.84
7.1.260.0160.00615.86
7.1.250.0090.00015.73
7.1.200.0060.00615.78
7.1.100.0040.00418.00
7.1.70.0050.00217.32
7.1.60.0040.01119.40
7.1.50.0070.01416.86
7.1.00.0030.07722.37
7.0.200.0470.00414.90
7.0.60.0200.08019.95
7.0.50.0030.06017.81
7.0.40.0170.07720.05
7.0.30.0270.06020.18
7.0.20.0030.05320.10
7.0.10.0100.07720.20
7.0.00.0070.03720.26
5.6.280.0000.06020.93
5.6.210.0100.07320.55
5.6.200.0030.04018.29
5.6.190.0130.08020.65
5.6.180.0370.06320.45
5.6.170.0330.04320.39
5.6.160.0070.08320.46
5.6.150.0000.07718.19
5.6.140.0030.08318.26
5.6.130.0070.06718.19
5.6.120.0070.06321.13
5.6.110.0070.04020.97
5.6.100.0130.06321.11
5.6.90.0170.07021.11
5.6.80.0030.04020.39
5.5.350.0070.09020.44
5.5.340.0030.05318.09
5.5.330.0070.04320.41
5.5.320.0670.06720.35
5.5.310.0230.03720.27
5.5.300.0070.05317.97
5.5.290.0030.04318.02
5.5.280.0070.08720.73
5.5.270.0130.05720.73
5.5.260.0100.08320.84
5.5.250.0030.06020.78
5.5.240.0230.06720.34

preferences:
38.46 ms | 401 KiB | 5 Q