3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function getCalledClassFix(){ return get_called_class(); } function bar() { print get_called_class(); $foo = function() { return self::getCalledClassFix(); }; return $foo(); } } class Bar extends Foo { function Zbar() { $foo = static function() { return get_called_class(); }; return $foo(); } } print Bar::bar(); //assert(Bar::bar() === 'Bar'); //assert(Bar::baz() === 'Bar');

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.0150.00016.63
8.3.50.0130.00822.12
8.3.40.0060.01218.84
8.3.30.0100.00319.09
8.3.20.0040.00420.25
8.3.10.0000.00723.48
8.3.00.0070.00317.50
8.2.180.0120.00918.29
8.2.170.0120.00322.96
8.2.160.0070.01020.32
8.2.150.0050.00224.18
8.2.140.0000.00724.66
8.2.130.0130.00626.16
8.2.120.0000.00722.07
8.2.110.0030.00622.30
8.2.100.0040.00817.75
8.2.90.0080.00019.08
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0000.00818.09
8.2.30.0000.00717.86
8.2.20.0000.00717.73
8.2.10.0040.00417.96
8.2.00.0080.00317.54
8.1.280.0080.00825.92
8.1.270.0040.00422.14
8.1.260.0120.00326.35
8.1.250.0070.00028.09
8.1.240.0070.00323.91
8.1.230.0110.00019.16
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.13
8.1.190.0040.00417.28
8.1.180.0000.00818.10
8.1.170.0000.01218.39
8.1.160.0040.00421.86
8.1.150.0040.00418.55
8.1.140.0000.00717.32
8.1.130.0030.00317.66
8.1.120.0070.00017.28
8.1.110.0070.00017.36
8.1.100.0040.00417.30
8.1.90.0030.00317.21
8.1.80.0000.00717.22
8.1.70.0070.00017.19
8.1.60.0080.00317.50
8.1.50.0030.00517.50
8.1.40.0040.00417.44
8.1.30.0040.00417.62
8.1.20.0000.00817.58
8.1.10.0020.00517.43
8.1.00.0030.00517.46
8.0.300.0000.00919.09
8.0.290.0040.00416.93
8.0.280.0030.00318.37
8.0.270.0030.00317.18
8.0.260.0000.00617.18
8.0.250.0040.00416.81
8.0.240.0070.00416.92
8.0.230.0030.00316.90
8.0.220.0030.00316.89
8.0.210.0000.00716.84
8.0.200.0000.00916.91
8.0.190.0030.00316.88
8.0.180.0040.00416.83
8.0.170.0040.00416.81
8.0.160.0000.00716.75
8.0.150.0040.00416.71
8.0.140.0080.00016.82
8.0.130.0160.00013.27
8.0.120.0040.00416.71
8.0.110.0030.00516.74
8.0.100.0040.00416.81
8.0.90.0040.00416.93
8.0.80.0060.00816.93
8.0.70.0050.00316.71
8.0.60.0040.00416.75
8.0.50.0030.00516.92
8.0.30.0090.01016.88
8.0.20.0100.01217.40
8.0.10.0000.00716.82
8.0.00.0090.01216.66
7.4.330.0020.00215.00
7.4.320.0070.00016.57
7.4.300.0060.00016.52
7.4.290.0000.00716.50
7.4.280.0040.00416.44
7.4.270.0030.00516.63
7.4.260.0070.00016.41
7.4.250.0040.00416.45
7.4.240.0020.00516.59
7.4.230.0020.00516.39
7.4.220.0120.00616.66
7.4.210.0070.00916.61
7.4.200.0000.00716.57
7.4.190.0040.00416.53
7.4.160.0150.00016.65
7.4.150.0090.00917.40
7.4.140.0080.00917.86
7.4.130.0100.00816.51
7.4.120.0030.01516.63
7.4.110.0090.00916.76
7.4.100.0090.00916.52
7.4.90.0070.01016.47
7.4.80.0090.01419.39
7.4.70.0130.00716.58
7.4.60.0090.00616.50
7.4.50.0020.00216.22
7.4.40.0000.01622.77
7.4.30.0140.00316.54
7.4.00.0030.01414.52
7.3.330.0060.00013.23
7.3.320.0000.00513.17
7.3.310.0000.00716.18
7.3.300.0030.00316.29
7.3.290.0100.00316.37
7.3.280.0120.00716.34
7.3.270.0100.00717.40
7.3.260.0060.01116.32
7.3.250.0100.01016.26
7.3.240.0100.00616.36
7.3.230.0100.00716.49
7.3.210.0070.01516.45
7.3.200.0140.00419.39
7.3.190.0040.01216.29
7.3.180.0100.00616.36
7.3.170.0120.00416.35
7.3.160.0040.01216.41
7.3.120.0060.00314.74
7.3.10.0040.00816.42
7.3.00.0070.01016.34
7.2.330.0100.00716.75
7.2.320.0110.01116.68
7.2.310.0060.01516.53
7.2.300.0110.00416.67
7.2.290.0070.01016.73
7.2.130.0070.00316.59
7.2.120.0110.00416.45
7.2.110.0100.00316.53
7.2.100.0160.00816.51
7.2.90.0130.01016.66
7.2.80.0040.01416.80
7.2.70.0140.01016.77
7.2.60.0140.00416.62
7.2.50.0090.01116.70
7.2.40.0140.01016.82
7.2.30.0120.00416.71
7.2.20.0120.01216.73
7.2.10.0140.00416.71
7.2.00.0040.01018.09
7.1.250.0090.00615.54
7.1.200.0040.01115.53
7.1.100.0060.00617.86
7.1.70.0040.00416.79
7.1.60.0100.01419.33
7.1.50.0150.00616.74
7.1.00.0070.07322.45
7.0.200.0280.00014.68
7.0.140.0100.07022.11
7.0.60.0030.04019.89
7.0.50.0100.07317.88
7.0.40.0000.04720.05
7.0.30.0200.04720.19
7.0.20.0300.07020.26
7.0.10.0270.08020.16
7.0.00.0070.04020.14
5.6.280.0030.07321.08
5.6.210.0030.09020.48
5.6.200.0030.07018.23
5.6.190.0030.04320.50
5.6.180.0400.06020.39
5.6.170.0270.08320.45
5.6.160.0100.07020.43
5.6.150.0070.03718.14
5.6.140.0070.05318.18
5.6.130.0000.04318.21
5.6.120.0130.08021.01
5.6.110.0130.07021.00
5.6.100.0070.08020.98
5.6.90.0100.06721.04
5.6.80.0030.05720.41
5.6.70.0130.08320.41
5.5.350.0230.06020.32
5.5.340.0030.06017.95
5.5.330.0130.03720.59
5.5.320.0230.07020.35
5.5.310.0270.06720.36
5.5.300.0200.04017.99
5.5.290.0030.07718.02
5.5.280.0100.06720.66
5.5.270.0070.08020.85
5.5.260.0030.08720.90
5.5.250.0130.07020.60
5.5.240.0100.07720.14
5.4.450.0130.06319.63
5.4.440.0270.04719.64
5.4.430.0230.05719.34
5.4.420.0230.05019.70
5.4.410.0430.07719.58
5.4.400.0530.05719.16
5.4.390.0830.06019.23
5.4.380.0370.06018.77
5.4.370.0370.07018.51
5.4.360.0500.06018.61
5.4.350.0470.06318.74
5.4.340.0400.05018.59
5.4.320.0050.03712.51
5.4.310.0070.04012.51
5.4.300.0060.04212.52
5.4.290.0050.03912.51
5.4.280.0110.05912.38
5.4.270.0120.05512.38
5.4.260.0060.05612.38
5.4.250.0110.05012.38
5.4.240.0090.04812.38
5.4.230.0200.04412.37
5.4.220.0180.05812.37
5.4.210.0100.05012.38
5.4.200.0110.05312.37
5.4.190.0120.05412.37
5.4.180.0140.05012.37
5.4.170.0120.05312.38
5.4.160.0130.05012.37
5.4.150.0120.05112.37
5.4.140.0080.05712.05
5.4.130.0130.04712.04
5.4.120.0200.04211.99
5.4.110.0100.05111.99
5.4.100.0100.04812.00
5.4.90.0110.05312.00
5.4.80.0110.04611.99
5.4.70.0040.04011.99
5.4.60.0080.03511.99
5.4.50.0070.04711.99
5.4.40.0120.04511.98
5.4.30.0070.04711.97
5.4.20.0080.03711.98
5.4.10.0100.03611.98
5.4.00.0090.04211.46
5.3.290.0070.03912.80
5.3.280.0080.04512.71
5.3.270.0090.04412.72
5.3.260.0140.03912.71
5.3.250.0060.04612.71
5.3.240.0140.06312.72
5.3.230.0130.05912.71
5.3.220.0110.04412.68
5.3.210.0120.04312.68
5.3.200.0100.03712.68
5.3.190.0070.04212.68
5.3.180.0110.04812.67
5.3.170.0070.05212.67
5.3.160.0060.04312.67
5.3.150.0100.04112.68
5.3.140.0040.04512.66
5.3.130.0120.03912.66
5.3.120.0080.05312.66
5.3.110.0130.05412.66
5.3.100.0180.04712.12
5.3.90.0070.05912.09
5.3.80.0170.04712.07
5.3.70.0090.05312.08
5.3.60.0120.05012.07
5.3.50.0080.05312.01
5.3.40.0090.05312.00
5.3.30.0100.05411.96
5.3.20.0070.05511.75
5.3.10.0070.05811.71
5.3.00.0140.04911.70
5.2.170.0070.0449.19
5.2.160.0090.0429.19
5.2.150.0070.0469.19
5.2.140.0100.0419.19
5.2.130.0110.0389.15
5.2.120.0110.0429.14
5.2.110.0080.0409.16
5.2.100.0100.0399.15
5.2.90.0100.0579.15
5.2.80.0070.0349.14
5.2.70.0080.0379.14
5.2.60.0080.0409.09
5.2.50.0060.0439.07
5.2.40.0110.0379.04
5.2.30.0120.0429.02
5.2.20.0080.0309.01
5.2.10.0100.0318.92
5.2.00.0040.0368.78
5.1.60.0090.0298.07
5.1.50.0090.0278.07
5.1.40.0080.0338.05
5.1.30.0050.0428.39
5.1.20.0040.0428.42
5.1.10.0080.0338.14
5.1.00.0040.0318.14
5.0.50.0060.0276.62
5.0.40.0070.0276.48
5.0.30.0070.0406.29
5.0.20.0080.0246.26
5.0.10.0050.0286.24
5.0.00.0060.0416.22
4.4.90.0040.0224.78
4.4.80.0050.0214.75
4.4.70.0040.0174.75
4.4.60.0050.0204.75
4.4.50.0070.0174.77
4.4.40.0060.0324.70
4.4.30.0040.0204.76
4.4.20.0040.0194.85
4.4.10.0040.0214.85
4.4.00.0050.0304.76
4.3.110.0020.0224.67
4.3.100.0040.0174.66
4.3.90.0050.0194.63
4.3.80.0030.0274.58
4.3.70.0030.0174.63
4.3.60.0030.0174.63
4.3.50.0020.0184.63
4.3.40.0010.0284.53
4.3.30.0020.0173.29
4.3.20.0040.0153.27
4.3.10.0030.0183.23
4.3.00.0100.0236.70

preferences:
48.32 ms | 401 KiB | 5 Q