3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Standalone { public function nonstatic(){} public function doSomething() {} } class Base { public function doSomething() {} } class Vendor extends Base { public function doSomething() { // do something.. // call parent (Base::doSomething()) parent::doSomething(); // do something more } } class Local extends Vendor { public function doSomething() { // do something // intention: call grand-parent (Base::doSomething()) Base::doSomething(); // this will call Vendor::doSomething() :( // do something more } } $local = new Local; $local->doSomething();

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.0070.01116.58
8.3.60.0090.00616.63
8.3.50.0170.01116.34
8.3.40.0110.01118.71
8.3.30.0060.00918.59
8.3.20.0000.00818.29
8.3.10.0040.01120.36
8.3.00.0030.00619.13
8.2.180.0090.00916.50
8.2.170.0110.00322.96
8.2.160.0130.00321.04
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0120.00326.16
8.2.120.0060.00319.07
8.2.110.0070.00320.92
8.2.100.0060.00617.78
8.2.90.0030.00519.39
8.2.80.0020.00519.46
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00818.15
8.2.30.0040.00418.00
8.2.20.0040.00417.59
8.2.10.0040.00417.48
8.2.00.0030.00717.62
8.1.280.0120.00325.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01022.53
8.1.230.0070.00420.88
8.1.220.0040.00417.74
8.1.210.0000.00818.98
8.1.200.0060.00317.25
8.1.190.0040.00417.53
8.1.180.0080.00018.10
8.1.170.0080.00018.59
8.1.160.0030.00518.77
8.1.150.0000.00818.57
8.1.140.0030.00717.45
8.1.130.0030.00317.82
8.1.120.0070.00017.31
8.1.110.0080.00017.27
8.1.100.0000.00817.38
8.1.90.0000.00817.28
8.1.80.0000.00817.29
8.1.70.0030.00317.34
8.1.60.0030.00517.54
8.1.50.0030.00517.39
8.1.40.0040.00417.40
8.1.30.0000.00717.64
8.1.20.0040.00417.54
8.1.10.0000.00817.56
8.1.00.0030.00517.34
8.0.300.0000.00819.94
8.0.290.0070.00016.63
8.0.280.0000.00718.32
8.0.270.0070.00017.23
8.0.260.0000.00616.82
8.0.250.0040.00416.93
8.0.240.0000.00716.93
8.0.230.0030.00316.91
8.0.220.0000.00716.88
8.0.210.0070.00016.72
8.0.200.0030.00316.89
8.0.190.0030.00316.89
8.0.180.0000.00816.91
8.0.170.0000.01016.87
8.0.160.0070.00016.79
8.0.150.0080.00016.60
8.0.140.0080.00016.80
8.0.130.0030.00313.30
8.0.120.0040.00416.74
8.0.110.0070.00016.66
8.0.100.0030.00516.70
8.0.90.0000.00716.89
8.0.80.0000.01516.83
8.0.70.0050.00316.86
8.0.60.0070.00016.71
8.0.50.0040.00416.71
8.0.30.0090.01117.18
8.0.20.0170.00416.97
8.0.10.0030.00516.81
8.0.00.0110.01016.85
7.4.330.0000.00512.80
7.4.320.0060.00316.45
7.4.300.0080.00016.51
7.4.290.0070.00016.45
7.4.280.0040.00416.65
7.4.270.0030.00316.61
7.4.260.0030.00313.39
7.4.250.0000.00816.39
7.4.240.0050.00316.59
7.4.230.0000.00716.48
7.4.220.0080.01216.48
7.4.210.0090.00516.51
7.4.200.0000.00716.40
7.4.190.0000.00716.47
7.4.160.0080.00816.57
7.4.150.0120.00616.56
7.4.140.0100.00816.39
7.4.130.0140.00516.36
7.4.120.0110.00616.51
7.4.110.0140.00316.59
7.4.100.0110.00716.72
7.4.90.0070.01116.32
7.4.80.0000.02219.39
7.4.70.0000.01616.52
7.4.60.0030.01216.50
7.4.50.0000.00916.30
7.4.40.0030.01216.34
7.4.30.0150.00616.26
7.4.10.0040.01514.87
7.4.00.0050.01014.84
7.3.330.0060.00013.00
7.3.320.0030.00313.07
7.3.310.0070.00016.18
7.3.300.0000.00716.16
7.3.290.0130.00716.24
7.3.280.0070.01016.21
7.3.270.0060.01016.41
7.3.260.0070.01016.24
7.3.250.0150.00616.34
7.3.240.0160.00016.18
7.3.230.0150.00316.30
7.3.210.0100.00716.32
7.3.200.0070.01016.57
7.3.190.0130.00916.13
7.3.180.0030.01316.36
7.3.170.0110.01016.18
7.3.160.0080.00816.25
7.3.130.0030.01214.69
7.3.120.0080.00814.88
7.3.110.0100.00514.73
7.3.100.0060.01114.67
7.3.90.0050.00914.76
7.3.80.0040.00714.79
7.3.70.0020.01014.55
7.3.60.0080.00614.73
7.3.50.0030.00914.68
7.3.40.0090.00414.60
7.3.30.0050.00714.69
7.3.20.0040.01116.53
7.3.10.0040.00816.39
7.3.00.0070.00816.54
7.2.330.0090.00916.66
7.2.320.0140.00916.70
7.2.310.0070.01616.60
7.2.300.0160.00616.48
7.2.290.0070.01016.66
7.2.260.0080.01115.18
7.2.250.0130.00514.99
7.2.240.0070.01015.04
7.2.230.0090.00714.66
7.2.220.0060.00914.93
7.2.210.0070.00815.07
7.2.200.0050.00714.79
7.2.190.0060.00815.00
7.2.180.0070.00814.83
7.2.170.0070.00514.88
7.2.160.0070.00514.75
7.2.150.0050.00816.84
7.2.140.0060.00316.87
7.2.130.0070.00816.78
7.2.120.0040.01216.86
7.2.110.0070.00416.65
7.2.100.0040.01016.75
7.2.90.0060.00916.90
7.2.80.0060.00816.82
7.2.70.0050.00816.75
7.2.60.0050.00916.64
7.2.50.0070.00716.75
7.2.40.0050.00716.68
7.2.30.0070.00816.75
7.2.20.0080.00616.66
7.2.10.0050.00716.77
7.2.00.0060.00617.26
7.1.330.0040.01115.58
7.1.320.0090.00415.69
7.1.310.0070.00615.50
7.1.300.0030.00915.66
7.1.290.0070.00715.50
7.1.280.0040.00715.58
7.1.270.0050.00915.59
7.1.260.0050.00615.68
7.1.250.0050.00715.53
7.1.240.0060.00815.45
7.1.230.0070.00715.37
7.1.220.0070.00515.63
7.1.210.0070.00615.74
7.1.200.0060.00815.54
7.1.190.0070.00415.62
7.1.180.0050.00715.47
7.1.170.0050.00815.47
7.1.160.0060.00415.52
7.1.150.0060.00715.56
7.1.140.0020.01215.63
7.1.130.0050.00715.60
7.1.120.0030.00815.54
7.1.110.0080.00315.70
7.1.100.0030.01116.49
7.1.90.0040.00615.54
7.1.80.0060.00815.64
7.1.70.0040.00716.09
7.1.60.0080.00816.94
7.1.50.0050.01016.03
7.1.40.0040.01115.57
7.1.30.0070.00715.60
7.1.20.0130.00115.52
7.1.10.0070.00515.51
7.1.00.0070.02217.92
7.0.330.0060.00915.21
7.0.320.0050.00915.31
7.0.310.0030.01015.19
7.0.300.0080.00515.20
7.0.290.0080.00615.12
7.0.280.0100.00515.14
7.0.270.0030.00815.36
7.0.260.0030.00915.20
7.0.250.0050.00615.25
7.0.240.0050.00815.18
7.0.230.0050.00915.29
7.0.220.0010.00915.27
7.0.210.0050.00815.38
7.0.200.0060.00515.03
7.0.190.0060.00615.31
7.0.180.0050.00615.39
7.0.170.0080.00315.14
7.0.160.0080.00215.04
7.0.150.0030.01015.21
7.0.140.0050.02717.50
7.0.130.0050.00715.44
7.0.120.0070.02617.54
7.0.110.0060.00915.08
7.0.100.0080.00715.21
7.0.90.0020.01015.26
7.0.80.0080.00515.30
7.0.70.0040.01015.40
7.0.60.0040.03417.38
7.0.50.0050.03316.20
7.0.40.0020.03715.61
7.0.30.0080.03215.47
7.0.20.0090.02415.64
7.0.10.0070.03115.46
7.0.00.0040.02115.56
5.6.400.0050.00514.13
5.6.390.0050.00514.14
5.6.380.0050.00714.36
5.6.370.0080.00614.15
5.6.360.0070.00514.31
5.6.350.0040.00914.15
5.6.340.0040.01014.28
5.6.330.0000.01514.27
5.6.320.0050.00714.13
5.6.310.0040.01114.00
5.6.300.0030.01014.36
5.6.290.0050.00714.33
5.6.280.0070.02916.65
5.6.270.0080.00514.24
5.6.260.0040.00914.47
5.6.250.0060.00614.03
5.6.240.0100.00314.31
5.6.230.0070.00814.30
5.6.220.0090.00514.10
5.6.210.0100.01816.35
5.6.200.0070.01815.65
5.6.190.0020.03116.51
5.6.180.0120.02116.34
5.6.170.0140.02416.38
5.6.160.0020.03716.42
5.6.150.0060.02915.49
5.6.140.0090.02115.78
5.6.130.0040.01815.72
5.6.120.0060.01616.55
5.6.110.0030.03616.54
5.6.100.0050.03316.42
5.6.90.0080.02116.41
5.6.80.0050.01916.18
5.6.70.0070.00714.23
5.6.60.0040.01014.12
5.6.50.0090.00514.00
5.6.40.0040.00614.33
5.6.30.0020.00814.18
5.6.20.0030.00814.13
5.6.10.0080.00614.28
5.6.00.0060.00414.02
5.5.380.0010.00712.64
5.5.370.0030.00812.79
5.5.360.0020.01112.70
5.5.350.0040.03315.23
5.5.340.0020.01914.39
5.5.330.0080.02115.17
5.5.320.0170.02115.02
5.5.310.0130.03215.19
5.5.300.0040.02714.32
5.5.290.0030.02314.34
5.5.280.0090.03015.29
5.5.270.0110.01715.27
5.5.260.0070.02815.43
5.5.250.0070.02715.37
5.5.240.0090.02415.01
5.5.230.0070.00612.46
5.5.220.0050.00712.60
5.5.210.0070.00812.57
5.5.200.0090.00312.51
5.5.190.0050.00812.38
5.5.180.0040.00712.50
5.5.170.0060.00612.43
5.5.160.0030.00812.34
5.5.150.0030.00912.49
5.5.140.0040.01012.58
5.5.130.0060.00612.62
5.5.120.0040.00612.65
5.5.110.0050.00712.64
5.5.100.0040.00712.54
5.5.90.0010.00912.60
5.5.80.0030.00712.69
5.5.70.0060.00812.49
5.5.60.0050.00712.36
5.5.50.0060.00412.59
5.5.40.0050.00812.52
5.5.30.0050.00812.56
5.5.20.0020.00712.55
5.5.10.0020.01112.41
5.5.00.0090.00412.51
5.4.450.0090.02913.56
5.4.440.0040.02713.58
5.4.430.0040.03213.83
5.4.420.0070.01913.71
5.4.410.0040.02413.60
5.4.400.0080.01713.50
5.4.390.0040.03113.52
5.4.380.0010.03413.67
5.4.370.0070.01513.50
5.4.360.0060.02013.69
5.4.350.0030.03213.46
5.4.340.0050.02913.70
5.4.330.0000.00710.84
5.4.320.0040.01713.67
5.4.310.0040.03113.65
5.4.300.0070.03013.63
5.4.290.0070.02313.64
5.4.280.0040.03213.59
5.4.270.0050.02613.61
5.4.260.0110.02513.53
5.4.250.0030.02713.51
5.4.240.0060.02113.49
5.4.230.0060.02613.55
5.4.220.0040.02713.58
5.4.210.0060.02913.58
5.4.200.0070.01913.57
5.4.190.0060.03013.53
5.4.180.0020.02413.51
5.4.170.0050.03313.46
5.4.160.0050.02513.60
5.4.150.0050.02613.46
5.4.140.0060.02912.78
5.4.130.0030.02812.71
5.4.120.0060.02612.78
5.4.110.0070.02212.63
5.4.100.0010.01912.84
5.4.90.0050.01512.76
5.4.80.0090.01912.72
5.4.70.0050.02412.67
5.4.60.0040.02412.76
5.4.50.0030.02612.67
5.4.40.0020.02912.75
5.4.30.0050.02712.79
5.4.20.0080.02212.61
5.4.10.0030.02412.69
5.4.00.0070.01312.40
5.3.290.0030.02612.08
5.3.280.0030.02311.75
5.3.270.0060.02511.91
5.3.260.0070.02811.91
5.3.250.0050.02811.89
5.3.240.0050.02611.78
5.3.230.0000.01911.69
5.3.220.0090.02711.83
5.3.210.0020.01611.78
5.3.200.0030.02811.72
5.3.190.0070.01511.83
5.3.180.0030.02911.94
5.3.170.0050.02711.86
5.3.160.0040.01512.00
5.3.150.0060.02611.95
5.3.140.0070.02111.90
5.3.130.0060.02111.91
5.3.120.0030.03111.81
5.3.110.0020.02011.90
5.3.100.0020.02311.68
5.3.90.0020.03111.68
5.3.80.0030.01711.59
5.3.70.0020.02311.57
5.3.60.0030.02511.72
5.3.50.0030.02111.58
5.3.40.0080.01611.49
5.3.30.0020.01911.67
5.3.20.0050.02411.58
5.3.10.0070.02511.38
5.3.00.0070.01411.29
5.2.170.0030.02510.35
5.2.160.0030.03210.20
5.2.150.0000.03610.40
5.2.140.0020.01810.32
5.2.130.0020.01910.19
5.2.120.0030.01810.37
5.2.110.0030.03410.18
5.2.100.0020.03610.34
5.2.90.0070.02510.25
5.2.80.0110.01210.17
5.2.70.0030.03210.09
5.2.60.0030.03310.16
5.2.50.0050.03210.27
5.2.40.0070.02810.26
5.2.30.0060.02110.21
5.2.20.0030.01910.12
5.2.10.0030.0329.92
5.2.00.0030.0269.79
5.1.60.0000.0259.23
5.1.50.0070.0259.11
5.1.40.0030.0269.23
5.1.30.0050.0179.49
5.1.20.0040.0279.48
5.1.10.0030.0229.28
5.1.00.0030.0209.28
5.0.50.0030.0138.43
5.0.40.0000.0218.36
5.0.30.0000.0388.30
5.0.20.0030.0258.30
5.0.10.0070.0208.30
5.0.00.0020.0238.30
4.4.90.0020.0208.30
4.4.80.0000.0148.30
4.4.70.0000.0228.30
4.4.60.0010.0168.30
4.4.50.0000.0228.30
4.4.40.0000.0188.30
4.4.30.0050.0138.30
4.4.20.0040.0188.30
4.4.10.0030.0158.30
4.4.00.0070.0208.30
4.3.110.0000.0178.30
4.3.100.0060.0138.30
4.3.90.0000.0208.30
4.3.80.0000.0178.30
4.3.70.0030.0178.30
4.3.60.0050.0088.30
4.3.50.0000.0108.30
4.3.40.0000.0198.30
4.3.30.0030.0088.30
4.3.20.0020.0238.30
4.3.10.0000.0228.30
4.3.00.0000.0218.30

preferences:
44.4 ms | 401 KiB | 5 Q