3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Dog { public function woof(); } class Terrier implements Dog { public function woof() { echo 'woof'; } } class Staffie extends Terrier { } $dog = new Staffie(); theBestDog($dog); function theBestDog(Dog $dog){ echo 'The best dogs is ' . get_class_name($dog); $dog->woof(); }

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.00718.43
8.3.50.0140.00722.05
8.3.40.0070.00718.83
8.3.30.0150.00018.69
8.3.20.0040.00418.85
8.3.10.0040.00421.10
8.3.00.0080.00019.69
8.2.180.0150.00317.00
8.2.170.0070.00722.96
8.2.160.0090.00620.44
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.90
8.2.110.0030.00622.29
8.2.100.0110.00017.70
8.2.90.0040.00417.84
8.2.80.0060.00318.16
8.2.70.0030.00617.63
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0000.00818.09
8.2.30.0030.00521.10
8.2.20.0000.00817.76
8.2.10.0070.00017.63
8.2.00.0040.00417.63
8.1.280.0060.01325.92
8.1.270.0060.00323.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00323.81
8.1.230.0080.00421.04
8.1.220.0030.00617.79
8.1.210.0030.00620.73
8.1.200.0100.00017.23
8.1.190.0000.00817.52
8.1.180.0050.00318.10
8.1.170.0030.00518.59
8.1.160.0040.00418.81
8.1.150.0040.00418.69
8.1.140.0020.00517.41
8.1.130.0000.00717.74
8.1.120.0050.00217.32
8.1.110.0040.00417.39
8.1.100.0040.00417.41
8.1.90.0040.00417.45
8.1.80.0050.00217.37
8.1.70.0070.00017.38
8.1.60.0050.00317.52
8.1.50.0000.00817.45
8.1.40.0070.00017.49
8.1.30.0050.00317.68
8.1.20.0050.00317.64
8.1.10.0080.00017.53
8.1.00.0000.00817.57
8.0.300.0040.00419.93
8.0.290.0000.00816.75
8.0.280.0050.00218.39
8.0.270.0000.00817.25
8.0.260.0030.00316.89
8.0.250.0040.00416.91
8.0.240.0040.00416.93
8.0.230.0000.00716.90
8.0.220.0000.00717.05
8.0.210.0000.00716.87
8.0.200.0030.00316.92
8.0.190.0070.00016.96
8.0.180.0000.00716.91
8.0.170.0050.00316.97
8.0.160.0040.00416.90
8.0.150.0000.00816.93
8.0.140.0000.00916.99
8.0.130.0030.00313.35
8.0.120.0030.00616.89
8.0.110.0040.00416.98
8.0.100.0000.00716.76
8.0.90.0000.00817.03
8.0.80.0030.01916.86
8.0.70.0000.00816.83
8.0.60.0000.00817.00
8.0.50.0020.00517.01
8.0.30.0060.01217.00
8.0.20.0100.01317.40
8.0.10.0050.00216.96
8.0.00.0070.01316.66
7.4.330.0040.00015.04
7.4.320.0060.00016.63
7.4.300.0060.00016.63
7.4.290.0030.00316.50
7.4.280.0030.00316.51
7.4.270.0040.00416.48
7.4.260.0000.00513.30
7.4.250.0000.00716.47
7.4.240.0070.00016.57
7.4.230.0030.00316.49
7.4.220.0090.00616.60
7.4.210.0080.00616.60
7.4.200.0030.00316.42
7.4.190.0040.00416.74
7.4.160.0070.00716.36
7.4.150.0070.01017.40
7.4.140.0090.00817.86
7.4.130.0090.00816.63
7.4.120.0120.00516.66
7.4.110.0060.01216.67
7.4.100.0040.01816.56
7.4.90.0150.00316.45
7.4.80.0130.01019.39
7.4.70.0170.00316.54
7.4.60.0100.00616.62
7.4.50.0060.00016.38
7.4.40.0060.01222.77
7.4.30.0060.01416.63
7.4.00.0080.00815.23
7.3.330.0000.00513.25
7.3.320.0000.00813.12
7.3.310.0000.00716.34
7.3.300.0030.00316.26
7.3.290.0070.01016.27
7.3.280.0070.01016.29
7.3.270.0030.01317.40
7.3.260.0100.01418.24
7.3.250.0100.01016.28
7.3.240.0060.01116.52
7.3.230.0120.01116.46
7.3.210.0090.00916.43
7.3.200.0000.02219.39
7.3.190.0130.00316.38
7.3.180.0080.00816.52
7.3.170.0070.01316.51
7.3.160.0090.00616.42
7.3.120.0060.00614.96
7.3.10.0030.01116.39
7.3.00.0060.00916.28
7.2.330.0080.01116.38
7.2.320.0140.00416.39
7.2.310.0080.01316.64
7.2.300.0130.00316.64
7.2.290.0070.01016.43
7.2.130.0070.01116.28
7.2.120.0210.00416.45
7.2.110.0160.01016.79
7.2.100.0040.01716.26
7.2.90.0210.00016.36
7.2.80.0190.00416.79
7.2.70.0100.00716.55
7.2.60.0110.01016.63
7.2.50.0140.00716.43
7.2.40.0070.00716.29
7.2.30.0070.01416.63
7.2.20.0070.00716.32
7.2.10.0070.01016.59
7.2.00.0100.00718.17
7.1.250.0080.00815.82
7.1.200.0070.00715.59
7.1.70.0040.00817.13
7.1.60.0110.00417.21
7.1.50.0100.00617.00
7.1.40.0000.01316.76
7.1.30.0000.01716.76
7.1.20.0130.00416.76
7.1.10.0040.00916.76
7.1.00.0000.00816.76
7.0.200.0090.00316.76
7.0.190.0060.00616.76
7.0.180.0000.01316.76
7.0.170.0060.00616.76
7.0.160.0040.00816.76
7.0.150.0090.00516.76
7.0.140.0040.00816.76
7.0.130.0060.00816.76
7.0.120.0060.00616.76
7.0.110.0000.01316.76
7.0.100.0050.00716.76
7.0.90.0100.00616.76
7.0.80.0080.00816.76
7.0.70.0090.00416.76
7.0.60.0000.01316.76
7.0.50.0070.00716.76
7.0.40.0110.01116.76
7.0.30.0100.00416.76
7.0.20.0000.01116.76
7.0.10.0060.00616.76
7.0.00.0000.00716.76
5.6.300.0140.04220.93
5.6.290.0090.05620.89
5.6.280.0000.05020.86
5.6.270.0100.07020.92
5.6.260.0140.03821.08
5.6.250.0070.05520.76
5.6.240.0040.05820.98
5.6.230.0070.04720.78
5.6.220.0100.04020.84
5.6.210.0030.04520.80
5.6.200.0130.03920.95
5.6.190.0070.04620.87
5.6.180.0140.03220.74
5.6.170.0070.05420.94
5.6.160.0070.03620.97
5.6.150.0030.04321.04
5.6.140.0030.04920.81
5.6.130.0130.05020.74
5.6.120.0030.04020.82
5.6.110.0070.05221.02
5.6.100.0070.04321.01
5.6.90.0030.04920.71
5.6.80.0100.03520.25
5.6.70.0070.03420.24
5.6.60.0070.04020.20
5.6.50.0030.05920.32
5.6.40.0060.03820.41
5.6.30.0070.04020.29
5.6.20.0000.04620.10
5.6.10.0000.04220.18
5.6.00.0030.03820.27
5.5.380.0030.04217.62
5.5.370.0000.04717.41
5.5.360.0040.04417.57
5.5.350.0060.04117.56
5.5.340.0030.04318.08
5.5.330.0100.03318.01
5.5.320.0070.04018.08
5.5.310.0070.04218.12
5.5.300.0090.03618.00
5.5.290.0070.05618.10
5.5.280.0000.05317.84
5.5.270.0040.04718.14
5.5.260.0030.04418.07
5.5.250.0000.04217.90
5.5.240.0000.04217.49
5.5.230.0030.03717.46
5.5.220.0030.04517.08
5.5.210.0060.03617.47
5.5.200.0060.03517.21
5.5.190.0060.03917.21
5.5.180.0060.03917.36
5.5.160.0060.03617.45
5.5.150.0100.04317.41
5.5.140.0210.03917.05
5.5.130.0100.03717.43
5.5.120.0030.03717.44
5.5.110.0030.03817.20
5.5.100.0000.04017.12
5.5.90.0040.03917.34
5.5.80.0030.03816.99
5.5.70.0040.04317.10
5.5.60.0030.08017.31
5.5.50.0090.03417.33
5.5.40.0100.03217.34
5.5.30.0000.04417.39
5.5.20.0120.04417.22
5.5.10.0000.04617.33
5.5.00.0000.04917.31
5.4.450.0130.03819.46
5.4.440.0040.03919.28
5.4.430.0030.04519.38
5.4.420.0060.03919.24
5.4.410.0040.04019.16
5.4.400.0030.04018.96
5.4.390.0060.04119.13
5.4.380.0110.02819.20
5.4.370.0070.04618.90
5.4.360.0070.04719.06
5.4.350.0040.04019.00
5.4.340.0030.04318.96
5.4.320.0030.03718.91
5.4.310.0000.04318.97
5.4.300.0100.03419.20
5.4.290.0000.04518.98
5.4.280.0030.04519.13
5.4.270.0000.04018.89
5.4.260.0030.04018.89
5.4.250.0030.04419.02
5.4.240.0030.04219.20
5.4.230.0060.03418.97
5.4.220.0060.06419.06
5.4.210.0060.03619.04
5.4.200.0030.04218.95
5.4.190.0070.03419.12
5.4.180.0070.03619.04
5.4.170.0030.04418.96
5.4.160.0030.03719.22
5.4.150.0130.03818.93
5.4.140.0000.04916.76
5.4.130.0090.03116.76
5.4.120.0000.03716.76
5.4.110.0040.03716.76
5.4.100.0000.04916.76
5.4.90.0060.03716.76
5.4.80.0070.03716.78
5.4.70.0000.04016.78
5.4.60.0000.04316.76
5.4.50.0040.04316.76
5.4.40.0030.04016.76
5.4.30.0030.03716.76
5.4.20.0060.03316.76
5.4.10.0030.03816.76
5.4.00.0000.03916.76
5.3.290.0000.04616.76
5.3.280.0030.03816.76
5.3.270.0090.03116.76
5.3.260.0030.04116.76
5.3.250.0070.03116.76
5.3.240.0060.03216.76
5.3.230.0040.03916.76
5.3.220.0060.03416.76
5.3.210.0070.04316.76
5.3.200.0110.04216.76
5.3.190.0070.03716.76
5.3.180.0060.03616.76
5.3.170.0060.03816.76
5.3.160.0070.03916.76
5.3.150.0030.03816.76
5.3.140.0000.04116.76
5.3.130.0030.04716.76
5.3.120.0000.04416.76
5.3.110.0100.03916.76
5.3.100.0160.02516.76
5.3.90.0090.03716.76
5.3.80.0030.04716.76
5.3.70.0100.03316.76
5.3.60.0040.04316.76
5.3.50.0000.04316.76
5.3.40.0060.04116.76
5.3.30.0070.03616.76
5.3.20.0030.04116.76
5.3.10.0070.03716.76
5.3.00.0030.04516.76
5.2.170.0160.02016.76
5.2.160.0000.03216.76
5.2.150.0100.02416.76
5.2.140.0060.03416.76
5.2.130.0030.03116.76
5.2.120.0000.03616.76
5.2.110.0030.03116.76
5.2.100.0030.03116.76
5.2.90.0030.02816.76
5.2.80.0000.03316.76
5.2.70.0000.03416.76
5.2.60.0000.03316.76
5.2.50.0060.02816.76
5.2.40.0070.03016.76
5.2.30.0000.03116.76
5.2.20.0000.03316.76
5.2.10.0140.03816.76
5.2.00.0090.02416.76
5.1.60.0030.02616.76
5.1.50.0000.02816.76
5.1.40.0080.02316.76
5.1.30.0040.02616.76
5.1.20.0060.02416.76
5.1.10.0070.02516.76
5.1.00.0000.02816.76
5.0.50.0040.02016.76
5.0.40.0040.01916.76
5.0.30.0040.03216.76
5.0.20.0000.02416.76
5.0.10.0030.02116.76
5.0.00.0090.02516.76
4.4.90.0030.01416.76
4.4.80.0000.01716.76
4.4.70.0000.01716.76
4.4.60.0030.01416.76
4.4.50.0040.01816.76
4.4.40.0000.02816.76
4.4.30.0000.01916.76
4.4.20.0000.02016.76
4.4.10.0050.01316.76
4.4.00.0030.02416.76
4.3.110.0000.02016.76
4.3.100.0030.01316.76
4.3.90.0140.00716.76
4.3.80.0000.02716.76
4.3.70.0030.01316.76
4.3.60.0000.02216.76
4.3.50.0030.02016.76
4.3.40.0000.02916.76
4.3.30.0000.02016.76
4.3.20.0030.01616.76
4.3.10.0000.02016.76
4.3.00.0080.02316.76

preferences:
38.34 ms | 400 KiB | 5 Q