3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Vendor { public function make(); } class Samsung implements Vendor{ public function make() :string { return "This is Samsung product"; } } class Galaxy extends Samsung { public function make() { return new Samsung(); } } $vendor = new Galaxy(); echo $vendor->make();

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.01016.75
8.3.50.0130.00822.12
8.3.40.0040.01418.79
8.3.30.0070.01018.57
8.3.20.0040.00422.14
8.3.10.0070.00023.48
8.3.00.0080.00021.01
8.2.180.0060.00918.04
8.2.170.0070.00722.96
8.2.160.0100.00320.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00319.36
8.2.120.0040.00426.35
8.2.110.0220.00321.01
8.2.100.0090.00317.66
8.2.90.0000.00819.23
8.2.80.0060.00317.97
8.2.70.0030.00617.50
8.2.60.0030.00617.92
8.2.50.0040.00418.10
8.2.40.0030.00622.29
8.2.30.0040.00420.71
8.2.20.0000.00817.61
8.2.10.0040.00418.06
8.2.00.0000.00717.87
8.1.280.0080.00825.92
8.1.270.0060.00320.23
8.1.260.0020.00528.09
8.1.250.0070.00028.09
8.1.240.0100.00022.66
8.1.230.0060.00617.77
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0040.00417.23
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0050.00318.26
8.1.160.0000.00920.79
8.1.150.0030.00518.79
8.1.140.0040.00419.39
8.1.130.0030.00317.59
8.1.120.0040.00417.30
8.1.110.0100.00017.38
8.1.100.0000.00817.26
8.1.90.0040.00417.38
8.1.80.0040.00417.29
8.1.70.0000.00817.37
8.1.60.0000.00817.48
8.1.50.0040.00417.48
8.1.40.0000.00817.41
8.1.30.0060.00317.45
8.1.20.0030.00517.55
8.1.10.0040.00417.38
8.1.00.0030.00517.20
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00318.30
8.0.270.0030.00317.30
8.0.260.0030.00317.07
8.0.250.0040.00416.97
8.0.240.0030.00316.95
8.0.230.0000.00816.98
8.0.220.0000.00716.84
8.0.210.0050.00316.90
8.0.200.0030.00316.81
8.0.190.0060.00317.01
8.0.180.0040.00416.84
8.0.170.0040.00416.96
8.0.160.0040.00416.94
8.0.150.0000.00816.74
8.0.140.0110.00016.73
8.0.130.0030.00313.40
8.0.120.0040.00416.87
8.0.110.0030.00616.91
8.0.100.0040.00416.80
8.0.90.0000.00716.70
8.0.80.0090.00916.84
8.0.70.0000.00717.01
8.0.60.0000.00816.84
8.0.50.0030.00316.93
8.0.30.0130.00616.94
8.0.20.0060.01117.40
8.0.10.0050.00317.02
8.0.00.0070.01016.72
7.4.330.0000.00516.70
7.4.320.0060.00016.54
7.4.300.0000.00616.42
7.4.290.0070.00016.55
7.4.280.0040.00416.44
7.4.270.0000.00716.54
7.4.260.0000.00716.46
7.4.250.0040.00416.34
7.4.240.0050.00216.49
7.4.230.0030.00316.44
7.4.220.0060.01216.51
7.4.210.0090.00716.58
7.4.200.0030.00316.34
7.4.160.0100.00516.51
7.4.150.0110.00617.40
7.4.140.0110.01117.86
7.4.130.0070.01016.47
7.4.120.0110.00916.46
7.4.110.0040.01816.44
7.4.100.0060.01116.48
7.4.90.0100.00716.42
7.4.80.0070.01019.39
7.4.70.0090.00916.31
7.4.60.0030.01316.40
7.4.50.0070.01016.29
7.4.40.0070.01116.37
7.4.30.0160.00616.67
7.4.00.0070.00914.84
7.3.330.0000.00513.13
7.3.320.0060.00313.22
7.3.310.0040.00416.35
7.3.300.0000.00716.27
7.3.290.0070.00016.23
7.3.280.0110.00616.27
7.3.270.0100.00717.40
7.3.260.0100.00616.50
7.3.250.0060.01116.24
7.3.240.0070.01016.42
7.3.230.0150.00316.39
7.3.210.0100.00716.45
7.3.200.0150.00616.30
7.3.190.0140.00416.38
7.3.180.0060.00916.30
7.3.170.0030.01316.57
7.3.160.0140.00316.34
7.3.120.0140.00414.98
7.3.110.0090.00914.52
7.3.100.0060.00914.58
7.3.90.0030.00914.42
7.3.80.0040.00714.63
7.3.70.0040.01114.71
7.3.60.0000.01414.66
7.3.50.0090.00914.76
7.3.40.0030.01314.73
7.3.30.0030.01214.58
7.3.20.0040.01116.43
7.3.10.0120.00616.75
7.3.00.0130.00516.48
7.2.330.0090.00916.37
7.2.320.0100.00716.39
7.2.310.0030.01416.63
7.2.300.0100.01416.23
7.2.290.0060.01216.38
7.2.250.0030.01614.76
7.2.240.0120.00614.70
7.2.230.0070.01014.79
7.2.220.0040.01114.95
7.2.210.0090.00614.95
7.2.200.0050.00514.73
7.2.190.0090.00314.95
7.2.180.0090.00614.90
7.2.170.0090.00614.75
7.2.130.0100.00816.35
7.2.120.0070.01016.34
7.2.110.0120.00616.46
7.2.100.0100.00616.45
7.2.90.0110.00716.18
7.2.80.0060.00916.48
7.2.70.0130.00616.11
7.2.60.0040.00716.73
7.2.50.0100.01016.37
7.2.40.0090.00616.39
7.2.30.0090.00616.50
7.2.20.0130.00716.36
7.2.10.0000.01116.35
7.2.00.0110.00716.36
7.1.330.0100.00315.80
7.1.320.0030.01315.83
7.1.310.0060.00915.85
7.1.300.0060.00915.75
7.1.290.0040.01115.68
7.1.280.0090.00315.62
7.1.270.0040.01215.64
7.1.260.0060.00915.80
7.1.250.0090.01215.30
7.1.240.0190.00015.71
7.1.230.0120.00915.65
7.1.220.0070.00715.53
7.1.210.0040.01115.53
7.1.200.0030.00815.55
7.1.190.0080.00815.55
7.1.180.0070.00715.66
7.1.170.0070.00715.31
7.1.160.0040.00814.96
7.1.150.0080.00415.39
7.1.140.0110.00315.24
7.1.130.0090.00315.56
7.1.120.0090.00315.26
7.1.110.0090.00615.68
7.1.100.0090.00316.74
7.1.90.0110.00415.43
7.1.80.0100.00715.68
7.1.70.0050.00416.17
7.1.60.0100.00717.47
7.1.50.0090.00716.14
7.1.40.0070.01015.38
7.1.30.0070.00715.24
7.1.20.0100.00715.57
7.1.10.0120.00315.36
7.1.00.0050.04018.89
7.0.330.0180.00415.02
7.0.320.0070.00714.96
7.0.310.0070.00714.94
7.0.300.0080.00314.92
7.0.290.0100.00314.74
7.0.280.0040.01114.81
7.0.270.0030.01015.22
7.0.260.0100.00315.10
7.0.250.0060.00915.16
7.0.240.0070.00714.98
7.0.230.0070.00715.31
7.0.220.0060.00614.92
7.0.210.0040.00814.93
7.0.200.0060.00515.97
7.0.190.0070.00714.96
7.0.180.0030.00815.11
7.0.170.0100.00314.99
7.0.160.0000.01114.88
7.0.150.0090.00615.04
7.0.140.0110.00315.04
7.0.130.0090.00314.93
7.0.120.0060.00615.00
7.0.110.0060.01014.96
7.0.100.0090.00315.07
7.0.90.0070.00715.15
7.0.80.0070.01015.08
7.0.70.0060.00615.07
7.0.60.0140.03717.28
7.0.50.0070.03516.49
7.0.40.0030.03516.45
7.0.30.0190.01716.54
7.0.20.0150.04016.62
7.0.10.0170.04516.76
7.0.00.0040.02316.68
5.6.380.0090.00313.67
5.6.370.0000.01014.19
5.6.360.0030.00613.75
5.6.350.0040.00713.79
5.6.340.0110.00014.12
5.6.330.0060.00614.06
5.6.320.0110.00414.01
5.6.310.0090.00313.75
5.6.300.0110.00413.81
5.6.290.0040.00413.97
5.6.280.0070.01817.42
5.6.270.0030.00913.52
5.6.260.0040.00413.61
5.6.250.0130.00013.84
5.6.240.0040.01114.11
5.6.230.0060.00313.94
5.6.220.0060.00614.02
5.6.210.0050.02217.22
5.6.200.0110.03615.90
5.6.190.0050.04517.24
5.6.180.0140.02517.08
5.6.170.0190.03917.30
5.6.160.0130.03817.13
5.6.150.0050.02316.15
5.6.140.0050.03616.09
5.6.130.0030.05116.03
5.6.120.0050.02217.49
5.6.110.0140.03817.39
5.6.100.0070.04217.63
5.6.90.0040.03817.41
5.6.80.0030.04817.31
5.6.70.0120.00014.03
5.6.60.0030.00714.18
5.6.50.0060.00613.76
5.6.40.0000.01213.89
5.6.30.0030.00713.89
5.6.20.0090.00314.11
5.6.10.0030.00714.26
5.6.00.0040.00413.93
5.5.380.0040.00810.66
5.5.370.0000.01110.49
5.5.360.0040.00410.58
5.5.350.2020.02715.60
5.5.340.0040.02414.52
5.5.330.0050.02815.52
5.5.320.0290.02715.61
5.5.310.0110.02515.69
5.5.300.0080.03414.42
5.5.290.0050.04214.39
5.5.280.0060.02715.75
5.5.270.0070.04415.83
5.5.260.0080.03815.83
5.5.250.0050.04415.75
5.5.240.0060.01315.47
5.5.230.0030.00710.75
5.5.220.0000.01010.75
5.5.210.0030.00610.89
5.5.200.0030.00310.79
5.5.190.0070.00310.72
5.5.180.0040.00410.84
5.5.170.0000.01010.78
5.5.160.0000.00710.75
5.5.150.0000.00610.86
5.5.140.0000.00710.87
5.5.130.0040.00410.49
5.5.120.0030.00510.55
5.5.110.0000.00910.81
5.5.100.0050.00210.83
5.5.90.0060.00310.71
5.5.80.0030.00610.49
5.5.70.0060.00610.49
5.5.60.0040.00410.49
5.5.50.0040.00410.49
5.5.40.0030.01010.49
5.5.30.0040.00410.79
5.5.20.0030.00310.69
5.5.10.0060.00310.79
5.5.00.0030.00310.70

preferences:
49.43 ms | 401 KiB | 5 Q