3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface SetInterface { public function set($value); } class Foo implements SetInterface { public final function set($value) { echo 'Foo!'; } } class Bar extends Foo { public function set($value) { echo 'Bar'; } } $foo = new Foo; $bar = new Bar; $foo->set(42); $bar->set(42);

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.10.0030.01617.63
8.3.140.0000.00816.71
8.3.130.0070.00416.57
8.3.120.0080.00018.93
8.3.110.0090.00916.92
8.3.100.0050.00324.06
8.3.90.0060.00326.77
8.3.80.0050.00517.97
8.3.70.0060.01316.63
8.3.60.0140.00316.63
8.3.50.0100.01021.86
8.3.40.0160.00318.70
8.3.30.0000.01418.96
8.3.20.0080.00020.30
8.3.10.0000.00823.48
8.3.00.0000.00820.69
8.2.250.0000.00818.22
8.2.240.0040.01117.32
8.2.230.0000.00820.94
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0090.00018.41
8.2.190.0080.00818.13
8.2.180.0140.00018.16
8.2.170.0070.00722.96
8.2.160.0100.00320.58
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0030.01626.16
8.2.120.0040.00421.91
8.2.110.0060.00320.98
8.2.100.0070.00417.84
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0060.00317.80
8.2.50.0060.00318.07
8.2.40.0040.00418.02
8.2.30.0050.00218.06
8.2.20.0000.00717.61
8.2.10.0070.00017.54
8.2.00.0050.00317.73
8.1.300.0060.00316.73
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0040.00424.02
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0060.00322.05
8.1.230.0040.00718.68
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0110.00017.35
8.1.190.0080.00017.39
8.1.180.0080.00018.10
8.1.170.0000.00918.59
8.1.160.0040.00322.04
8.1.150.0000.00718.48
8.1.140.0040.00417.36
8.1.130.0030.00317.78
8.1.120.0000.00717.44
8.1.110.0040.00417.29
8.1.100.0040.00717.29
8.1.90.0070.00017.38
8.1.80.0000.00717.30
8.1.70.0030.00517.34
8.1.60.0090.00017.42
8.1.50.0040.00417.38
8.1.40.0080.00017.38
8.1.30.0040.00417.47
8.1.20.0000.00817.50
8.1.10.0060.00317.30
8.1.00.0040.00417.30
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0030.00318.38
8.0.270.0030.00317.20
8.0.260.0040.00416.83
8.0.250.0040.00416.96
8.0.240.0030.00516.87
8.0.230.0030.00317.04
8.0.220.0030.00316.95
8.0.210.0000.00816.88
8.0.200.0030.00316.85
8.0.190.0020.00516.96
8.0.180.0070.00016.96
8.0.170.0040.00416.96
8.0.160.0070.00017.00
8.0.150.0030.00316.91
8.0.140.0020.00516.82
8.0.130.0090.00013.38
8.0.120.0030.00616.75
8.0.110.0030.00616.83
8.0.100.0040.00416.81
8.0.90.0000.00716.78
8.0.80.0120.00316.95
8.0.70.0030.00516.94
8.0.60.0000.01016.80
8.0.50.0050.00316.77
8.0.30.0150.00316.99
8.0.20.0110.00717.40
8.0.10.0070.00016.86
8.0.00.0100.00916.72
7.4.330.0050.00015.09
7.4.320.0000.00616.36
7.4.300.0030.00316.46
7.4.290.0030.00316.54
7.4.280.0000.00616.39
7.4.270.0030.00316.38
7.4.260.0000.00716.58
7.4.250.0070.00016.49
7.4.240.0030.00316.52
7.4.230.0070.00016.38
7.4.220.0060.01316.62
7.4.210.0050.01016.55
7.4.200.0030.00316.30
7.4.190.0000.00716.63
7.4.150.0100.00717.40
7.4.140.0110.00617.86
7.4.130.0130.00716.51
7.4.120.0120.00516.49
7.4.110.0030.01316.55
7.4.100.0060.01216.53
7.4.90.0080.00816.69
7.4.80.0060.01316.46
7.4.70.0090.01216.68
7.4.60.0030.01316.50
7.4.50.0080.00016.25
7.4.40.0000.01722.77
7.4.30.0070.01016.42
7.4.00.0030.01414.39
7.3.330.0000.00613.30
7.3.320.0050.00013.02
7.3.310.0040.00416.12
7.3.300.0030.00316.35
7.3.290.0110.00916.27
7.3.280.0110.00516.28
7.3.270.0120.00417.40
7.3.260.0070.01116.52
7.3.250.0120.00616.39
7.3.240.0060.01216.53
7.3.230.0100.00716.39
7.3.210.0120.00616.36
7.3.200.0110.00619.39
7.3.190.0120.00616.54
7.3.180.0110.01116.50
7.3.170.0090.00616.31
7.3.160.0100.00616.60
7.3.120.0040.01115.02
7.3.110.0070.00714.69
7.3.100.0040.01214.91
7.3.90.0070.00415.02
7.3.80.0060.00615.09
7.3.70.0030.01014.66
7.3.60.0000.01414.54
7.3.50.0080.00814.59
7.3.40.0040.01114.81
7.3.30.0040.00814.87
7.3.20.0070.01016.80
7.3.10.0080.00816.53
7.3.00.0080.01216.38
7.2.330.0100.00716.32
7.2.320.0100.00716.37
7.2.310.0130.01016.47
7.2.300.0150.00316.59
7.2.290.0090.00616.34
7.2.240.0040.01415.01
7.2.230.0110.00414.63
7.2.220.0000.01414.50
7.2.210.0040.00715.02
7.2.200.0030.01014.89
7.2.190.0090.00014.63
7.2.180.0060.00914.83
7.2.170.0040.00714.92
7.2.160.0000.00914.94
7.2.150.0060.00916.87
7.2.140.0130.00616.52
7.2.130.0070.00916.63
7.2.120.0110.00816.45
7.2.110.0050.01116.81
7.2.100.0050.01116.56
7.2.90.0090.00916.52
7.2.80.0120.00516.66
7.2.70.0100.00816.50
7.2.60.0070.00816.58
7.2.50.0030.01116.38
7.2.40.0110.00816.45
7.2.30.0060.00616.62
7.2.20.0030.01316.36
7.2.10.0100.01116.57
7.2.00.0060.01017.62
7.1.330.0090.00915.86
7.1.320.0000.01015.68
7.1.310.0040.01115.62
7.1.300.0050.00815.58
7.1.290.0040.00815.40
7.1.280.0070.00715.84
7.1.270.0030.01015.67
7.1.260.0040.01215.64
7.1.250.0030.01115.53
7.1.200.0060.00315.62
7.1.100.0000.01118.18
7.1.70.0030.00316.71
7.1.60.0070.01619.29
7.1.50.0000.02116.52
7.1.00.0030.07722.54
7.0.200.0030.00316.72
7.0.140.0030.07322.12
7.0.60.0030.04019.82
7.0.50.0070.05718.02
7.0.40.0170.07320.13
7.0.30.0270.08020.09
7.0.20.0230.07320.06
7.0.10.0100.08020.27
7.0.00.0000.06720.27
5.6.280.0070.07021.09
5.6.210.0100.07720.71
5.6.200.0000.04318.27
5.6.190.0100.08020.78
5.6.180.0100.06720.47
5.6.170.0230.06720.44
5.6.160.0100.08020.48
5.6.150.0100.03318.29
5.6.140.0030.03718.20
5.6.130.0000.04318.28
5.6.120.0030.07021.10
5.6.110.0000.07321.03
5.6.100.0030.08721.04
5.6.90.0100.07721.12
5.6.80.0100.06020.41
5.5.350.0030.08320.47
5.5.340.0030.08317.98
5.5.330.0100.07320.43
5.5.320.0000.05720.36
5.5.310.0230.07020.28
5.5.300.0100.07717.95
5.5.290.0000.08318.01
5.5.280.0030.07020.90
5.5.270.0070.04320.77
5.5.260.0130.07720.94
5.5.250.0200.06720.58
5.5.240.0130.03720.37
5.4.450.0130.05019.20
5.4.440.0200.07719.46
5.4.430.0230.05019.56
5.4.420.0230.07719.30
5.4.410.0170.06719.34
5.4.400.0330.06718.88
5.4.390.0170.05319.20
5.4.380.0170.04718.83
5.4.370.0170.07018.86
5.4.360.0200.04719.13
5.4.350.0370.07718.95
5.4.340.0230.06719.13
5.4.320.0330.06319.15
5.4.310.0200.04719.15
5.4.300.0230.03319.22
5.4.290.0130.04019.24
5.4.280.0130.04718.81
5.4.270.0170.03719.01
5.4.260.0170.04019.19
5.4.250.0130.04018.98
5.4.240.0170.03319.21
5.4.230.0170.03719.21
5.4.220.0230.03319.30
5.4.210.0200.03719.22
5.4.200.0100.04319.10
5.4.190.0170.03718.86
5.4.180.0170.03319.12
5.4.170.0170.03719.07
5.4.160.0230.04319.20
5.4.150.0130.04319.14
5.4.140.0200.03016.37
5.4.130.0130.03316.40
5.4.120.0170.03316.36
5.4.110.0130.03716.50
5.4.100.0130.03716.60
5.4.90.0170.03016.57
5.4.80.0130.03716.48
5.4.70.0170.06016.38
5.4.60.0270.06316.43
5.4.50.0100.05016.44
5.4.40.0200.07316.51
5.4.30.0170.06016.42
5.4.20.0270.06016.51
5.4.10.0270.07316.32
5.4.00.0170.07315.77
5.3.290.0300.04714.71
5.3.280.0270.05314.49
5.3.270.0170.05014.57
5.3.260.0170.03314.61
5.3.250.0170.03314.69
5.3.240.0200.03014.77
5.3.230.0300.04014.62
5.3.220.0170.03314.48
5.3.210.0130.03714.56
5.3.200.0170.03314.48
5.3.190.0100.04014.79
5.3.180.0200.03014.47
5.3.170.0230.05314.61
5.3.160.0230.07314.72
5.3.150.0270.06014.58
5.3.140.0200.05314.64
5.3.130.0200.08014.55
5.3.120.0300.06314.45
5.3.110.0270.06714.54
5.3.100.0330.05714.11
5.3.90.0330.06013.95
5.3.80.0170.04014.04
5.3.70.0170.08013.93
5.3.60.0270.04013.93
5.3.50.0270.05314.04
5.3.40.0300.06313.96
5.3.30.0230.05314.13
5.3.20.0300.07013.78
5.3.10.0200.06713.59
5.3.00.0200.06713.66
5.2.170.0270.05713.03
5.2.160.0130.06713.03
5.2.150.0130.07013.03
5.2.140.0270.04713.03
5.2.130.0230.05713.03
5.2.120.0200.05313.03
5.2.110.0170.06013.03
5.2.100.0170.04013.03
5.2.90.0230.03713.03
5.2.80.0170.06713.03
5.2.70.0200.04313.03
5.2.60.0200.06013.03
5.2.50.0230.05313.03
5.2.40.0330.02313.03
5.2.30.0230.04313.03
5.2.20.0200.02313.03
5.2.10.0200.04313.03
5.2.00.0130.06013.03
5.1.60.0130.05313.03
5.1.50.0170.05313.03
5.1.40.0200.04313.03
5.1.30.0130.04013.03
5.1.20.0170.03313.03
5.1.10.0170.04713.03
5.1.00.0170.04713.03
5.0.50.0100.04013.03
5.0.40.0100.04013.03
5.0.30.0100.05013.03
5.0.20.0130.02013.03
5.0.10.0070.04313.03
5.0.00.0100.03713.03
4.4.90.0070.03713.03
4.4.80.0070.03713.03
4.4.70.0070.03713.03
4.4.60.0100.03713.03
4.4.50.0070.03313.03
4.4.40.0130.04713.03
4.4.30.0030.02713.03
4.4.20.0030.02313.03
4.4.10.0070.02713.03
4.4.00.0070.05713.03
4.3.110.0030.02313.03
4.3.100.0100.02013.03
4.3.90.0100.03313.03
4.3.80.0030.03013.03
4.3.70.0030.02013.03
4.3.60.0070.03313.03
4.3.50.0030.03313.03
4.3.40.0130.03313.03
4.3.30.0000.02313.03
4.3.20.0030.03713.03
4.3.10.0030.04013.03
4.3.00.0000.02313.03

preferences:
73.78 ms | 403 KiB | 5 Q