3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface testInterface { public function doAction(); } class Foo implements testInterface { public function doAction() { echo "Action!"; } } class Bar { protected $test = "test"; } class Baz { public function __construct(testInterface $class) { echo "Everything's ok!"; } } $foo = new Foo(); $bar = new Bar(); $baz = new Baz($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.3.60.0140.00016.50
8.3.50.0120.00722.11
8.3.40.0090.00618.52
8.3.30.0150.00318.66
8.3.20.0040.00420.16
8.3.10.0040.00423.53
8.3.00.0060.00319.33
8.2.180.0090.01316.38
8.2.170.0100.00722.96
8.2.160.0030.01019.27
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00919.11
8.2.120.0040.00426.35
8.2.110.0100.01020.61
8.2.100.0000.01218.04
8.2.90.0000.00719.26
8.2.80.0060.00317.97
8.2.70.0000.00817.38
8.2.60.0080.00018.04
8.2.50.0000.00818.07
8.2.40.0000.00919.53
8.2.30.0040.00420.61
8.2.20.0050.00517.74
8.2.10.0030.00517.96
8.2.00.0000.00817.96
8.1.280.0100.00725.92
8.1.270.0050.00323.97
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0110.00723.84
8.1.230.0090.00317.66
8.1.220.0080.00017.79
8.1.210.0090.00018.77
8.1.200.0030.00617.23
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0000.00818.62
8.1.160.0070.00021.88
8.1.150.0040.00418.86
8.1.140.0040.00419.44
8.1.130.0030.00317.74
8.1.120.0030.00517.44
8.1.110.0110.00017.34
8.1.100.0040.00417.42
8.1.90.0000.00717.37
8.1.80.0050.00317.38
8.1.70.0050.00317.32
8.1.60.0080.00017.58
8.1.50.0000.00817.53
8.1.40.0040.00417.55
8.1.30.0040.00417.55
8.1.20.0030.00617.46
8.1.10.0000.00817.59
8.1.00.0040.00417.43
8.0.300.0000.00718.77
8.0.290.0070.00016.88
8.0.280.0000.00718.48
8.0.270.0030.00317.13
8.0.260.0030.00317.25
8.0.250.0030.00317.01
8.0.240.0080.00017.00
8.0.230.0040.00417.04
8.0.220.0040.00416.79
8.0.210.0080.00016.93
8.0.200.0060.00017.02
8.0.190.0070.00016.91
8.0.180.0040.00416.96
8.0.170.0080.00016.87
8.0.160.0070.00016.97
8.0.150.0030.00616.85
8.0.140.0000.00816.79
8.0.130.0050.00013.40
8.0.120.0090.00016.95
8.0.110.0040.00416.82
8.0.100.0040.00416.90
8.0.90.0040.00416.79
8.0.80.0050.01017.01
8.0.70.0070.00017.01
8.0.60.0020.00516.91
8.0.50.0040.00416.88
8.0.30.0050.01017.08
8.0.20.0090.01017.40
8.0.10.0040.00417.03
8.0.00.0080.00916.82
7.4.330.0020.00216.78
7.4.320.0040.00416.58
7.4.300.0070.00016.55
7.4.290.0030.00316.52
7.4.280.0050.00316.61
7.4.270.0000.00716.61
7.4.260.0030.00316.63
7.4.250.0040.00416.39
7.4.240.0040.00316.58
7.4.230.0030.00316.68
7.4.220.0110.01116.53
7.4.210.0090.00516.66
7.4.200.0030.00316.60
7.4.160.0090.00616.68
7.4.150.0090.00917.40
7.4.140.0160.00617.86
7.4.130.0100.00716.43
7.4.120.0130.00616.53
7.4.110.0100.01316.54
7.4.100.0150.00816.36
7.4.90.0070.01016.45
7.4.80.0120.00619.39
7.4.70.0110.01016.50
7.4.60.0120.00616.56
7.4.50.0100.00716.64
7.4.40.0130.00616.45
7.4.30.0070.01116.44
7.4.10.0070.00714.91
7.4.00.0100.00714.76
7.3.330.0040.00413.22
7.3.320.0000.00513.06
7.3.310.0040.00416.25
7.3.300.0000.00616.15
7.3.290.0080.00816.22
7.3.280.0060.00916.20
7.3.270.0070.01017.40
7.3.260.0090.00816.40
7.3.240.0120.00716.22
7.3.230.0030.01316.39
7.3.210.0100.00616.27
7.3.200.0130.00916.19
7.3.190.0130.00316.30
7.3.180.0110.00416.18
7.3.170.0000.01516.27
7.3.160.0070.01016.15
7.3.130.0140.00414.86
7.3.120.0030.01614.83
7.3.110.0120.00414.86
7.3.100.0070.00714.57
7.3.90.0000.01114.79
7.3.80.0060.00314.79
7.3.70.0100.00314.67
7.3.60.0120.00614.67
7.3.50.0040.00414.56
7.3.40.0100.00014.88
7.3.30.0090.00314.95
7.3.20.0090.00016.54
7.3.10.0020.01116.46
7.3.00.0070.00516.46
7.2.330.0130.01016.66
7.2.320.0140.00316.45
7.2.310.0120.00616.75
7.2.300.0130.00316.67
7.2.290.0150.00316.81
7.2.260.0030.01614.91
7.2.250.0120.00614.90
7.2.240.0070.00715.11
7.2.230.0040.01114.79
7.2.220.0110.00315.27
7.2.210.0030.01014.93
7.2.200.0040.01114.93
7.2.190.0070.00714.93
7.2.180.0000.01014.87
7.2.170.0040.00814.98
7.2.160.0060.00314.72
7.2.150.0040.01116.93
7.2.140.0090.00616.62
7.2.130.0080.00517.01
7.2.120.0040.00816.95
7.2.110.0090.00516.88
7.2.100.0050.00916.88
7.2.90.0080.00516.88
7.2.80.0040.00716.80
7.2.70.0080.00517.04
7.2.60.0030.00916.91
7.2.50.0090.00517.00
7.2.40.0060.00616.96
7.2.30.0070.00716.81
7.2.20.0050.00916.83
7.2.10.0050.00716.88
7.2.00.0110.00417.39
7.1.330.0140.00015.73
7.1.320.0030.01015.64
7.1.310.0000.01015.70
7.1.300.0070.00215.65
7.1.290.0100.00715.45
7.1.280.0000.01215.79
7.1.270.0000.00815.81
7.1.260.0040.00815.65
7.1.250.0060.00515.67
7.1.240.0040.01115.80
7.1.230.0060.00915.50
7.1.220.0120.00315.75
7.1.210.0040.00415.65
7.1.200.0090.00615.71
7.1.190.0030.01015.61
7.1.180.0090.00315.77
7.1.170.0100.00315.58
7.1.160.0040.00715.80
7.1.150.0060.00615.90
7.1.140.0070.00715.86
7.1.130.0030.00615.57
7.1.120.0100.00015.98
7.1.110.0000.01115.81
7.1.100.0040.00816.88
7.1.90.0120.00315.79
7.1.80.0110.00015.77
7.1.70.0000.01116.42
7.1.60.0050.01817.63
7.1.50.0070.00616.26
7.1.40.0040.00815.75
7.1.30.0070.00715.80
7.1.20.0100.00315.55
7.1.10.0080.00315.80
7.1.00.0030.04318.91
7.0.330.0070.00715.29
7.0.320.0030.00615.44
7.0.310.0000.01115.21
7.0.300.0080.00515.34
7.0.290.0040.00815.42
7.0.280.0050.00315.09
7.0.270.0080.00415.52
7.0.260.0030.00615.41
7.0.250.0030.00615.41
7.0.240.0030.00915.52
7.0.230.0070.00315.50
7.0.220.0030.01415.47
7.0.210.0090.00615.22
7.0.200.0180.00715.10
7.0.190.0030.00615.43
7.0.180.0040.00715.16
7.0.170.0000.01215.44
7.0.160.0120.00615.46
7.0.150.0060.00315.44
7.0.140.0080.00315.40
7.0.130.0000.01115.58
7.0.120.0110.00415.55
7.0.110.0000.00815.26
7.0.100.0060.00915.39
7.0.90.0040.00415.45
7.0.80.0030.01215.51
7.0.70.0070.00715.54
7.0.60.0050.04517.72
7.0.50.0030.02516.68
7.0.40.0020.03016.82
7.0.30.0100.02516.74
7.0.20.0170.03516.87
7.0.10.0100.04516.79
7.0.00.0070.04516.79
5.6.400.0100.00714.66
5.6.390.0030.00614.18
5.6.380.0030.00914.61
5.6.370.0070.00414.56
5.6.360.0000.01214.55
5.6.350.0060.00914.54
5.6.340.0040.00814.27
5.6.330.0100.00614.25
5.6.320.0030.01014.26
5.6.310.0060.00314.46
5.6.300.0070.00714.17
5.6.290.0100.00314.47
5.6.280.0070.01717.67
5.6.270.0050.00814.27
5.6.260.0000.01414.20
5.6.250.0070.00314.23
5.6.240.0120.00314.05
5.6.230.0090.00614.47
5.6.220.0060.00314.29
5.6.210.0080.04517.53
5.6.200.0040.04116.38
5.6.190.0030.05017.38
5.6.180.0140.03417.36
5.6.170.0080.04117.45
5.6.160.0070.04517.38
5.6.150.0090.04316.11
5.6.140.0050.03216.38
5.6.130.0100.04316.18
5.6.120.0000.02617.75
5.6.110.0070.04217.58
5.6.100.0050.04117.54
5.6.90.0080.03217.56
5.6.80.0020.05017.31
5.6.70.0030.00914.03
5.6.60.0000.01514.47
5.6.50.0070.00714.07
5.6.40.0070.00714.05
5.6.30.0070.01014.09
5.6.20.0040.01014.17
5.6.10.0040.00814.16
5.6.00.0070.00314.18
5.5.380.0070.00714.20
5.5.370.0110.00314.34
5.5.360.0030.00714.30
5.5.350.0750.02017.19
5.5.340.0050.02916.09
5.5.330.0110.02317.24
5.5.320.0000.03617.35
5.5.310.0150.04717.40
5.5.300.0070.02716.23
5.5.290.0080.04016.23
5.5.280.0030.03317.48
5.5.270.0070.04617.49
5.5.260.0110.03317.55
5.5.250.0050.04017.49
5.5.240.0170.04217.34
5.5.230.0030.01214.18
5.5.220.0100.00014.30
5.5.210.0040.00714.34
5.5.200.0040.01114.05
5.5.190.0080.00614.26
5.5.180.0000.01614.42
5.5.170.0040.00814.02
5.5.160.0060.00614.22
5.5.150.0070.00314.28
5.5.140.0080.00614.23
5.5.130.0040.01114.22
5.5.120.0000.01514.05
5.5.110.0080.00414.05
5.5.100.0050.00514.07
5.5.90.0070.00414.04
5.5.80.0040.00414.14
5.5.70.0070.00714.22
5.5.60.0000.00914.00
5.5.50.0030.00714.00
5.5.40.0040.00713.95
5.5.30.0090.00614.34
5.5.20.0070.01013.98
5.5.10.0070.00714.15
5.5.00.0040.00414.24

preferences:
40.85 ms | 401 KiB | 5 Q