3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Concrete { public function foo(); } class Bar { } abstract class AbsConcrete implements Concrete { abstract public function foo(); } class Customer extends AbsConcrete { public function init() { echo "init\n"; } public function foo( Bar $me = null, Bar $lala = null ) { echo "foo\n"; } } $customer = new Customer; $customer->init(); $customer->foo( new Bar, new 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.0100.01018.71
8.3.30.0070.00720.25
8.3.20.0060.00318.57
8.3.10.0000.00820.96
8.3.00.0050.00323.66
8.2.170.0070.00722.96
8.2.160.0070.00720.22
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0020.00526.16
8.2.120.0060.00319.96
8.2.110.0060.00319.31
8.2.100.0110.00017.72
8.2.90.0040.00419.23
8.2.80.0080.00019.40
8.2.70.0080.00017.63
8.2.60.0060.00317.88
8.2.50.0040.00418.07
8.2.40.0030.00618.02
8.2.30.0040.00419.36
8.2.20.0040.00417.65
8.2.10.0050.00317.69
8.2.00.0040.00417.70
8.1.270.0080.00023.99
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0090.00022.54
8.1.230.0090.00320.91
8.1.220.0090.00018.77
8.1.210.0000.00818.97
8.1.200.0100.00017.23
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0040.00418.53
8.1.160.0040.00418.79
8.1.150.0000.00718.65
8.1.140.0000.00817.46
8.1.130.0000.00717.79
8.1.120.0000.01117.47
8.1.110.0000.00717.44
8.1.100.0050.00217.51
8.1.90.0030.00517.46
8.1.80.0050.00317.36
8.1.70.0030.00317.47
8.1.60.0060.00317.62
8.1.50.0040.00417.43
8.1.40.0050.00517.43
8.1.30.0000.00817.58
8.1.20.0080.00017.64
8.1.10.0000.00717.62
8.1.00.0030.00617.35
8.0.300.0040.00419.78
8.0.290.0040.00417.02
8.0.280.0000.00718.39
8.0.270.0040.00417.23
8.0.260.0030.00316.74
8.0.250.0000.00816.94
8.0.240.0030.00516.95
8.0.230.0070.00016.92
8.0.220.0000.00716.92
8.0.210.0030.00316.92
8.0.200.0000.00616.96
8.0.190.0030.00616.91
8.0.180.0080.00016.98
8.0.170.0040.00416.81
8.0.160.0030.00416.93
8.0.150.0030.00316.80
8.0.140.0040.00316.82
8.0.130.0030.00313.32
8.0.120.0030.00516.86
8.0.110.0040.00416.82
8.0.100.0040.00416.84
8.0.90.0050.00316.96
8.0.80.0090.00616.93
8.0.70.0000.00716.77
8.0.60.0040.00416.97
8.0.50.0030.00616.73
8.0.30.0090.00916.90
8.0.20.0140.00317.40
8.0.10.0040.00416.96
8.0.00.0050.01416.82
7.4.330.0000.00516.72
7.4.320.0030.00316.64
7.4.300.0030.00316.52
7.4.290.0070.00016.60
7.4.280.0040.00416.48
7.4.270.0070.00016.50
7.4.260.0030.00313.35
7.4.250.0040.00416.43
7.4.240.0000.00716.59
7.4.230.0070.00016.30
7.4.220.0110.00716.58
7.4.210.0080.00616.55
7.4.200.0000.00716.70
7.4.190.0030.00316.69
7.4.160.0040.01616.52
7.4.150.0110.00717.40
7.4.140.0080.00917.86
7.4.130.0040.01316.43
7.4.120.0100.00716.50
7.4.110.0100.00616.53
7.4.100.0070.01016.43
7.4.90.0110.00716.56
7.4.80.0030.01319.39
7.4.70.0100.00716.50
7.4.60.0120.00616.50
7.4.50.0000.00716.50
7.4.40.0090.00622.77
7.4.30.0120.00616.55
7.4.00.0090.00914.95
7.3.330.0020.00313.17
7.3.320.0000.00513.27
7.3.310.0030.00316.21
7.3.300.0070.00016.26
7.3.290.0090.00616.36
7.3.280.0040.01116.30
7.3.270.0060.01117.40
7.3.260.0090.01118.24
7.3.250.0140.00316.39
7.3.240.0070.01316.32
7.3.230.0110.00616.58
7.3.210.0100.00716.53
7.3.200.0160.00819.39
7.3.190.0130.00616.43
7.3.180.0030.01316.24
7.3.170.0080.00816.33
7.3.160.0070.01316.26
7.3.120.0080.00914.72
7.3.110.0060.01315.00
7.3.100.0100.00714.76
7.3.90.0000.00814.82
7.3.80.0030.00714.89
7.3.70.0060.00914.85
7.3.60.0110.00314.59
7.3.50.0000.01314.75
7.3.40.0070.01114.73
7.3.30.0030.00714.63
7.3.20.0030.00916.59
7.3.10.0100.00716.41
7.3.00.0000.01216.62
7.2.330.0030.01316.73
7.2.320.0140.00916.72
7.2.310.0000.01716.67
7.2.300.0000.01716.51
7.2.290.0160.00016.34
7.2.250.0060.01215.23
7.2.240.0120.00615.27
7.2.230.0060.01014.77
7.2.220.0060.01214.94
7.2.210.0060.00915.29
7.2.200.0030.01014.78
7.2.190.0070.00314.94
7.2.180.0030.01015.15
7.2.170.0000.01015.13
7.2.160.0120.00315.05
7.2.150.0070.00316.93
7.2.140.0040.00716.86
7.2.130.0100.00316.88
7.2.120.0000.01316.98
7.2.110.0070.00816.70
7.2.100.0090.00616.63
7.2.90.0040.01216.78
7.2.80.0240.00516.76
7.2.70.0220.00617.11
7.2.60.0160.00816.75
7.2.50.0100.01216.84
7.2.40.0110.00916.90
7.2.30.0110.01116.75
7.2.20.0140.00416.89
7.2.10.0100.00516.96
7.2.00.0100.00617.63
7.1.330.0080.00815.86
7.1.320.0100.00015.73
7.1.310.0150.00015.96
7.1.300.0000.00915.55
7.1.290.0000.01215.89
7.1.280.0070.00315.69
7.1.270.0030.01315.66
7.1.260.0040.01115.71
7.1.250.0000.01115.70
7.1.240.0040.00715.80
7.1.230.0090.00715.69
7.1.220.0110.00415.66
7.1.210.0120.00215.79
7.1.200.0060.00715.72
7.1.190.0070.00715.68
7.1.180.0090.00415.59
7.1.170.0100.01015.71
7.1.160.0060.00815.70
7.1.150.0100.01015.54
7.1.140.0150.00815.74
7.1.130.0050.01015.70
7.1.120.0040.01015.61
7.1.110.0090.00515.79
7.1.100.0110.00516.28
7.1.90.0110.00815.85
7.1.80.0100.00715.65
7.1.70.0110.00516.12
7.1.60.0130.00716.93
7.1.50.0190.00816.20
7.1.40.0110.00815.78
7.1.30.0500.00915.81
7.1.20.0150.00315.85
7.1.10.0250.00715.59
7.1.00.0090.02917.88
7.0.330.0140.00015.33
7.0.320.0090.00015.11
7.0.310.0210.00715.22
7.0.300.0130.00715.19
7.0.290.0070.00915.37
7.0.280.0150.00115.21
7.0.270.0070.00615.30
7.0.260.0160.00815.27
7.0.250.0110.00315.42
7.0.240.0080.00515.39
7.0.230.0110.00615.25
7.0.220.0100.00515.30
7.0.210.0220.00615.29
7.0.200.0050.00715.59
7.0.190.0120.00815.14
7.0.180.0090.00515.40
7.0.170.0080.00615.30
7.0.160.0060.00915.41
7.0.150.0090.00615.30
7.0.140.0080.02817.63
7.0.130.0040.01015.38
7.0.120.0050.00815.40
7.0.110.0070.00615.42
7.0.100.0150.02716.89
7.0.90.0210.02716.81
7.0.80.0070.02816.87
7.0.70.0160.02216.90
7.0.60.0100.02516.85
7.0.50.0140.03017.04
7.0.40.0130.01815.60
7.0.30.0070.02115.71
7.0.20.0060.02015.55
7.0.10.0100.01515.65
7.0.00.0090.02715.54
5.6.400.0040.01214.12
5.6.390.0070.00414.40
5.6.380.0040.00714.37
5.6.370.0100.00514.13
5.6.360.0090.00514.30
5.6.350.0090.00414.38
5.6.340.0080.00814.28
5.6.330.0110.00614.45
5.6.320.0050.00914.32
5.6.310.0080.00414.32
5.6.300.0070.00714.27
5.6.290.0080.00514.39
5.6.280.0080.02716.43
5.6.270.0080.00814.26
5.6.260.0070.00914.19
5.6.250.0090.02416.53
5.6.240.0080.02416.40
5.6.230.0050.02116.44
5.6.220.0060.01916.49
5.6.210.0070.02616.25
5.6.200.0090.01916.56
5.6.190.0050.02116.50
5.6.180.0070.03116.53
5.6.170.0090.02616.47
5.6.160.0100.03116.53
5.6.150.0080.01816.63
5.6.140.0070.03216.57
5.6.130.0070.03416.64
5.6.120.0100.02716.49
5.6.110.0080.01816.54
5.6.100.0070.01616.56
5.6.90.0060.03416.63
5.6.80.0090.02716.38
5.6.70.0040.03516.17
5.6.60.0100.02816.36
5.6.50.0060.03416.34
5.6.40.0050.02416.20
5.6.30.0090.03116.20
5.6.20.0050.02816.26
5.6.10.0100.02916.18
5.6.00.0060.02416.31
5.5.380.0060.02715.23
5.5.370.0010.02015.22
5.5.360.0020.02415.38
5.5.350.0090.02315.19
5.5.340.0040.03115.46
5.5.330.0060.02115.50
5.5.320.0080.03015.39
5.5.310.0060.03115.29
5.5.300.0040.03015.34
5.5.290.0060.02515.38
5.5.280.0040.01815.22
5.5.270.0060.01815.44
5.5.260.0090.02615.51
5.5.250.0020.03115.45
5.5.240.0100.02115.17
5.5.230.0040.02115.17
5.5.220.0060.01715.16
5.5.210.0060.01315.13
5.5.200.0030.02215.15
5.5.190.0080.02615.07
5.5.180.0090.01615.04
5.5.170.0090.00514.22
5.5.160.0040.01915.06
5.5.150.0060.01715.06
5.5.140.0070.02515.12
5.5.130.0060.01815.04
5.5.120.0060.03015.18
5.5.110.0080.01415.15
5.5.100.0090.03115.07
5.5.90.0060.02314.90
5.5.80.0050.02015.26
5.5.70.0050.03015.24
5.5.60.0060.01815.17
5.5.50.0070.02315.23
5.5.40.0110.01815.20
5.5.30.0060.02815.14
5.5.20.0080.01415.16
5.5.10.0060.01815.08
5.5.00.0050.02015.04
5.4.450.0060.02314.52
5.4.440.0100.02414.42
5.4.430.0030.01814.41
5.4.420.0080.02514.36
5.4.410.0040.01514.28
5.4.400.0060.02714.31
5.4.390.0020.02114.18
5.4.380.0060.02014.31
5.4.370.0050.01514.30
5.4.360.0060.02514.29
5.4.350.0050.02714.17
5.4.340.0070.02014.32
5.4.330.0070.00311.81
5.4.320.0050.01614.21
5.4.310.0070.02614.24
5.4.300.0070.02514.22
5.4.290.0080.01514.18
5.4.280.0060.02914.26
5.4.270.0070.01414.20
5.4.260.0030.01614.38
5.4.250.0030.01614.31
5.4.240.0040.02814.28
5.4.230.0060.01914.32
5.4.220.0060.02614.18
5.4.210.0060.02114.28
5.4.200.0030.01914.26
5.4.190.0040.02514.15
5.4.180.0040.01914.21
5.4.170.0050.02114.27
5.4.160.0070.02714.25
5.4.150.0030.02614.26
5.4.140.0070.02513.40
5.4.130.0000.02613.38
5.4.120.0040.01513.50
5.4.110.0050.01813.40
5.4.100.0050.01713.34
5.4.90.0050.01713.42
5.4.80.0030.01713.42
5.4.70.0050.01913.41
5.4.60.0080.02013.40
5.4.50.0060.02113.41
5.4.40.0050.01913.37
5.4.30.0070.01913.39
5.4.20.0070.02613.35
5.4.10.0040.01613.29
5.4.00.0010.01613.20
5.3.290.0060.01512.70
5.3.280.0050.02612.57
5.3.270.0060.01612.62
5.3.260.0060.02612.66
5.3.250.0090.01612.62
5.3.240.0070.02512.58
5.3.230.0030.01712.58
5.3.220.0070.02012.55
5.3.210.0090.02712.58
5.3.200.0040.02312.58
5.3.190.0070.02412.60
5.3.180.0010.02012.55
5.3.170.0060.01712.65
5.3.160.0050.02512.59
5.3.150.0050.02812.66
5.3.140.0060.02212.53
5.3.130.0100.01012.49
5.3.120.0100.02512.60
5.3.110.0070.01412.60
5.3.100.0090.01112.43
5.3.90.0060.02912.43
5.3.80.0030.01812.37
5.3.70.0040.02112.31
5.3.60.0040.01612.34
5.3.50.0060.01212.29
5.3.40.0080.02412.31
5.3.30.0070.01512.31
5.3.20.0080.01312.17
5.3.10.0040.01512.15
5.3.00.0030.01612.13
5.2.170.0060.03310.13
5.2.160.0050.02210.27
5.2.150.0050.02010.31
5.2.140.0060.01510.23
5.2.130.0070.01310.28
5.2.120.0030.01810.25
5.2.110.0040.01710.22
5.2.100.0050.01410.22
5.2.90.0050.01510.23
5.2.80.0010.02110.22
5.2.70.0020.01810.09
5.2.60.0020.01810.14
5.2.50.0060.01510.09
5.2.40.0040.01510.07
5.2.30.0070.01610.16
5.2.20.0000.01710.04
5.2.10.0020.01810.07
5.2.00.0040.01710.03
5.1.60.0030.0119.91
5.1.50.0050.0129.91
5.1.40.0020.0169.91
5.1.30.0070.0289.91
5.1.20.0030.0129.91
5.1.10.0030.0159.91
5.1.00.0050.0159.91
5.0.50.0070.0089.91
5.0.40.0030.0169.91
5.0.30.0030.0199.91
5.0.20.0060.0189.91
5.0.10.0040.0159.91
5.0.00.0020.0329.91
4.4.90.0020.0089.91
4.4.80.0020.0089.91
4.4.70.0000.0119.91
4.4.60.0080.0039.91
4.4.50.0030.0099.91
4.4.40.0020.0129.91
4.4.30.0040.0069.91
4.4.20.0030.0089.91
4.4.10.0050.0059.91
4.4.00.0000.0159.91
4.3.110.0000.0099.91
4.3.100.0010.0089.91
4.3.90.0020.0139.91
4.3.80.0000.0179.91
4.3.70.0020.0089.91
4.3.60.0010.0109.91
4.3.50.0020.0089.91
4.3.40.0060.0109.91
4.3.30.0040.0089.91
4.3.20.0030.0079.91
4.3.10.0000.0119.91
4.3.00.0040.0079.91

preferences:
36.91 ms | 400 KiB | 5 Q