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($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.0130.01018.18
8.3.50.0100.00621.02
8.3.40.0120.00318.80
8.3.30.0060.00918.70
8.3.20.0040.00418.74
8.3.10.0000.00920.81
8.3.00.0060.00319.55
8.2.180.0090.00616.38
8.2.170.0070.00722.96
8.2.160.0030.01020.38
8.2.150.0050.00324.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0040.00421.18
8.2.110.0090.00020.94
8.2.100.0040.00817.72
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0000.00717.80
8.2.50.0060.00318.10
8.2.40.0100.00018.22
8.2.30.0040.00421.23
8.2.20.0040.00417.70
8.2.10.0000.00717.75
8.2.00.0060.00317.56
8.1.280.0170.00025.92
8.1.270.0070.00023.99
8.1.260.0020.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00322.03
8.1.230.0060.00617.64
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0000.00817.22
8.1.180.0000.00918.10
8.1.170.0000.01018.64
8.1.160.0050.00218.82
8.1.150.0030.00518.56
8.1.140.0070.00017.39
8.1.130.0070.00017.71
8.1.120.0030.00317.52
8.1.110.0040.00417.48
8.1.100.0050.00217.44
8.1.90.0000.00717.48
8.1.80.0030.00517.50
8.1.70.0040.00417.44
8.1.60.0050.00317.56
8.1.50.0080.00017.47
8.1.40.0040.00417.56
8.1.30.0040.00417.71
8.1.20.0000.00817.55
8.1.10.0040.00417.53
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0030.00916.75
8.0.280.0030.00318.45
8.0.270.0000.00717.26
8.0.260.0030.00316.95
8.0.250.0000.00717.05
8.0.240.0000.00816.99
8.0.230.0030.00317.08
8.0.220.0030.00516.96
8.0.210.0000.00716.96
8.0.200.0030.00317.01
8.0.190.0080.00016.91
8.0.180.0000.00717.00
8.0.170.0000.00816.87
8.0.160.0050.00216.93
8.0.150.0040.00416.94
8.0.140.0120.00016.82
8.0.130.0000.00713.44
8.0.120.0040.00416.80
8.0.110.0040.00416.91
8.0.100.0000.00816.80
8.0.90.0050.00216.89
8.0.80.0060.01216.91
8.0.70.0040.00416.83
8.0.60.0000.00717.00
8.0.50.0040.00417.02
8.0.30.0120.00916.99
8.0.20.0110.01117.41
8.0.10.0000.00817.10
8.0.00.0120.00616.72
7.4.330.0020.00215.06
7.4.320.0000.00716.59
7.4.300.0000.00616.58
7.4.290.0070.00016.52
7.4.280.0030.00316.53
7.4.270.0030.00316.52
7.4.260.0030.00313.32
7.4.250.0050.00316.55
7.4.240.0030.00316.52
7.4.230.0040.00416.66
7.4.220.0100.00716.65
7.4.210.0120.00716.56
7.4.200.0030.00316.41
7.4.190.0000.00716.57
7.4.160.0120.00416.50
7.4.150.0140.00517.40
7.4.140.0100.00717.86
7.4.130.0090.00816.51
7.4.120.0050.01116.43
7.4.110.0050.01116.50
7.4.100.0100.00716.44
7.4.90.0090.00916.63
7.4.80.0110.00719.39
7.4.70.0110.00616.44
7.4.60.0090.00616.60
7.4.50.0080.00016.47
7.4.40.0070.00722.77
7.4.30.0140.00316.22
7.4.00.0060.01215.20
7.3.330.0000.00513.28
7.3.320.0050.00313.22
7.3.310.0070.00016.31
7.3.300.0000.00616.32
7.3.290.0030.01116.40
7.3.280.0060.01216.33
7.3.270.0060.01117.40
7.3.260.0130.00618.24
7.3.250.0100.01016.52
7.3.240.0090.01216.54
7.3.230.0140.00316.44
7.3.210.0130.00316.38
7.3.200.0100.00819.39
7.3.190.0130.00616.37
7.3.180.0050.01116.46
7.3.170.0060.01216.36
7.3.160.0130.00316.48
7.3.120.0000.01314.69
7.2.330.0140.00316.73
7.2.320.0060.01616.46
7.2.310.0070.01316.68
7.2.300.0130.00416.66
7.2.290.0100.00616.50
7.2.60.0080.00817.06
7.2.00.0070.01019.43
7.1.200.0040.00715.65
7.1.100.0190.01318.21
7.1.70.0000.01017.30
7.1.60.0080.01517.30
7.1.50.0040.01216.95
7.1.40.0100.01316.56
7.1.30.0060.00816.59
7.1.20.0090.00916.82
7.1.10.0070.01016.49
7.1.00.0000.00916.84
7.0.200.0030.00616.54
7.0.190.0030.01016.66
7.0.180.0090.00616.05
7.0.170.0000.01116.14
7.0.160.0090.00616.36
7.0.150.0060.00316.09
7.0.140.0030.00516.39
7.0.130.0030.00716.59
7.0.120.0030.01216.54
7.0.110.0000.00716.43
7.0.100.0070.00716.33
7.0.90.0000.00816.27
7.0.80.0000.01616.53
7.0.70.0040.01216.43
7.0.60.0040.00416.28
7.0.50.0120.00616.31
7.0.40.0040.00415.99
7.0.30.0040.00415.99
7.0.20.0040.01115.99
7.0.10.0000.00715.99
7.0.00.0000.00815.99
5.6.300.0100.05320.90
5.6.290.0000.04520.67
5.6.280.0000.04620.84
5.6.270.0030.04520.88
5.6.260.0030.04121.03
5.6.250.0070.05221.04
5.6.240.0100.06320.90
5.6.230.0070.06821.02
5.6.220.0070.05720.82
5.6.210.0030.09121.04
5.6.200.0030.05320.88
5.6.190.0070.07820.82
5.6.180.0070.04021.02
5.6.170.0030.05121.05
5.6.160.0030.05120.84
5.6.150.0100.03521.03
5.6.140.0030.04120.84
5.6.130.0000.04920.77
5.6.120.0070.03920.87
5.6.110.0070.05121.01
5.6.100.0070.03720.81
5.6.90.0100.07821.02
5.6.80.0060.03520.37
5.6.70.0070.04120.14
5.6.60.0060.03620.23
5.6.50.0100.08320.21
5.6.40.0070.05120.32
5.6.30.0030.03920.21
5.6.20.0000.05520.35
5.6.10.0070.06420.35
5.6.00.0100.06520.38
5.5.380.0030.04917.63
5.5.370.0030.03917.43
5.5.360.0000.04417.59
5.5.350.0030.07917.52
5.5.340.0030.05518.07
5.5.330.0000.08917.85
5.5.320.0070.06317.98
5.5.310.0000.08617.81
5.5.300.0030.03918.02
5.5.290.0030.08818.08
5.5.280.0070.08118.07
5.5.270.0030.04517.97
5.5.260.0030.05918.10
5.5.250.0070.08917.88
5.5.240.0030.04017.56
5.5.230.0030.05917.45
5.5.220.0000.07817.41
5.5.210.0060.03717.45
5.5.200.0030.03917.41
5.5.190.0070.03717.41
5.5.180.0070.06317.37
5.5.160.0130.07317.37
5.5.150.0100.07517.19
5.5.140.0030.08217.37
5.5.130.0000.05317.37
5.5.120.0060.07117.07
5.5.110.0100.05817.18
5.5.100.0000.05017.36
5.5.90.0030.07216.94
5.5.80.0000.07817.09
5.5.70.0030.06617.20
5.5.60.0030.08517.05
5.5.50.0030.07117.35
5.5.40.0070.07617.28
5.5.30.0060.04816.97
5.5.20.0000.04317.30
5.5.10.0070.07517.25
5.5.00.0030.04916.93
5.4.450.0100.07619.37
5.4.440.0030.09419.30
5.4.430.0000.04819.20
5.4.420.0070.06719.47
5.4.410.0070.04219.29
5.4.400.0000.04419.05
5.4.390.0030.04119.06
5.4.380.0030.08918.91
5.4.370.0000.04218.91
5.4.360.0000.05019.12
5.4.350.0060.03819.06
5.4.340.0030.04719.09
5.4.320.0040.03918.96
5.4.310.0070.04619.06
5.4.300.0070.04419.06
5.4.290.0030.04818.96
5.4.280.0000.04719.14
5.4.270.0000.07918.96
5.4.260.0030.07018.96
5.4.250.0070.07019.13
5.4.240.0030.05818.93
5.4.230.0100.04918.86
5.4.220.0000.05618.95
5.4.210.0000.05919.05
5.4.200.0000.07119.05
5.4.190.0040.03919.14
5.4.180.0070.05118.92
5.4.170.0070.07519.05
5.4.160.0070.08719.16
5.4.150.0030.05718.86
5.4.140.0030.03516.64
5.4.130.0030.04916.60
5.4.120.0100.02916.53
5.4.110.0030.08516.77
5.4.100.0070.07416.74
5.4.90.0070.04416.73
5.4.80.0100.03816.77
5.4.70.0000.03816.62
5.4.60.0000.03816.66
5.4.50.0030.04616.59
5.4.40.0030.06516.70
5.4.30.0000.05416.36
5.4.20.0000.05016.36
5.4.10.0030.03516.58
5.4.00.0060.03516.18
5.3.290.0030.08115.99
5.3.280.0030.07915.99
5.3.270.0000.05315.99
5.3.260.0030.06915.99
5.3.250.0000.08615.99
5.3.240.0130.06715.99
5.3.230.0030.07615.99
5.3.220.0030.04515.99
5.3.210.0000.06315.99
5.3.200.0100.06615.99
5.3.190.0030.04515.99
5.3.180.0030.03715.99
5.3.170.0000.03915.99
5.3.160.0030.06315.99
5.3.150.0030.04215.99
5.3.140.0000.05215.99
5.3.130.0030.03815.99
5.3.120.0070.06815.99
5.3.110.0000.04715.99
5.3.100.0070.06115.99
5.3.90.0030.06615.99
5.3.80.0030.04015.99
5.3.70.0030.03615.99
5.3.60.0030.03615.99
5.3.50.0030.03415.99
5.3.40.0000.05715.99
5.3.30.0070.04415.99
5.3.20.0000.06415.99
5.3.10.0000.05615.99
5.3.00.0000.03915.99
5.2.170.0030.04915.99
5.2.160.0040.03915.99
5.2.150.0030.05615.99
5.2.140.0030.02915.99
5.2.130.0030.02915.99
5.2.120.0060.05215.99
5.2.110.0000.03415.99
5.2.100.0030.02615.99
5.2.90.0030.06415.99
5.2.80.0030.03315.99
5.2.70.0000.03915.99
5.2.60.0000.03115.99
5.2.50.0060.02515.99
5.2.40.0000.03815.99
5.2.30.0070.02715.99
5.2.20.0000.02915.99
5.2.10.0030.02615.99
5.2.00.0000.03015.99
5.1.60.0000.02715.99
5.1.50.0000.02715.99
5.1.40.0000.02615.99
5.1.30.0040.02515.99
5.1.20.0000.02815.99
5.1.10.0030.03015.99
5.1.00.0000.02715.99
5.0.50.0000.02715.99
5.0.40.0070.01715.99
5.0.30.0040.02815.99
5.0.20.0000.02115.99
5.0.10.0000.02415.99
5.0.00.0000.03915.99
4.4.90.0040.01415.99
4.4.80.0030.01515.99
4.4.70.0030.01315.99
4.4.60.0000.01615.99
4.4.50.0000.01615.99
4.4.40.0000.02615.99
4.4.30.0000.01615.99
4.4.20.0000.01715.99
4.4.10.0030.01315.99
4.4.00.0000.02615.99
4.3.110.0000.01615.99
4.3.100.0030.01315.99
4.3.90.0000.03015.99
4.3.80.0000.02815.99
4.3.70.0000.01715.99
4.3.60.0110.01415.99
4.3.50.0000.01715.99
4.3.40.0030.02315.99
4.3.30.0030.01515.99
4.3.20.0000.01715.99
4.3.10.0000.01615.99
4.3.00.0070.01615.99

preferences:
47.34 ms | 401 KiB | 5 Q