3v4l.org

run code in 300+ PHP versions simultaneously
<?php function make() { class Foo { public static function getClass() { return call_user_func(function () { //return call_user_func(function () { return [__CLASS__, __METHOD__, __FUNCTION__]; //}); }); } } return new Foo(); } $foo = make(); var_dump($foo->getClass());

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.0060.01016.58
8.3.60.0090.00616.63
8.3.50.0160.00621.86
8.3.40.0120.00318.67
8.3.30.0140.00018.96
8.3.20.0040.00420.46
8.3.10.0050.00323.52
8.3.00.0000.00720.84
8.2.180.0040.01116.32
8.2.170.0120.00322.96
8.2.160.0070.00720.52
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0080.00020.76
8.2.110.0060.00322.20
8.2.100.0090.00320.52
8.2.90.0080.00019.34
8.2.80.0090.00017.97
8.2.70.0050.00517.48
8.2.60.0000.00818.05
8.2.50.0000.00918.07
8.2.40.0080.00019.95
8.2.30.0030.00518.13
8.2.20.0040.00417.57
8.2.10.0030.00617.99
8.2.00.0050.00317.62
8.1.280.0170.00325.92
8.1.270.0090.00023.98
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.88
8.1.230.0080.00419.01
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0030.00517.25
8.1.180.0000.00818.10
8.1.170.0040.00418.61
8.1.160.0050.00222.07
8.1.150.0040.00418.64
8.1.140.0050.00217.46
8.1.130.0000.00817.81
8.1.120.0050.00317.49
8.1.110.0040.00417.41
8.1.100.0030.00317.36
8.1.90.0050.00317.34
8.1.80.0040.00417.37
8.1.70.0030.00317.46
8.1.60.0030.00717.49
8.1.50.0080.00017.42
8.1.40.0070.00017.43
8.1.30.0000.00817.57
8.1.20.0040.00417.66
8.1.10.0070.00017.39
8.1.00.0040.00417.30
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.55
8.0.270.0070.00017.28
8.0.260.0060.00017.17
8.0.250.0030.00316.97
8.0.240.0000.00716.96
8.0.230.0000.00716.84
8.0.220.0020.00516.94
8.0.210.0080.00016.90
8.0.200.0060.00016.85
8.0.190.0030.00316.83
8.0.180.0070.00016.91
8.0.170.0070.00016.82
8.0.160.0040.00416.92
8.0.150.0000.00816.95
8.0.140.0000.00716.86
8.0.130.0030.00313.32
8.0.120.0040.00416.77
8.0.110.0030.00316.92
8.0.100.0030.00516.91
8.0.90.0040.00416.86
8.0.80.0090.00616.85
8.0.70.0000.00716.79
8.0.60.0000.00716.96
8.0.50.0070.00016.84
8.0.30.0130.00617.10
8.0.20.0130.00517.40
8.0.10.0040.00416.84
8.0.00.0120.00716.73
7.4.330.0040.00015.00
7.4.320.0060.00016.60
7.4.300.0030.00316.60
7.4.290.0030.00316.41
7.4.280.0040.00416.62
7.4.270.0030.00316.40
7.4.260.0000.00816.49
7.4.250.0070.00016.48
7.4.240.0010.00616.53
7.4.230.0000.00716.32
7.4.220.0150.00916.63
7.4.210.0060.00916.47
7.4.200.0000.00716.49
7.4.190.0000.00716.77
7.4.160.0060.00916.53
7.4.150.0070.01017.40
7.4.140.0080.01017.86
7.4.130.0120.00416.62
7.4.120.0150.00116.54
7.4.110.0070.01116.45
7.4.100.0080.01416.46
7.4.90.0150.00316.65
7.4.80.0070.01119.39
7.4.70.0090.00616.48
7.4.60.0160.00316.39
7.4.50.0030.00616.50
7.4.40.0070.01016.63
7.4.30.0090.00816.71
7.4.00.0070.00715.11
7.3.330.0070.00013.27
7.3.320.0000.00613.07
7.3.310.0000.00716.33
7.3.300.0030.00316.34
7.3.290.0070.01016.33
7.3.280.0100.00516.27
7.3.270.0070.01017.40
7.3.260.0210.00416.32
7.3.250.0100.00716.34
7.3.240.0180.00916.32
7.3.230.0130.00616.40
7.3.210.0060.01216.29
7.3.200.0130.00319.39
7.3.190.0040.01616.43
7.3.180.0070.01016.43
7.3.170.0100.00716.41
7.3.160.0070.00716.46
7.3.120.0030.01414.94
7.2.330.0150.00916.37
7.2.320.0030.01416.69
7.2.310.0090.01216.50
7.2.300.0090.00716.61
7.2.290.0100.00616.63
7.2.60.0080.00716.72
7.2.00.0090.00619.35
7.1.200.0060.00615.64
7.1.100.0030.01018.25
7.1.70.0030.00717.04
7.1.60.0090.01519.70
7.1.50.0060.01216.47
7.1.00.0030.07722.47
7.0.200.0090.00316.79
7.0.140.0000.07722.09
7.0.60.0170.07319.86
7.0.50.0000.06017.95
7.0.40.0130.07720.40
7.0.30.0230.07720.23
7.0.20.0300.08020.15
7.0.10.0170.07320.19
7.0.00.0000.09320.26
5.6.280.0030.07021.13
5.6.210.0070.08020.73
5.6.200.0030.07318.19
5.6.190.0030.09020.47
5.6.180.0570.06720.63
5.6.170.0170.04320.50
5.6.160.0030.09020.47
5.6.150.0100.03318.19
5.6.140.0100.08018.25
5.6.130.0100.05318.28
5.6.120.0070.08720.94
5.6.110.0070.07021.16
5.6.100.0130.06321.05
5.6.90.0000.04721.05
5.6.80.0130.07720.38
5.5.350.0100.04020.42
5.5.340.0100.08017.97
5.5.330.0000.05020.19
5.5.320.0370.05720.27
5.5.310.0270.07320.39
5.5.300.0130.07718.04
5.5.290.0030.05017.99
5.5.280.0030.04720.69
5.5.270.0100.04720.64
5.5.260.0100.08020.96
5.5.250.0000.04320.59
5.5.240.0300.05720.08
5.4.450.0270.05319.41
5.4.440.0230.04719.39
5.4.430.0200.04319.63
5.4.420.0400.04019.56
5.4.410.0200.04719.35
5.4.400.0330.03019.11
5.4.390.0230.04319.22
5.4.380.0270.05718.72
5.4.370.0430.05318.73
5.4.360.0400.06018.63
5.4.350.0430.07318.83
5.4.340.0330.05318.82
5.4.320.0020.04112.51
5.4.310.0070.03712.51
5.4.300.0050.04512.51
5.4.290.0070.03812.50
5.4.280.0080.04012.41
5.4.270.0040.04012.41
5.4.260.0080.03812.41
5.4.250.0050.04012.40
5.4.240.0050.04212.41
5.4.230.0090.05312.40
5.4.220.0040.03812.40
5.4.210.0070.03512.40
5.4.200.0070.03912.40
5.4.190.0100.03212.40
5.4.180.0050.03712.39
5.4.170.0060.03712.40
5.4.160.0080.03712.40
5.4.150.0100.04012.39
5.4.140.0130.03412.08
5.4.130.0070.03612.06
5.4.120.0060.03912.03
5.4.110.0050.03712.02
5.4.100.0050.03712.02
5.4.90.0030.04012.02
5.4.80.0030.03912.02
5.4.70.0060.03712.02
5.4.60.0090.04312.01
5.4.50.0050.03512.02
5.4.40.0050.03612.00
5.4.30.0050.04212.00
5.4.20.0080.03312.00
5.4.10.0060.03512.00
5.4.00.0050.03511.49
5.3.290.0110.04012.80
5.3.280.0110.03312.71
5.3.270.0090.03612.72
5.3.260.0070.03812.72
5.3.250.0080.03512.72
5.3.240.0050.03812.72
5.3.230.0060.04912.71
5.3.220.0070.04812.68
5.3.210.0070.03912.68
5.3.200.0080.03512.68
5.3.190.0070.03712.68
5.3.180.0010.04212.67
5.3.170.0060.03712.67
5.3.160.0050.03812.67
5.3.150.0070.03712.67
5.3.140.0080.03512.66
5.3.130.0090.04712.66
5.3.120.0070.04112.66
5.3.110.0090.04112.66
5.3.100.0080.03812.14
5.3.90.0090.03712.12
5.3.80.0110.03112.10
5.3.70.0050.03912.10
5.3.60.0040.03712.09
5.3.50.0090.03412.03
5.3.40.0060.03612.03
5.3.30.0030.03811.99
5.3.20.0040.04011.77
5.3.10.0040.04311.74
5.3.00.0050.04711.73
5.2.170.0030.0389.22
5.2.160.0040.0309.22
5.2.150.0040.0339.22
5.2.140.0040.0369.22
5.2.130.0040.0399.18
5.2.120.0060.0419.18
5.2.110.0070.0359.19
5.2.100.0050.0289.18
5.2.90.0010.0329.19
5.2.80.0060.0429.17
5.2.70.0050.0319.18
5.2.60.0070.0299.14
5.2.50.0040.0329.10
5.2.40.0050.0309.08
5.2.30.0060.0309.05
5.2.20.0010.0349.04
5.2.10.0060.0298.96
5.2.00.0080.0278.82
5.1.60.0030.0268.10
5.1.50.0070.0238.09
5.1.40.0060.0248.07
5.1.30.0050.0278.43
5.1.20.0060.0258.44
5.1.10.0050.0278.17
5.1.00.0070.0278.17
5.0.50.0030.0296.64
5.0.40.0070.0246.50
5.0.30.0040.0366.32
5.0.20.0050.0206.29
5.0.10.0020.0226.26
5.0.00.0050.0306.25
4.4.90.0030.0154.78
4.4.80.0040.0144.76
4.4.70.0030.0174.75
4.4.60.0070.0124.76
4.4.50.0030.0164.77
4.4.40.0020.0284.71
4.4.30.0020.0164.76
4.4.20.0030.0154.84
4.4.10.0010.0184.85
4.4.00.0050.0244.76
4.3.110.0020.0164.67
4.3.100.0040.0144.66
4.3.90.0060.0114.64
4.3.80.0020.0294.58
4.3.70.0060.0134.63
4.3.60.0040.0134.63
4.3.50.0040.0134.63
4.3.40.0000.0264.54
4.3.30.0010.0173.30
4.3.20.0010.0173.29
4.3.10.0020.0153.24
4.3.00.0000.02016.92

preferences:
71.53 ms | 401 KiB | 5 Q