3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { static function func($t) { return __CLASS__; } } class Foo extends Bar { static function func($t) { return $t::foo($t); } } class Qux extends Foo { static function func($t) { return __CLASS__; } } var_dump(Foo::func('parent')); var_dump(Foo::func('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.40.0110.00318.67
8.3.30.0080.00619.04
8.3.20.0000.00720.30
8.3.10.0080.00023.48
8.3.00.0060.00317.38
8.2.170.0110.00422.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00221.05
8.2.110.0000.01020.96
8.2.100.0090.00317.90
8.2.90.0050.00319.05
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0000.00717.91
8.2.50.0000.00918.10
8.2.40.0040.00420.60
8.2.30.0000.00717.94
8.2.20.0080.00017.74
8.2.10.0000.00717.93
8.2.00.0050.00217.60
8.1.270.0040.00424.02
8.1.260.0020.00526.35
8.1.250.0020.00528.09
8.1.240.0100.00722.05
8.1.230.0060.00617.76
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0050.00317.00
8.1.180.0040.00418.10
8.1.170.0030.00518.36
8.1.160.0070.00022.14
8.1.150.0050.00218.75
8.1.140.0040.00417.26
8.1.130.0000.00817.73
8.1.120.0030.00317.33
8.1.110.0050.00317.21
8.1.100.0000.00717.33
8.1.90.0000.00817.30
8.1.80.0000.00717.30
8.1.70.0000.00717.28
8.1.60.0060.00317.46
8.1.50.0040.00417.45
8.1.40.0000.00817.33
8.1.30.0040.00417.61
8.1.20.0000.00817.54
8.1.10.0000.00717.44
8.1.00.0040.00417.52
8.0.300.0050.00318.77
8.0.290.0020.00516.63
8.0.280.0040.00418.34
8.0.270.0030.00517.23
8.0.260.0060.00017.15
8.0.250.0030.00316.83
8.0.240.0070.00016.95
8.0.230.0060.00016.83
8.0.220.0030.00316.91
8.0.210.0000.00716.89
8.0.200.0030.00316.99
8.0.190.0030.00416.97
8.0.180.0030.00516.81
8.0.170.0060.00316.80
8.0.160.0050.00216.77
8.0.150.0000.00816.75
8.0.140.0000.00716.84
8.0.130.0000.00613.29
8.0.120.0040.00416.84
8.0.110.0040.00416.87
8.0.100.0080.00016.92
8.0.90.0080.00016.70
8.0.80.0090.01416.84
8.0.70.0040.00416.73
8.0.60.0000.00716.84
8.0.50.0000.00716.75
8.0.30.0120.00717.07
8.0.20.0110.00917.40
8.0.10.0000.00716.95
8.0.00.0110.00616.79
7.4.330.0050.00015.00
7.4.320.0030.00316.48
7.4.300.0030.00316.38
7.4.290.0060.00016.50
7.4.280.0050.00516.41
7.4.270.0040.00416.52
7.4.260.0040.00416.40
7.4.250.0000.00716.55
7.4.240.0000.00716.50
7.4.230.0070.00016.42
7.4.220.0110.00616.61
7.4.210.0110.00516.44
7.4.200.0070.00016.57
7.4.160.0060.00916.32
7.4.150.0100.01017.40
7.4.140.0100.01017.86
7.4.130.0070.01016.36
7.4.120.0100.01016.62
7.4.110.0110.01316.49
7.4.100.0150.00716.31
7.4.90.0140.00316.43
7.4.80.0140.01019.39
7.4.70.0070.01416.54
7.4.60.0100.01316.35
7.4.50.0020.00216.34
7.4.40.0160.00616.16
7.4.30.0100.00716.58
7.4.00.0060.01214.82
7.3.330.0030.00313.29
7.3.320.0000.00513.43
7.3.310.0060.00016.24
7.3.300.0040.00416.26
7.3.290.0060.00916.45
7.3.280.0090.00816.43
7.3.270.0060.01317.40
7.3.260.0080.01516.25
7.3.250.0080.00816.34
7.3.240.0060.01316.52
7.3.230.0070.01016.59
7.3.210.0080.00816.27
7.3.200.0070.01019.39
7.3.190.0120.00916.32
7.3.180.0100.00616.50
7.3.170.0130.01016.42
7.3.160.0110.00516.29
7.2.330.0140.00516.40
7.2.320.0090.00916.34
7.2.310.0060.01216.52
7.2.300.0110.00616.27
7.2.290.0070.01116.54
7.2.110.0370.01016.30
7.2.60.0080.00416.79
7.2.00.0030.00919.43
7.1.200.0050.00215.81
7.1.100.0000.01417.79
7.1.70.0040.00716.70
7.1.60.0140.01119.40
7.1.50.0170.00716.57
7.1.00.0070.07322.30
7.0.200.0000.00816.49
7.0.140.0030.07322.04
7.0.60.0070.04020.07
7.0.50.0070.07017.84
7.0.40.0070.08720.13
7.0.30.0170.04720.06
7.0.20.0200.06720.12
7.0.10.0300.05320.05
7.0.00.0070.05320.07
5.6.280.0130.06321.13
5.6.210.0170.06020.52
5.6.200.0070.04718.18
5.6.190.0030.09020.43
5.6.180.0000.06320.39
5.6.170.0370.08020.56
5.6.160.0000.06020.50
5.6.150.0030.05718.16
5.6.140.0070.04018.18
5.6.130.0070.05318.17
5.6.120.0100.08720.90
5.6.110.0070.04021.09
5.6.100.0130.04021.00
5.6.90.0100.07721.11
5.6.80.0130.07720.36
5.6.70.3600.03320.42
5.5.350.0070.02720.39
5.5.340.0030.08318.02
5.5.330.0070.04720.40
5.5.320.0230.05020.27
5.5.310.0230.05020.34
5.5.300.0030.08717.99
5.5.290.0100.07717.96
5.5.280.0130.08020.99
5.5.270.0100.08020.80
5.5.260.0070.03720.77
5.5.250.0270.06720.46
5.5.240.0170.03720.05
5.4.450.0670.04319.57
5.4.440.0230.04019.54
5.4.430.0030.05319.55
5.4.420.0130.05019.57
5.4.410.0270.05319.07
5.4.400.0330.03019.22
5.4.390.0130.04719.18
5.4.380.0500.04718.79
5.4.370.0330.07018.54
5.4.360.0370.06318.79
5.4.350.0570.05718.82
5.4.340.0370.07318.62
5.4.320.0080.03412.50
5.4.310.0080.05612.50
5.4.300.0100.04512.51
5.4.290.0090.04712.50
5.4.280.0110.06712.40
5.4.270.0090.05312.40
5.4.260.0100.04212.40
5.4.250.0060.03812.40
5.4.240.0040.03812.40
5.4.230.0050.03812.39
5.4.220.0040.03912.39
5.4.210.0060.03912.39
5.4.200.0040.04112.39
5.4.190.0090.04812.39
5.4.180.0060.04012.39
5.4.170.0090.03212.39
5.4.160.0060.03512.39
5.4.150.0050.03612.39
5.4.140.0060.03912.07
5.4.130.0090.04212.06
5.4.120.0060.03712.02
5.4.110.0070.03612.01
5.4.100.0080.04112.02
5.4.90.0080.05212.01
5.4.80.0080.05612.02
5.4.70.0060.03712.02
5.4.60.0100.03212.01
5.4.50.0030.03812.01
5.4.40.0060.03412.00
5.4.30.0040.03711.99
5.4.20.0060.03412.00
5.4.10.0040.03612.00
5.4.00.0080.03411.49
5.3.290.0110.03612.80
5.3.280.0060.03912.71
5.3.270.0060.04112.73
5.3.260.0050.03912.71
5.3.250.0100.03712.72
5.3.240.0060.04012.72
5.3.230.0060.03712.71
5.3.220.0030.04112.68
5.3.210.0070.03712.68
5.3.200.0050.03912.68
5.3.190.0060.03712.68
5.3.180.0070.03512.67
5.3.170.0060.03712.67
5.3.160.0080.03512.67
5.3.150.0070.04212.67
5.3.140.0070.03712.66
5.3.130.0100.03612.66
5.3.120.0060.03912.65
5.3.110.0040.04212.66
5.3.100.0050.03812.13
5.3.90.0090.03512.11
5.3.80.0040.03712.10
5.3.70.0080.04812.10
5.3.60.0060.03612.08
5.3.50.0050.03712.04
5.3.40.0070.03612.04
5.3.30.0090.03811.99
5.3.20.0040.03711.78
5.3.10.0040.03611.73
5.3.00.0060.03611.72
5.2.170.0080.0409.22
5.2.160.0030.0299.22
5.2.150.0080.0269.23
5.2.140.0050.0319.21
5.2.130.0050.0319.18
5.2.120.0020.0329.18
5.2.110.0030.0319.19
5.2.100.0030.0319.18
5.2.90.0060.0289.18
5.2.80.0040.0319.18
5.2.70.0050.0319.18
5.2.60.0040.0329.14
5.2.50.0080.0329.11
5.2.40.0100.0249.07
5.2.30.0040.0309.05
5.2.20.0030.0309.04
5.2.10.0030.0308.95
5.2.00.0080.0358.81
5.1.60.0040.0258.10
5.1.50.0040.0258.09
5.1.40.0040.0258.08
5.1.30.0070.0238.43
5.1.20.0090.0228.44
5.1.10.0030.0288.17
5.1.00.0050.0258.16
5.0.50.0050.0196.64
5.0.40.0040.0186.50
5.0.30.0050.0296.32
5.0.20.0020.0216.29
5.0.10.0020.0226.27
5.0.00.0040.0296.25
4.4.90.0020.0164.78
4.4.80.0030.0154.76
4.4.70.0030.0154.75
4.4.60.0040.0144.75
4.4.50.0010.0174.77
4.4.40.0020.0264.70
4.4.30.0010.0174.76
4.4.20.0030.0154.85
4.4.10.0020.0164.85
4.4.00.0040.0234.76
4.3.110.0030.0154.67
4.3.100.0020.0154.67
4.3.90.0030.0144.63
4.3.80.0020.0264.58
4.3.70.0030.0154.63
4.3.60.0020.0164.63
4.3.50.0030.0174.63
4.3.40.0030.0244.54
4.3.30.0010.0173.30
4.3.20.0010.0173.28
4.3.10.0000.0173.23
4.3.00.0000.02015.94

preferences:
37.08 ms | 400 KiB | 5 Q