3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface DogFeeder { function feed(Dog $dog); } function feedChihuahua(DogFeeder $feeder) { $feeder->feed(new Chihuahua()); // this code is OK } class BulldogFeeder implements DogFeeder { function feed(Bulldog $dog) { } } feedChihuahua(new BulldogFeeder()); //

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.0130.00918.68
8.3.50.0100.00618.24
8.3.40.0100.01318.71
8.3.30.0120.00318.42
8.3.20.0070.00420.65
8.3.10.0040.00420.22
8.3.00.0000.00720.64
8.2.180.0170.00318.41
8.2.170.0040.01122.96
8.2.160.0070.00722.14
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0030.00620.51
8.2.100.0000.01117.78
8.2.90.0030.00617.91
8.2.80.0040.00417.97
8.2.70.0040.00718.04
8.2.60.0040.00418.22
8.2.50.0060.00318.10
8.2.40.0000.00719.41
8.2.30.0040.00419.17
8.2.20.0000.00817.85
8.2.10.0060.00320.44
8.2.00.0040.00419.19
8.1.280.0120.00325.92
8.1.270.0080.00022.28
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00820.64
8.1.230.0040.00722.66
8.1.220.0040.00417.74
8.1.210.0030.00718.77
8.1.200.0060.00317.23
8.1.190.0040.00417.13
8.1.180.0040.00419.08
8.1.170.0040.00418.65
8.1.160.0000.00718.90
8.1.150.0040.00418.90
8.1.140.0030.00322.11
8.1.130.0000.00720.13
8.1.120.0040.00417.37
8.1.110.0030.00617.39
8.1.100.0030.00517.30
8.1.90.0060.00317.42
8.1.80.0000.00717.37
8.1.70.0030.00617.31
8.1.60.0030.00817.51
8.1.50.0000.00817.51
8.1.40.0030.00517.35
8.1.30.0090.00317.63
8.1.20.0020.00517.48
8.1.10.0000.00717.41
8.1.00.0040.00417.36
8.0.300.0070.00019.95
8.0.290.0070.00016.75
8.0.280.0030.00318.31
8.0.270.0040.00417.12
8.0.260.0030.00320.06
8.0.250.0060.00316.96
8.0.240.0030.00316.85
8.0.230.0000.00916.85
8.0.220.0000.00716.74
8.0.210.0030.00416.90
8.0.200.0030.00316.83
8.0.190.0000.00816.88
8.0.180.0060.00316.80
8.0.170.0040.00416.96
8.0.160.0070.00016.89
8.0.150.0030.00316.82
8.0.140.0000.00716.73
8.0.130.0030.00313.32
8.0.120.0000.00716.82
8.0.110.0000.00716.72
8.0.100.0040.00416.95
8.0.90.0030.00616.77
8.0.80.0050.01016.78
8.0.70.0040.00416.77
8.0.60.0050.00216.70
8.0.50.0040.00416.88
8.0.30.0040.01116.87
8.0.20.0150.00316.99
8.0.10.0000.00717.02
8.0.00.0140.00516.76
7.4.330.0000.00515.55
7.4.320.0030.00316.57
7.4.300.0060.00016.38
7.4.290.0040.00416.34
7.4.280.0000.00816.52
7.4.270.0000.01016.58
7.4.260.0030.00313.27
7.4.250.0030.00316.38
7.4.240.0010.00616.48
7.4.230.0000.00816.63
7.4.220.0030.00316.22
7.4.210.0070.00916.54
7.4.200.0000.00716.34
7.4.130.0110.00716.48
7.4.120.0140.00316.39
7.4.110.0030.01416.40
7.4.100.0060.01516.49
7.4.90.0150.00916.53
7.4.80.0110.01119.39
7.4.70.0120.00416.45
7.4.60.0090.00616.45
7.4.50.0030.01016.26
7.4.40.0030.01316.22
7.4.00.0040.01114.97
7.3.330.0050.00316.23
7.3.320.0030.00313.22
7.3.310.0040.00416.13
7.3.300.0000.00716.19
7.3.290.0070.00816.28
7.3.280.0090.00616.09
7.3.260.0120.00616.47
7.3.240.0070.01016.44
7.3.230.0070.01016.14
7.3.210.0030.01316.57
7.3.200.0030.01316.52
7.3.190.0150.00316.21
7.3.180.0160.00616.39
7.3.170.0120.00916.21
7.3.160.0060.01116.34
7.3.120.0080.00815.02
7.3.110.0100.00714.66
7.3.100.0110.00314.94
7.3.90.0050.00814.93
7.3.80.0120.00414.66
7.3.70.0070.00714.50
7.3.60.0030.01214.59
7.3.50.0200.00014.73
7.3.40.0070.00714.58
7.3.30.0170.00014.79
7.3.20.0280.00314.56
7.3.10.0060.00916.66
7.3.00.0080.00816.46
7.2.330.0090.00916.34
7.2.320.0090.01216.38
7.2.310.0060.01216.19
7.2.300.0060.01616.27
7.2.290.0140.00516.49
7.2.250.0090.00614.79
7.2.240.0100.00515.06
7.2.230.0130.00314.95
7.2.220.0100.01014.77
7.2.210.0070.01015.10
7.2.200.0100.00514.73
7.2.190.0080.00815.00
7.2.180.0000.01614.51
7.2.170.0060.00814.70
7.1.330.0110.01115.38
7.1.320.0120.00615.34
7.1.310.0140.00415.52
7.1.300.0150.00315.47
7.1.290.0100.00715.74
7.1.280.0070.00715.49
7.1.270.0070.01315.63
7.1.260.0090.00615.36

preferences:
61.24 ms | 400 KiB | 5 Q