3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface TestInterface {} interface FooInterface { public function bar(TestInterface $variable); } class Foo implements FooInterface { public function bar($variable) {} } $foo = new Foo; $foo->bar('test');

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.00716.50
8.3.50.0130.00521.99
8.3.40.0090.00918.53
8.3.30.0090.00618.47
8.3.20.0000.00720.16
8.3.10.0040.00423.65
8.3.00.0050.00319.13
8.2.180.0150.00018.54
8.2.170.0070.00722.96
8.2.160.0030.01620.47
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00419.24
8.2.120.0000.00726.35
8.2.110.0100.00019.07
8.2.100.0110.00018.04
8.2.90.0060.00319.23
8.2.80.0040.00417.97
8.2.70.0050.00517.63
8.2.60.0060.00317.80
8.2.50.0050.00318.07
8.2.40.0000.00719.41
8.2.30.0000.00820.63
8.2.20.0050.00517.56
8.2.10.0070.00018.05
8.2.00.0000.00817.93
8.1.280.0050.01025.92
8.1.270.0060.00323.85
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0060.00320.80
8.1.230.0080.00417.64
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0040.00417.36
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0050.00518.77
8.1.160.0040.00421.94
8.1.150.0040.00418.80
8.1.140.0050.00319.49
8.1.130.0000.00717.69
8.1.120.0000.00817.47
8.1.110.0070.00017.34
8.1.100.0000.00717.34
8.1.90.0050.00317.47
8.1.80.0000.00717.29
8.1.70.0070.00017.34
8.1.60.0040.00417.49
8.1.50.0080.00017.55
8.1.40.0040.00417.41
8.1.30.0040.00417.68
8.1.20.0040.00417.52
8.1.10.0030.00517.52
8.1.00.0040.00817.42
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.51
8.0.270.0040.00417.26
8.0.260.0020.00617.32
8.0.250.0030.00316.86
8.0.240.0030.00316.97
8.0.230.0000.00716.92
8.0.220.0030.00316.95
8.0.210.0080.00016.78
8.0.200.0070.00016.86
8.0.190.0050.00217.02
8.0.180.0040.00416.93
8.0.170.0090.00016.88
8.0.160.0040.00416.94
8.0.150.0000.00916.80
8.0.140.0040.00416.82
8.0.130.0000.00613.33
8.0.120.0040.00416.80
8.0.110.0050.00316.91
8.0.100.0040.00416.85
8.0.90.0000.00816.78
8.0.80.0030.01416.89
8.0.70.0000.00716.90
8.0.60.0000.00716.88
8.0.50.0040.00416.86
8.0.30.0080.00917.11
8.0.20.0120.00717.40
8.0.10.0080.00016.85
8.0.00.0060.01016.74
7.4.330.0000.00516.66
7.4.320.0000.00616.46
7.4.300.0030.00316.55
7.4.290.0000.00716.57
7.4.280.0030.00616.61
7.4.270.0030.00316.50
7.4.260.0000.00716.59
7.4.250.0080.00016.49
7.4.240.0030.00416.63
7.4.230.0030.00316.41
7.4.220.0100.01016.54
7.4.210.0060.00816.69
7.4.200.0000.00716.34
7.4.160.0030.01516.38
7.4.150.0110.00717.40
7.4.140.0120.00717.86
7.4.130.0140.00516.50
7.4.120.0130.00316.41
7.4.110.0130.00416.57
7.4.100.0170.00616.44
7.4.90.0230.02316.53
7.4.80.0110.00819.39
7.4.70.0040.01316.30
7.4.60.0070.01016.72
7.4.50.0000.01516.46
7.4.40.0100.00716.43
7.4.30.0060.01316.46
7.4.00.0030.01015.06
7.3.330.0030.00313.07
7.3.320.0050.00013.18
7.3.310.0000.00716.20
7.3.300.0040.00416.18
7.3.290.0100.00516.23
7.3.280.0120.00316.19
7.3.270.0130.00517.40
7.3.260.0100.00716.45
7.3.250.0120.00616.40
7.3.240.0160.00616.26
7.3.230.0120.00616.49
7.3.210.0130.00316.34
7.3.200.0110.01116.14
7.3.190.0070.01016.50
7.3.180.0120.00316.45
7.3.170.0030.01716.27
7.3.160.0160.00016.40
7.3.10.0060.00816.43
7.3.00.0030.01016.25
7.2.330.0120.00616.56
7.2.320.0060.01316.52
7.2.310.0120.00916.26
7.2.300.0100.01016.61
7.2.290.0140.01116.68
7.2.130.0030.01016.55
7.2.120.0060.00616.52
7.2.110.0000.01316.53
7.2.100.0070.00716.66
7.2.90.0060.00916.54
7.2.80.0000.01416.79
7.2.70.0030.01016.71
7.2.60.0080.00816.80
7.2.50.0040.00816.88
7.2.40.0030.01316.66
7.2.30.0100.00316.89
7.2.20.0060.00616.64
7.2.10.0110.00716.89
7.2.00.0040.01118.10
7.1.250.0040.00815.38
7.1.200.0060.00615.73
7.1.100.0070.00718.05
7.1.70.0030.01017.00
7.1.60.0100.01319.48
7.1.50.0060.01516.87
7.1.00.0030.07722.40
7.0.200.0040.00814.91
7.0.60.0070.08319.82
7.0.50.0070.08017.95
7.0.40.0030.04720.31
7.0.30.0230.03320.10
7.0.20.0270.08720.23
7.0.10.0030.05320.27
7.0.00.0100.08320.06
5.6.280.0000.04021.02
5.6.210.0100.06720.75
5.6.200.0170.07318.18
5.6.190.0030.04320.57
5.6.180.0370.07720.33
5.6.170.0230.08020.59
5.6.160.0000.04320.46
5.6.150.0100.07718.14
5.6.140.0000.06718.14
5.6.130.0030.08318.21
5.6.120.0030.06021.02
5.6.110.0130.07321.03
5.6.100.0100.08021.00
5.6.90.0130.07320.97
5.6.80.0030.04020.51
5.5.350.0370.06720.41
5.5.340.0070.05317.98
5.5.330.0070.04020.35
5.5.320.0030.06320.21
5.5.310.0170.04020.50
5.5.300.0000.05317.97
5.5.290.0030.04318.00
5.5.280.0100.04320.76
5.5.270.0070.03720.93
5.5.260.0000.08720.96
5.5.250.0100.05320.62
5.5.240.0130.09020.26

preferences:
53.87 ms | 401 KiB | 5 Q