3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Vendor { public function make() : string; } class Samsung implements Vendor{ public function make() { return "This is Samsung product"; } } $vendor = new Samsung(); 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.0120.00916.63
8.3.50.0090.01021.96
8.3.40.0110.00718.80
8.3.30.0110.00718.57
8.3.20.0080.00020.19
8.3.10.0040.00423.57
8.3.00.0080.00020.93
8.2.180.0110.01118.04
8.2.170.0080.00818.60
8.2.160.0070.01322.96
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0050.00520.98
8.2.120.0000.00826.35
8.2.110.0060.00322.11
8.2.100.0120.00017.91
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0000.00817.25
8.2.60.0050.00317.93
8.2.50.0090.00018.07
8.2.40.0000.00822.38
8.2.30.0070.00020.68
8.2.20.0040.00417.63
8.2.10.0040.00418.07
8.2.00.0050.00217.99
8.1.280.0040.01125.92
8.1.270.0040.00420.16
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0040.00717.36
8.1.230.0070.00419.09
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0080.00017.13
8.1.180.0000.00718.10
8.1.170.0000.00918.50
8.1.160.0000.00720.64
8.1.150.0040.00418.83
8.1.140.0050.00319.51
8.1.130.0030.00317.55
8.1.120.0000.00817.47
8.1.110.0100.00017.29
8.1.100.0000.00817.42
8.1.90.0040.00417.45
8.1.80.0050.00317.39
8.1.70.0080.00017.44
8.1.60.0000.00817.41
8.1.50.0080.00017.37
8.1.40.0080.00017.34
8.1.30.0040.00417.60
8.1.20.0030.00517.55
8.1.10.0040.00417.40
8.1.00.0080.00017.27
8.0.300.0000.00718.77
8.0.290.0020.00516.63
8.0.280.0000.00718.39
8.0.270.0040.00317.12
8.0.260.0000.00617.11
8.0.250.0030.00317.00
8.0.240.0070.00016.97
8.0.230.0000.00716.90
8.0.220.0030.00516.91
8.0.210.0070.00016.73
8.0.200.0030.00316.97
8.0.190.0050.00316.94
8.0.180.0070.00016.79
8.0.170.0040.00416.96
8.0.160.0030.00316.95
8.0.150.0000.00716.72
8.0.140.0050.00416.84
8.0.130.0030.00313.36
8.0.120.0050.00316.79
8.0.110.0040.00416.94
8.0.100.0030.00516.91
8.0.90.0000.00716.90
8.0.80.0110.00416.93
8.0.70.0040.00416.87
8.0.60.0000.00816.90
8.0.50.0070.00016.79
8.0.30.0060.01216.89
8.0.20.0130.00517.40
8.0.10.0070.00016.84
8.0.00.0070.01216.58
7.4.330.0050.00016.84
7.4.320.0030.00316.45
7.4.300.0000.00716.46
7.4.290.0030.00316.55
7.4.280.0040.00416.45
7.4.270.0000.00716.54
7.4.260.0070.00016.44
7.4.250.0000.00716.43
7.4.240.0020.00516.51
7.4.230.0000.00716.47
7.4.220.0110.00816.64
7.4.210.0080.00716.54
7.4.200.0040.00416.33
7.4.160.0050.01116.27
7.4.150.0160.00017.40
7.4.140.0110.00817.86
7.4.130.0120.00416.43
7.4.120.0100.00716.53
7.4.110.0310.02016.33
7.4.100.0070.01016.57
7.4.90.0140.00316.51
7.4.80.0090.00919.39
7.4.70.0090.00616.25
7.4.60.0130.00316.45
7.4.50.0030.01316.66
7.4.40.0090.00616.53
7.4.30.0100.00716.21
7.4.00.0110.00314.86
7.3.330.0060.00013.31
7.3.320.0080.00013.17
7.3.310.0000.00716.09
7.3.300.0040.00416.25
7.3.290.0030.00316.16
7.3.280.0090.00916.21
7.3.270.0140.00317.40
7.3.260.0130.01016.45
7.3.250.0150.00716.21
7.3.240.0070.01216.49
7.3.230.0130.01016.40
7.3.210.0110.01116.33
7.3.200.0090.01116.34
7.3.190.0100.00716.46
7.3.180.0060.01016.34
7.3.170.0070.01016.41
7.3.160.0100.00716.20
7.2.330.0090.01316.48
7.2.320.0060.01016.59
7.2.310.0090.00616.45
7.2.300.0100.01116.53
7.2.290.0090.00816.42
7.2.60.0090.00616.67
7.2.00.0040.01119.39
7.1.200.0100.00315.59
7.1.100.0000.01118.05
7.1.70.0050.00216.95
7.1.60.0040.00819.52
7.1.50.0040.00716.95
7.1.00.0030.07722.54
7.0.200.0030.00316.49
7.0.100.0100.04019.95
7.0.90.0100.06319.96
7.0.80.0130.06720.11
7.0.70.0070.07319.87
7.0.60.0030.08319.87
7.0.50.0100.08720.16
7.0.40.0070.07720.08
7.0.30.0070.09020.13
7.0.20.0130.07320.06
7.0.10.0070.08320.01
7.0.00.0100.08320.12
5.6.280.0030.05321.10
5.6.250.0100.03320.64
5.6.240.0100.08020.61
5.6.230.0170.07320.53
5.6.220.0070.07720.63
5.6.210.0100.08020.63
5.6.200.0130.07721.18
5.6.190.0030.08021.04
5.6.180.0130.07321.07
5.6.170.0070.05021.18
5.6.160.0070.08321.07
5.6.150.0030.07721.02
5.6.140.0170.07320.94
5.6.130.0100.07721.05
5.6.120.0170.07721.03
5.6.110.0200.07021.00
5.6.100.0030.08721.07
5.6.90.0100.08021.05
5.6.80.0030.04720.43
5.6.70.0100.07720.45
5.6.60.0030.06320.39
5.6.50.0070.07320.35
5.6.40.0100.07020.38
5.6.30.0130.07320.41
5.6.20.0030.06020.48
5.6.10.0070.08020.37
5.6.00.0100.07720.37
5.5.380.0100.07320.37
5.5.370.0030.08720.31
5.5.360.0070.07720.45
5.5.350.0070.08020.38
5.5.340.0100.07720.79
5.5.330.0130.07720.80
5.5.320.0130.06720.88
5.5.310.0100.08320.80
5.5.300.0070.08020.86
5.5.290.0030.08020.90
5.5.280.0130.07720.86
5.5.270.0130.07720.93
5.5.260.0130.07720.92
5.5.250.0070.08320.64
5.5.240.0100.07720.30
5.5.230.0030.08020.07
5.5.220.0070.07720.14
5.5.210.0130.07320.25
5.5.200.0030.08020.27
5.5.190.0170.07320.14
5.5.180.0200.06720.13
5.5.160.0130.07020.27
5.5.150.0130.06720.25
5.5.140.0070.06320.15
5.5.130.0030.08019.99
5.5.120.0170.06020.23
5.5.110.0070.06720.22
5.5.100.0030.08020.17
5.5.90.0030.05320.16
5.5.80.0070.07320.16
5.5.70.0100.08020.09
5.5.60.0070.07720.16
5.5.50.0070.08020.10
5.5.40.0100.07020.16
5.5.30.0070.07320.06
5.5.20.0130.08020.11
5.5.10.0100.07720.06
5.5.00.0130.07720.09

preferences:
64.38 ms | 401 KiB | 5 Q