3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static function foo() { echo "A\n"; } } class B extends A { static function foo() { echo "B\n"; } } $cb = array('B', 'parent::foo'); //call_user_func($cb); call_user_func(array('B','foo'));

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.0070.01418.88
8.3.30.0060.01019.12
8.3.20.0070.00020.08
8.3.10.0050.00321.86
8.3.00.0050.00317.63
8.2.170.0110.00322.96
8.2.160.0140.00320.19
8.2.150.0080.00024.18
8.2.140.0090.00624.66
8.2.130.0000.00726.16
8.2.120.0000.00821.02
8.2.110.0100.00021.89
8.2.100.0110.00017.91
8.2.90.0040.00419.17
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0040.00417.68
8.2.50.0000.00818.07
8.2.40.0080.00018.22
8.2.30.0040.00417.93
8.2.20.0000.00817.54
8.2.10.0070.00017.97
8.2.00.0040.00417.66
8.1.270.0070.00023.84
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.87
8.1.230.0100.00018.97
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0040.00417.10
8.1.180.0030.00618.10
8.1.170.0090.00018.43
8.1.160.0020.00521.86
8.1.150.0070.00018.71
8.1.140.0040.00417.34
8.1.130.0040.00417.69
8.1.120.0030.00317.29
8.1.110.0030.00617.45
8.1.100.0000.00717.27
8.1.90.0000.00717.39
8.1.80.0000.00817.31
8.1.70.0030.00317.36
8.1.60.0040.00417.56
8.1.50.0000.00817.45
8.1.40.0000.00917.40
8.1.30.0030.00617.67
8.1.20.0000.00817.65
8.1.10.0000.00717.57
8.1.00.0070.00017.48
8.0.300.0060.00318.77
8.0.290.0060.00316.63
8.0.280.0080.00018.43
8.0.270.0030.00317.30
8.0.260.0030.00317.31
8.0.250.0050.00216.82
8.0.240.0000.00616.90
8.0.230.0070.00016.83
8.0.220.0000.00716.79
8.0.210.0000.00716.78
8.0.200.0030.00316.90
8.0.190.0000.00816.80
8.0.180.0000.00816.84
8.0.170.0000.00716.72
8.0.160.0050.00216.80
8.0.150.0000.00716.73
8.0.140.0030.00416.63
8.0.130.0030.00313.18
8.0.120.0080.00016.67
8.0.110.0000.00716.83
8.0.100.0030.00516.88
8.0.90.0070.00016.60
8.0.80.0040.01216.76
8.0.70.0000.00816.85
8.0.60.0070.00016.69
8.0.50.0000.00716.59
8.0.30.0100.01217.12
8.0.20.0130.00817.40
8.0.10.0000.00717.04
8.0.00.0090.01116.82
7.4.330.0050.00015.08
7.4.320.0030.00316.42
7.4.300.0030.00316.57
7.4.290.0070.00016.59
7.4.280.0030.00916.50
7.4.270.0000.00816.48
7.4.260.0030.00316.48
7.4.250.0070.00016.35
7.4.240.0010.00716.44
7.4.230.0030.00316.55
7.4.220.0150.00316.68
7.4.210.0040.01116.70
7.4.200.0030.00316.41
7.4.160.0120.00916.68
7.4.150.0110.00717.40
7.4.140.0120.00817.86
7.4.130.0080.00916.67
7.4.120.0090.00816.70
7.4.110.0130.00816.46
7.4.100.0070.01016.48
7.4.90.0100.01316.42
7.4.80.0100.01019.39
7.4.70.0100.00616.27
7.4.60.0060.01016.45
7.4.50.0030.00616.31
7.4.40.0130.00716.49
7.4.30.0060.01016.30
7.4.00.0030.01014.71
7.3.330.0000.00713.09
7.3.320.0000.00513.04
7.3.310.0070.00016.22
7.3.300.0030.00616.06
7.3.290.0040.01116.28
7.3.280.0070.01016.22
7.3.270.0090.01117.40
7.3.260.0070.01016.54
7.3.240.0030.01316.31
7.3.230.0130.00316.39
7.3.210.0080.01116.33
7.3.200.0090.00619.39
7.3.190.0120.00816.49
7.3.180.0030.01316.49
7.3.170.0080.00816.27
7.3.160.0070.01016.23
7.2.330.0070.01016.63
7.2.320.0110.00616.36
7.2.310.0090.00816.49
7.2.300.0030.01416.49
7.2.290.0100.00616.73
7.2.00.0000.01219.14
7.1.100.0000.01117.88
7.1.70.0080.00017.05
7.1.60.0060.00619.40
7.1.50.0120.00916.60
7.1.00.0070.07322.57
7.0.200.0000.00916.43
7.0.140.0000.07722.08
7.0.60.0070.08020.02
7.0.50.0000.07317.86
7.0.40.0070.04020.24
7.0.30.0200.08320.30
7.0.20.0230.04720.15
7.0.10.0030.06320.12
7.0.00.0130.06320.23
5.6.280.0030.07321.13
5.6.210.0070.08320.50
5.6.200.0130.07318.29
5.6.190.0030.08720.46
5.6.180.3300.03020.43
5.6.170.0400.07020.50
5.6.160.0100.07720.50
5.6.150.0070.08018.15
5.6.140.0070.08018.14
5.6.130.0070.08018.18
5.6.120.0100.06320.98
5.6.110.0130.05320.94
5.6.100.0200.07320.85
5.6.90.0030.06321.08
5.6.80.0100.07720.51
5.6.70.3670.04020.37
5.5.350.0200.07320.28
5.5.340.0000.09018.08
5.5.330.0070.08320.21
5.5.320.3100.04320.20
5.5.310.0330.04320.34
5.5.300.0070.08318.09
5.5.290.0100.07717.93
5.5.280.0030.04020.97
5.5.270.0230.06720.77
5.5.260.0230.06020.87
5.5.250.0170.03020.69
5.5.240.0170.04720.26
5.4.450.1800.04019.48
5.4.440.0830.04019.22
5.4.430.0630.04319.52
5.4.420.0400.04319.63
5.4.410.0330.05019.39
5.4.400.0300.03019.09
5.4.390.0400.04018.87
5.4.380.0200.05318.77
5.4.370.0030.06018.66
5.4.360.0070.05718.68
5.4.350.0130.05318.73
5.4.340.0330.05718.73
5.4.320.0060.03512.50
5.4.310.0070.04312.50
5.4.300.0070.04212.50
5.4.290.0100.03412.50
5.4.280.0060.03612.39
5.4.270.0040.03812.39
5.4.260.0060.03712.39
5.4.250.0050.03812.39
5.4.240.0090.03312.40
5.4.230.0040.03912.38
5.4.220.0070.03412.39
5.4.210.0100.03512.38
5.4.200.0050.03812.39
5.4.190.0070.03412.38
5.4.180.0060.03712.38
5.4.170.0050.03712.39
5.4.160.0040.03712.39
5.4.150.0040.03712.38
5.4.140.0060.03812.07
5.4.130.0070.03412.06
5.4.120.0060.03512.01
5.4.110.0050.03512.02
5.4.100.0070.03412.02
5.4.90.0090.03412.02
5.4.80.0080.03412.02
5.4.70.0050.03512.01
5.4.60.0030.03712.01
5.4.50.0040.03712.00
5.4.40.0090.03912.00
5.4.30.0050.03711.99
5.4.20.0060.03411.99
5.4.10.0050.03511.99
5.4.00.0110.03511.48
5.3.290.0070.04512.80
5.3.280.0050.04012.71
5.3.270.0090.03612.72
5.3.260.0040.04112.72
5.3.250.0040.03912.71
5.3.240.0120.03412.72
5.3.230.0070.03612.71
5.3.220.0050.03812.68
5.3.210.0080.04012.68
5.3.200.0070.03812.68
5.3.190.0060.03812.68
5.3.180.0050.03612.68
5.3.170.0080.04312.67
5.3.160.0050.04112.68
5.3.150.0050.04412.68
5.3.140.0060.03712.66
5.3.130.0050.04012.66
5.3.120.0030.04112.66
5.3.110.0060.04112.66
5.3.100.0040.03912.12
5.3.90.0060.03712.10
5.3.80.0050.03712.10
5.3.70.0030.03912.10
5.3.60.0080.03412.07
5.3.50.0040.03712.03
5.3.40.0060.03612.03
5.3.30.0060.03611.98
5.3.20.0070.03411.77
5.3.10.0050.04011.73
5.3.00.0080.03611.73
5.2.170.0020.0349.22
5.2.160.0030.0319.22
5.2.150.0060.0309.22
5.2.140.0070.0289.22
5.2.130.0040.0299.18
5.2.120.0060.0269.18
5.2.110.0070.0269.18
5.2.100.0080.0249.18
5.2.90.0060.0269.18
5.2.80.0080.0269.18
5.2.70.0050.0309.17
5.2.60.0050.0299.13
5.2.50.0070.0289.10
5.2.40.0030.0309.07
5.2.30.0060.0289.05
5.2.20.0040.0299.04
5.2.10.0030.0308.95
5.2.00.0030.0308.80
5.1.60.0050.0278.09
5.1.50.0030.0268.09
5.1.40.0050.0238.06
5.1.30.0020.0288.42
5.1.20.0020.0298.44
5.1.10.0000.0308.16
5.1.00.0040.0268.17
5.0.50.0060.0206.64
5.0.40.0030.0196.50
5.0.30.0020.0326.31
5.0.20.0030.0206.28
5.0.10.0030.0216.26
5.0.00.0040.0296.25
4.4.90.0040.0144.78
4.4.80.0040.0144.76
4.4.70.0040.0144.75
4.4.60.0020.0154.76
4.4.50.0020.0164.77
4.4.40.0040.0244.71
4.4.30.0010.0174.75
4.4.20.0030.0154.85
4.4.10.0020.0164.85
4.4.00.0050.0254.75
4.3.110.0000.0184.67
4.3.100.0010.0164.67
4.3.90.0040.0134.64
4.3.80.0030.0244.58
4.3.70.0050.0124.63
4.3.60.0010.0164.63
4.3.50.0050.0134.63
4.3.40.0020.0244.54
4.3.30.0000.0173.30
4.3.20.0020.0163.28
4.3.10.0020.0163.23
4.3.00.0070.01715.91

preferences:
42.09 ms | 400 KiB | 5 Q