3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public function foo($t){ return __CLASS__; } } class Foo extends Bar{ public function foo($t) { return $t::foo($t); } } class Qux extends Foo { public function foo($t){ return __CLASS__; } } var_dump(Foo::foo('parent')); var_dump(Foo::foo('static'));

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.0070.00718.18
8.3.50.0090.01222.77
8.3.40.0030.01018.65
8.3.30.0100.00318.95
8.3.20.0040.00420.13
8.3.10.0040.00423.48
8.3.00.0060.00317.63
8.2.180.0060.00916.75
8.2.170.0090.00622.96
8.2.160.0070.00720.53
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00720.96
8.2.110.0030.00921.07
8.2.100.0040.00817.78
8.2.90.0040.00717.63
8.2.80.0040.00417.97
8.2.70.0060.00317.79
8.2.60.0000.00818.09
8.2.50.0040.00418.10
8.2.40.0000.00718.03
8.2.30.0040.00418.04
8.2.20.0000.00717.55
8.2.10.0000.00717.95
8.2.00.0000.00717.60
8.1.280.0120.00325.92
8.1.270.0030.00523.96
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00320.96
8.1.230.0060.00617.61
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0100.00017.23
8.1.190.0080.00017.11
8.1.180.0000.00818.10
8.1.170.0040.00420.07
8.1.160.0040.00421.84
8.1.150.0040.00418.64
8.1.140.0070.00017.42
8.1.130.0060.00017.66
8.1.120.0030.00517.37
8.1.110.0000.00817.33
8.1.100.0040.00417.29
8.1.90.0040.00417.37
8.1.80.0050.00217.31
8.1.70.0030.00317.32
8.1.60.0030.00617.51
8.1.50.0050.00317.51
8.1.40.0070.00317.45
8.1.30.0000.00817.40
8.1.20.0040.00417.46
8.1.10.0000.00817.53
8.1.00.0040.00417.45
8.0.300.0090.00018.77
8.0.290.0050.00216.63
8.0.280.0030.00318.33
8.0.270.0050.00217.23
8.0.260.0060.00017.06
8.0.250.0030.00316.85
8.0.240.0030.00516.96
8.0.230.0030.00316.90
8.0.220.0000.00716.87
8.0.210.0070.00016.89
8.0.200.0000.00616.93
8.0.190.0030.00316.89
8.0.180.0000.00716.80
8.0.170.0040.00416.89
8.0.160.0070.00016.85
8.0.150.0030.00316.83
8.0.140.0040.00416.87
8.0.130.0000.00613.27
8.0.120.0040.00416.73
8.0.110.0030.00316.90
8.0.100.0030.00516.71
8.0.90.0040.00416.73
8.0.80.0060.00916.85
8.0.70.0040.00416.77
8.0.60.0000.00716.73
8.0.50.0030.00516.66
8.0.30.0140.01117.15
8.0.20.0100.01017.40
8.0.10.0040.00416.91
8.0.00.0080.01116.83
7.4.330.0030.00315.00
7.4.320.0020.00516.23
7.4.300.0000.00616.61
7.4.290.0080.00016.46
7.4.280.0040.00416.57
7.4.270.0030.00316.50
7.4.260.0000.00816.41
7.4.250.0000.00716.38
7.4.240.0020.00616.46
7.4.230.0070.00016.60
7.4.220.0030.02316.60
7.4.210.0000.01516.52
7.4.200.0040.00416.60
7.4.160.0100.00716.61
7.4.150.0080.01117.40
7.4.140.0080.00817.86
7.4.130.0150.00216.44
7.4.120.0130.00416.41
7.4.110.0150.00916.45
7.4.100.0000.01716.48
7.4.90.0140.00316.51
7.4.80.0090.00819.39
7.4.70.0080.01116.56
7.4.60.0070.01016.42
7.4.50.0040.00416.68
7.4.40.0070.01416.50
7.4.30.0080.00816.54
7.4.00.0040.01214.77
7.3.330.0030.00313.20
7.3.320.0000.00613.17
7.3.310.0000.00616.35
7.3.300.0030.00316.41
7.3.290.0070.00716.36
7.3.280.0090.00916.41
7.3.270.0100.01017.40
7.3.260.0100.00816.27
7.3.250.0080.00916.39
7.3.240.0090.00916.30
7.3.230.0130.00316.60
7.3.210.0170.00016.32
7.3.200.0030.01319.39
7.3.190.0070.01316.27
7.3.180.0090.00616.39
7.3.170.0120.01116.47
7.3.160.0130.00916.53
7.2.330.0030.01616.55
7.2.320.0090.01316.62
7.2.310.0080.01016.48
7.2.300.0170.00016.26
7.2.290.0060.00916.62
7.2.60.0040.01116.77
7.2.00.0040.01119.15
7.1.200.0000.00915.48
7.1.100.0070.00418.09
7.1.70.0070.01016.64
7.1.60.0100.01319.40
7.1.50.0070.01516.95
7.1.00.0030.07322.48
7.0.200.0050.00516.82
7.0.140.0030.07322.12
7.0.60.0070.07319.92
7.0.50.0070.07317.84
7.0.40.0130.04720.24
7.0.30.0470.07020.18
7.0.20.0430.04020.10
7.0.10.0030.04320.07
7.0.00.0030.07020.07
5.6.280.0000.07720.79
5.6.210.0070.07720.54
5.6.200.0130.07718.25
5.6.190.0030.04320.73
5.6.180.0230.05720.63
5.6.170.0370.07020.56
5.6.160.0030.04720.54
5.6.150.0070.04018.27
5.6.140.0070.07718.21
5.6.130.0130.08018.27
5.6.120.0100.08021.11
5.6.110.0130.07321.12
5.6.100.0070.04020.98
5.6.90.0000.08720.98
5.6.80.0030.04020.29
5.6.70.4500.04320.38
5.5.350.0030.08720.39
5.5.340.0070.04317.98
5.5.330.0030.04020.21
5.5.320.0330.07020.42
5.5.310.0330.07320.43
5.5.300.0070.07717.95
5.5.290.0100.07317.98
5.5.280.0100.06020.66
5.5.270.0000.06020.90
5.5.260.0030.08020.76
5.5.250.0200.07720.70
5.5.240.0100.07720.27
5.4.450.0130.05019.52
5.4.440.0430.04719.45
5.4.430.0030.05319.52
5.4.420.0500.04319.19
5.4.410.0270.05019.35
5.4.400.0270.04019.14
5.4.390.0270.04319.20
5.4.380.0330.05718.59
5.4.370.0330.05018.47
5.4.360.0200.06018.72
5.4.350.0270.05318.72
5.4.340.0300.04718.63
5.4.320.0080.04012.51
5.4.310.0050.03912.50
5.4.300.0060.03912.50
5.4.290.0060.03812.50
5.4.280.0060.04012.40
5.4.270.0080.04012.39
5.4.260.0070.04312.40
5.4.250.0040.05212.40
5.4.240.0080.03412.40
5.4.230.0070.03812.39
5.4.220.0070.05412.39
5.4.210.0080.03412.39
5.4.200.0070.03812.39
5.4.190.0070.03512.39
5.4.180.0060.03512.39
5.4.170.0060.03812.40
5.4.160.0090.04712.39
5.4.150.0040.04212.39
5.4.140.0120.04012.07
5.4.130.0100.04312.07
5.4.120.0040.03812.02
5.4.110.0100.03412.02
5.4.100.0080.03612.02
5.4.90.0080.03812.02
5.4.80.0090.05012.02
5.4.70.0080.04612.01
5.4.60.0060.04912.01
5.4.50.0100.04512.01
5.4.40.0080.05112.00
5.4.30.0100.05012.00
5.4.20.0080.05012.00
5.4.10.0090.04712.00
5.4.00.0120.03811.49
5.3.290.0110.04512.80
5.3.280.0120.04412.71
5.3.270.0080.05012.72
5.3.260.0100.04412.72
5.3.250.0110.03312.72
5.3.240.0060.03712.72
5.3.230.0080.03612.71
5.3.220.0110.03512.68
5.3.210.0060.03812.68
5.3.200.0130.03812.68
5.3.190.0040.04012.68
5.3.180.0050.03812.68
5.3.170.0090.03612.67
5.3.160.0100.03312.68
5.3.150.0060.03812.68
5.3.140.0080.04412.66
5.3.130.0030.04212.66
5.3.120.0080.04112.66
5.3.110.0050.04012.66
5.3.100.0060.03612.13
5.3.90.0070.03412.11
5.3.80.0060.04212.10
5.3.70.0060.04112.10
5.3.60.0080.03512.08
5.3.50.0040.03812.04
5.3.40.0030.04412.04
5.3.30.0020.03811.99
5.3.20.0060.03511.78
5.3.10.0070.03411.74
5.3.00.0030.03911.72
5.2.170.0060.0299.23
5.2.160.0080.0279.23
5.2.150.0050.0319.23
5.2.140.0050.0319.22
5.2.130.0060.0309.18
5.2.120.0040.0339.18
5.2.110.0050.0299.19
5.2.100.0030.0309.18
5.2.90.0040.0319.18
5.2.80.0050.0369.18
5.2.70.0060.0309.18
5.2.60.0040.0319.13
5.2.50.0050.0309.10
5.2.40.0070.0279.07
5.2.30.0060.0289.05
5.2.20.0030.0319.04
5.2.10.0040.0298.95
5.2.00.0070.0298.81
5.1.60.0080.0218.09
5.1.50.0050.0248.09
5.1.40.0070.0318.07
5.1.30.0050.0278.42
5.1.20.0040.0288.45
5.1.10.0090.0318.16
5.1.00.0020.0278.17
5.0.50.0040.0206.65
5.0.40.0060.0176.51
5.0.30.0060.0296.32
5.0.20.0050.0176.28
5.0.10.0020.0216.27
5.0.00.0060.0286.25
4.4.90.0040.0144.78
4.4.80.0040.0144.75
4.4.70.0010.0174.75
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0040.0254.71
4.4.30.0040.0154.76
4.4.20.0020.0174.84
4.4.10.0040.0144.85
4.4.00.0020.0304.75
4.3.110.0030.0164.67
4.3.100.0020.0154.66
4.3.90.0020.0154.63
4.3.80.0030.0244.59
4.3.70.0020.0154.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0030.0244.53
4.3.30.0010.0173.30
4.3.20.0010.0173.28
4.3.10.0010.0203.23
4.3.00.0000.01715.94

preferences:
48.97 ms | 401 KiB | 5 Q