3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface a { public function aa(); } interface b extends a { public function bb(); } class aa implements a { public function aa() { echo 'aa'; } } class bb implements b { public function bb() { echo 'bb'; } } $aa = new aa(); $aa->aa(); $bb = new bb(); $bb->bb(); $aa->bb();

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.70.0100.01018.43
8.3.60.0110.01116.75
8.3.50.0100.01221.27
8.3.40.0100.01018.71
8.3.30.0120.00318.73
8.3.20.0040.00420.33
8.3.10.0040.00423.65
8.3.00.0050.00319.67
8.2.180.0040.01616.75
8.2.170.0100.00322.96
8.2.160.0030.01020.55
8.2.150.0060.00325.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0100.00017.50
8.2.110.0040.00422.20
8.2.100.0070.00717.62
8.2.90.0080.00017.75
8.2.80.0040.00417.97
8.2.70.0000.00817.80
8.2.60.0000.01017.93
8.2.50.0060.00318.10
8.2.40.0070.00020.50
8.2.30.0070.00320.70
8.2.20.0000.00717.65
8.2.10.0000.00718.05
8.2.00.0020.00518.06
8.1.280.0100.00725.92
8.1.270.0060.00323.96
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00623.68
8.1.230.0060.00622.83
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0080.00816.87
8.1.190.0000.00817.13
8.1.180.0030.00618.10
8.1.170.0080.00018.63
8.1.160.0030.00621.93
8.1.150.0000.00718.84
8.1.140.0080.00019.62
8.1.130.0000.00817.61
8.1.120.0080.00017.44
8.1.110.0040.00417.46
8.1.100.0000.00817.42
8.1.90.0040.00417.39
8.1.80.0030.00617.41
8.1.70.0100.00017.30
8.1.60.0040.00417.56
8.1.50.0060.00317.42
8.1.40.0010.01117.52
8.1.30.0000.00817.55
8.1.20.0050.00617.64
8.1.10.0040.00417.38
8.1.00.0030.00617.22
8.0.300.0090.00019.86
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0070.00017.11
8.0.260.0030.00317.26
8.0.250.0000.00716.85
8.0.240.0000.00616.96
8.0.230.0000.01016.95
8.0.220.0000.00716.89
8.0.210.0030.00316.80
8.0.200.0030.00317.00
8.0.190.0000.00816.94
8.0.180.0040.00416.82
8.0.170.0080.00016.81
8.0.160.0030.00316.95
8.0.150.0080.00016.84
8.0.140.0000.00716.82
8.0.130.0050.00313.31
8.0.120.0050.00316.84
8.0.110.0000.00816.83
8.0.100.0080.00016.97
8.0.90.0040.00416.86
8.0.80.0130.00316.86
8.0.70.0050.00316.75
8.0.60.0000.00816.72
8.0.50.0000.00716.89
8.0.30.0090.01017.14
8.0.20.0130.00617.40
8.0.10.0070.00017.11
8.0.00.0100.00916.72
7.4.330.0050.00015.09
7.4.320.0040.00416.54
7.4.300.0000.00616.60
7.4.290.0000.00716.44
7.4.280.0030.00716.45
7.4.270.0000.00716.38
7.4.260.0040.00416.45
7.4.250.0040.00416.42
7.4.240.0040.00416.47
7.4.230.0000.00716.64
7.4.220.0120.00916.39
7.4.210.0030.01016.62
7.4.200.0040.00416.38
7.4.160.0090.00616.40
7.4.150.0110.00617.40
7.4.140.0130.00717.86
7.4.130.0070.00916.61
7.4.120.0090.00916.59
7.4.110.0120.00616.53
7.4.100.0100.00716.45
7.4.90.0030.01516.52
7.4.80.0030.01619.39
7.4.70.0160.00216.25
7.4.60.0090.00916.45
7.4.50.0030.00616.60
7.4.40.0060.00916.43
7.4.30.0100.00716.23
7.4.00.0030.01214.79
7.3.330.0060.00013.11
7.3.320.0050.00013.07
7.3.310.0030.00316.27
7.3.300.0030.00316.24
7.3.290.0090.00616.21
7.3.280.0090.00916.23
7.3.270.0140.00417.40
7.3.260.0140.00316.22
7.3.250.0080.01216.35
7.3.240.0130.00516.32
7.3.230.0070.01016.46
7.3.210.0030.01616.37
7.3.200.0060.01016.53
7.3.190.0040.01516.33
7.3.180.0100.00616.55
7.3.170.0120.00916.27
7.3.160.0120.00416.18
7.3.10.0110.01116.64
7.3.00.0090.00916.50
7.2.330.0190.00016.54
7.2.320.0070.01016.44
7.2.310.0110.01016.27
7.2.300.0000.01616.54
7.2.290.0070.01016.43
7.2.130.0070.00716.88
7.2.120.0100.00716.76
7.2.110.0030.00616.48
7.2.100.0000.01116.51
7.2.90.0090.00616.73
7.2.80.0040.01116.03
7.2.70.0000.01516.58
7.2.60.0030.01216.80
7.2.50.0080.00316.69
7.2.40.0100.01016.75
7.2.30.0060.00916.21
7.2.20.0160.00616.78
7.2.10.0070.01016.72
7.2.00.0090.00617.82
7.1.250.0040.00815.82
7.1.200.0030.01015.50
7.1.100.0040.01118.16
7.1.70.0100.01016.82
7.1.60.0130.01019.50
7.1.50.0110.01416.83
7.1.00.0100.07022.38
7.0.200.0180.00714.91
7.0.60.0230.06719.92
7.0.50.0070.05717.86
7.0.40.0100.04720.13
7.0.30.0270.06320.34
7.0.20.0370.05720.33
7.0.10.0300.07320.05
7.0.00.0070.05320.30
5.6.280.0000.07021.08
5.6.210.0030.08720.57
5.6.200.0130.07718.23
5.6.190.0100.08020.62
5.6.180.3570.03720.60
5.6.170.0230.04020.39
5.6.160.0170.07720.43
5.6.150.0070.08018.29
5.6.140.0000.04318.28
5.6.130.0030.05718.14
5.6.120.0130.04721.09
5.6.110.0030.04321.00
5.6.100.0100.08020.98
5.6.90.0070.08720.93
5.6.80.0030.07320.39
5.5.350.0230.07320.43
5.5.340.0130.07017.98
5.5.330.0130.05320.40
5.5.320.0170.06320.57
5.5.310.0330.07320.41
5.5.300.0130.07717.95
5.5.290.0100.08018.02
5.5.280.0000.04320.69
5.5.270.0200.07020.65
5.5.260.0270.06020.65
5.5.250.0100.07720.59
5.5.240.0100.04320.33
5.4.450.0270.06319.58
5.4.440.0270.06019.46
5.4.430.0270.07319.19
5.4.420.0230.06019.47
5.4.410.0300.05319.47
5.4.400.0470.05019.29
5.4.390.0200.06019.28
5.4.380.0170.05719.06
5.4.370.0170.06719.05
5.4.360.0230.06319.28
5.4.350.0270.05319.14
5.4.340.0430.07019.23
5.4.320.0230.07719.14
5.4.310.0200.05019.38
5.4.300.0300.05319.30
5.4.290.0270.05719.05
5.4.280.0230.05319.14
5.4.270.0230.05719.05
5.4.260.0170.05719.01
5.4.250.0170.06318.98
5.4.240.0170.06019.23
5.4.230.0270.06019.00
5.4.220.0370.04319.05
5.4.210.0200.07319.25
5.4.200.0330.05319.28
5.4.190.0330.05018.86
5.4.180.0270.07319.11
5.4.170.0300.04719.00
5.4.160.0370.04719.21
5.4.150.0230.05719.01
5.4.140.0300.05716.57
5.4.130.0200.06016.38
5.4.120.0230.05016.44
5.4.110.0300.04316.48
5.4.100.0300.04316.69
5.4.90.0270.04316.50
5.4.80.0370.04016.55
5.4.70.0270.04316.22
5.4.60.0130.05316.58
5.4.50.0170.06016.39
5.4.40.0200.04716.48
5.4.30.0130.05716.16
5.4.20.0170.06016.63
5.4.10.0100.06316.32
5.4.00.0170.07016.02

preferences:
59.23 ms | 401 KiB | 5 Q