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($bar);

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.40.0120.00318.83
8.3.30.0130.00618.75
8.3.20.0050.00320.29
8.3.10.0050.00323.65
8.3.00.0060.00319.38
8.2.170.0170.00022.96
8.2.160.0100.00319.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00619.36
8.2.120.0040.00426.35
8.2.110.0080.00020.52
8.2.100.0110.00017.78
8.2.90.0040.00419.21
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0050.00317.93
8.2.50.0080.00018.07
8.2.40.0000.00719.34
8.2.30.0050.00220.61
8.2.20.0000.00917.73
8.2.10.0000.00818.12
8.2.00.0070.00017.93
8.1.270.0040.00423.82
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.81
8.1.230.0110.00017.70
8.1.220.0000.00917.75
8.1.210.0030.00718.77
8.1.200.0060.00317.47
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0050.00420.62
8.1.160.0040.00421.88
8.1.150.0050.00218.95
8.1.140.0050.00319.58
8.1.130.0070.00017.61
8.1.120.0000.00817.45
8.1.110.0080.00017.53
8.1.100.0070.00017.43
8.1.90.0040.00417.42
8.1.80.0000.00717.31
8.1.70.0000.00717.45
8.1.60.0000.00817.46
8.1.50.0030.00517.41
8.1.40.0040.00417.41
8.1.30.0030.00617.60
8.1.20.0020.00517.45
8.1.10.0050.00217.54
8.1.00.0000.00817.52
8.0.300.0020.00518.77
8.0.290.0060.00316.75
8.0.280.0030.00318.52
8.0.270.0000.00717.25
8.0.260.0030.00517.25
8.0.250.0040.00417.03
8.0.240.0000.00817.02
8.0.230.0050.00317.04
8.0.220.0040.00416.96
8.0.210.0030.00617.05
8.0.200.0000.00617.08
8.0.190.0070.00017.00
8.0.180.0000.00716.98
8.0.170.0000.00716.98
8.0.160.0000.00716.92
8.0.150.0000.00716.86
8.0.140.0000.00816.79
8.0.130.0000.00513.44
8.0.120.0040.00416.93
8.0.110.0000.00816.88
8.0.100.0050.00316.75
8.0.90.0070.00016.86
8.0.80.0090.00616.95
8.0.70.0050.00316.83
8.0.60.0000.00717.01
8.0.50.0050.00316.75
8.0.30.0100.00717.13
8.0.20.0040.01717.40
8.0.10.0000.00716.98
8.0.00.0090.00816.80
7.4.330.0000.00516.84
7.4.320.0030.00316.60
7.4.300.0030.00316.57
7.4.290.0050.00216.48
7.4.280.0030.00516.41
7.4.270.0050.00316.52
7.4.260.0000.00816.56
7.4.250.0050.00316.43
7.4.240.0020.00516.53
7.4.230.0000.00716.51
7.4.220.0130.01016.50
7.4.210.0070.00716.63
7.4.200.0040.00416.58
7.4.160.0110.00416.63
7.4.150.0090.01217.40
7.4.140.0100.01317.86
7.4.130.0050.01516.61
7.4.120.0070.01216.56
7.4.110.0070.01016.45
7.4.100.0060.01516.43
7.4.90.0000.02216.33
7.4.80.0130.01019.39
7.4.70.0090.00916.44
7.4.60.0000.01816.46
7.4.50.0060.00916.53
7.4.40.0110.00616.41
7.4.30.0130.00916.52
7.4.00.0090.00615.11
7.3.330.0040.00413.21
7.3.320.0000.00513.24
7.3.310.0040.00416.22
7.3.300.0000.00716.36
7.3.290.0110.00516.37
7.3.280.0060.01116.40
7.3.270.0070.01117.40
7.3.260.0130.00616.50
7.3.250.0070.01016.51
7.3.240.0060.01116.35
7.3.230.0080.00816.45
7.3.210.0150.00616.58
7.3.200.0170.00616.37
7.3.190.0070.01016.32
7.3.180.0140.00616.42
7.3.170.0120.00316.52
7.3.160.0030.01316.41
7.3.120.0100.00614.88
7.3.110.0110.00415.06
7.3.100.0030.01414.78
7.3.90.0060.00314.77
7.3.80.0030.01314.59
7.3.70.0000.01214.72
7.3.60.0030.00714.88
7.3.50.0030.01014.49
7.3.40.0000.01014.87
7.3.30.0090.00614.86
7.3.20.0070.01016.55
7.3.10.0050.01016.37
7.3.00.0070.00816.34
7.2.330.0180.00016.77
7.2.320.0040.01716.70
7.2.310.0070.01116.40
7.2.300.0070.01416.67
7.2.290.0060.01216.55
7.2.240.0040.00814.79
7.2.230.0030.01415.23
7.2.220.0110.00414.85
7.2.210.0080.00815.01
7.2.200.0060.00615.06
7.2.190.0000.01615.12
7.2.180.0040.01214.97
7.2.170.0090.00614.69
7.2.160.0030.01315.12
7.2.150.0030.01016.56
7.2.140.0000.01516.70
7.2.130.0030.00916.83
7.2.120.0070.01016.70
7.2.110.0050.00916.50
7.2.100.0090.00416.74
7.2.90.0100.00916.77
7.2.80.0070.00616.61
7.2.70.0090.00616.74
7.2.60.0020.01316.80
7.2.50.0070.01116.52
7.2.40.0050.01216.79
7.2.30.0100.00916.93
7.2.20.0130.00816.69
7.2.10.0070.00916.73
7.2.00.0060.00917.49
7.1.330.0110.00415.61
7.1.320.0060.00915.87
7.1.310.0070.00415.88
7.1.300.0030.00715.53
7.1.290.0070.00715.80
7.1.280.0030.01315.76
7.1.270.0150.00015.68
7.1.260.0030.01315.46
7.1.250.0080.00915.46
7.1.200.0070.00715.86
7.1.100.0080.00418.02
7.1.70.0060.00617.23
7.1.60.0090.01619.48
7.1.50.0140.01216.79
7.1.00.0030.07722.28
7.0.200.0150.00414.71
7.0.60.0200.07020.04
7.0.50.0030.05717.87
7.0.40.0030.09020.30
7.0.30.0100.04720.08
7.0.20.0370.06720.31
7.0.10.0070.05020.33
7.0.00.0070.06020.11
5.6.210.0070.04320.77
5.6.200.0230.06718.16
5.6.190.0100.08020.41
5.6.180.0130.07020.64
5.6.170.0270.07320.71
5.6.160.0100.09020.55
5.6.150.0030.05718.16
5.6.140.0070.06018.23
5.6.130.0100.05318.28
5.6.120.0100.05021.14
5.6.110.0070.08021.10
5.6.100.0200.07020.96
5.6.90.0130.07021.09
5.6.80.0200.07020.41
5.5.350.3530.04720.42
5.5.340.0030.08017.99
5.5.330.0070.08320.13
5.5.320.0070.08020.20
5.5.310.0230.08020.51
5.5.300.0070.07317.92
5.5.290.0200.06717.95
5.5.280.0030.07020.99
5.5.270.0100.08020.88
5.5.260.0100.06320.89
5.5.250.0070.08320.55
5.5.240.0200.02320.14

preferences:
48.75 ms | 400 KiB | 5 Q