3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function getCalledClassFix(){ return get_called_class(); } static function bar() { print self::getCalledClassFix(); $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.40.0060.00918.72
8.3.30.0180.00419.05
8.3.20.0050.00320.39
8.3.10.0060.00323.48
8.3.00.0070.00317.75
8.2.170.0140.00322.96
8.2.160.0000.01420.39
8.2.150.0000.00824.18
8.2.140.0000.00924.66
8.2.130.0070.00726.16
8.2.120.0070.00022.09
8.2.110.0030.00622.07
8.2.100.0040.00717.72
8.2.90.0060.00319.19
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0000.00817.93
8.2.50.0090.00018.07
8.2.40.0040.00418.09
8.2.30.0000.00717.94
8.2.20.0070.00017.69
8.2.10.0050.00317.95
8.2.00.0040.00417.67
8.1.270.0000.00822.19
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0000.00823.97
8.1.230.0070.00319.09
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0000.00817.23
8.1.190.0040.00417.53
8.1.180.0060.00318.10
8.1.170.0040.00718.51
8.1.160.0040.00421.88
8.1.150.0000.00718.63
8.1.140.0000.00717.45
8.1.130.0040.00417.78
8.1.120.0050.00217.52
8.1.110.0000.00717.35
8.1.100.0030.00517.34
8.1.90.0040.00417.41
8.1.80.0040.00417.36
8.1.70.0030.00517.43
8.1.60.0030.00717.58
8.1.50.0030.00617.41
8.1.40.0040.00417.42
8.1.30.0040.00417.57
8.1.20.0000.00717.61
8.1.10.0040.00417.57
8.1.00.0030.00617.52
8.0.300.0040.00419.06
8.0.290.0000.00717.05
8.0.280.0040.00418.35
8.0.270.0000.00817.19
8.0.260.0000.00617.24
8.0.250.0000.00716.84
8.0.240.0060.00316.86
8.0.230.0030.00316.94
8.0.220.0000.00716.86
8.0.210.0040.00316.72
8.0.200.0030.00616.99
8.0.190.0000.00716.97
8.0.180.0040.00416.87
8.0.170.0040.00416.93
8.0.160.0070.00016.95
8.0.150.0040.00416.79
8.0.140.0080.00016.76
8.0.130.0060.00313.34
8.0.120.0030.00616.80
8.0.110.0040.00416.99
8.0.100.0040.00416.87
8.0.90.0020.00516.90
8.0.80.0070.01416.78
8.0.70.0030.00516.92
8.0.60.0040.00416.95
8.0.50.0040.00416.86
8.0.30.0110.01016.95
8.0.20.0070.01217.40
8.0.10.0030.00516.95
8.0.00.0170.00716.68
7.4.330.0000.00515.00
7.4.320.0070.00016.53
7.4.300.0000.00616.57
7.4.290.0030.00316.50
7.4.280.0000.00716.49
7.4.270.0080.00016.54
7.4.260.0040.00416.59
7.4.250.0050.00316.49
7.4.240.0050.00216.56
7.4.230.0030.00316.39
7.4.220.0070.01016.64
7.4.210.0110.00716.55
7.4.200.0070.00016.57
7.4.190.0060.00316.64
7.4.160.0090.00616.34
7.4.150.0070.01017.40
7.4.140.0120.00517.86
7.4.130.0060.00916.49
7.4.120.0110.00816.48
7.4.110.0100.00716.44
7.4.100.0060.01316.56
7.4.90.0070.01016.53
7.4.80.0220.02619.39
7.4.70.0090.00916.33
7.4.60.0040.01216.55
7.4.50.0030.00516.26
7.4.40.0130.00322.77
7.4.30.0130.00316.46
7.4.00.0030.01415.07
7.3.330.0000.00513.27
7.3.320.0030.00313.29
7.3.310.0070.00016.21
7.3.300.0050.00216.29
7.3.290.0000.01416.30
7.3.280.0100.00816.30
7.3.270.0100.00717.40
7.3.260.0140.00516.48
7.3.250.0110.00516.28
7.3.240.0110.00516.20
7.3.230.0110.00716.39
7.3.210.0100.00716.27
7.3.200.0100.01319.39
7.3.190.0120.00916.36
7.3.180.0030.01316.22
7.3.170.0060.00916.46
7.3.160.0090.00616.38
7.3.120.0120.00614.97
7.3.10.0100.00316.60
7.3.00.0090.00316.34
7.2.330.0120.00616.74
7.2.320.0090.00816.76
7.2.310.0070.01016.66
7.2.300.0100.00716.41
7.2.290.0080.00816.29
7.2.130.0100.00016.66
7.2.120.0030.00616.84
7.2.110.0000.01016.77
7.2.100.0070.00416.90
7.2.90.0030.01016.82
7.2.80.0060.00616.73
7.2.70.0040.00716.87
7.2.60.0030.01216.66
7.2.50.0090.00016.91
7.2.40.0070.00716.68
7.2.30.0000.01516.84
7.2.20.0060.00916.66
7.2.10.0060.00316.80
7.2.00.0000.01117.81
7.1.250.0030.00615.73
7.1.100.0030.01017.53
7.1.70.0100.00516.86
7.1.60.0070.01719.33
7.1.50.0070.01516.51
7.1.00.0030.07722.37
7.0.200.0230.00714.70
7.0.140.0070.07021.93
7.0.60.0300.07319.93
7.0.50.0100.07717.86
7.0.40.0070.09020.15
7.0.30.0470.06020.10
7.0.20.0230.07020.15
7.0.10.0100.07720.30
7.0.00.0000.06020.20
5.6.280.0030.07320.82
5.6.210.0100.06320.54
5.6.200.0130.07718.14
5.6.190.0070.07320.51
5.6.180.0130.04320.46
5.6.170.0230.08320.47
5.6.160.0100.05320.55
5.6.150.0000.05018.15
5.6.140.0070.04718.19
5.6.130.0070.04018.28
5.6.120.0070.08321.01
5.6.110.0130.07021.00
5.6.100.0100.08021.04
5.6.90.0070.07021.14
5.6.80.0100.04320.39
5.5.350.0170.04320.50
5.5.340.0070.04317.95
5.5.330.0030.05020.25
5.5.320.0100.08020.21
5.5.310.0270.03720.34
5.5.300.0000.04317.95
5.5.290.0130.05718.01
5.5.280.0070.04320.86
5.5.270.0100.08020.89
5.5.260.0130.08320.88
5.5.250.0200.03320.63
5.5.240.0270.03720.07
5.4.450.0370.06019.62
5.4.440.0230.06019.61
5.4.430.0230.06719.55
5.4.420.0200.05019.30
5.4.410.0270.06319.34
5.4.400.0070.06019.28
5.4.390.0130.06018.86
5.4.380.0300.05018.52
5.4.370.0200.05318.70
5.4.360.0170.06318.84
5.4.350.0270.05318.84
5.4.340.0300.05018.52
5.4.320.0040.03912.52
5.4.310.0070.04812.51
5.4.300.0040.03812.51
5.4.290.0050.03912.51
5.4.280.0130.06112.38
5.4.270.0200.06312.38
5.4.260.0130.05312.38
5.4.250.0110.05612.38
5.4.240.0080.05112.38
5.4.230.0100.05512.38
5.4.220.0100.05712.38
5.4.210.0170.05212.37
5.4.200.0110.06312.37
5.4.190.0230.06112.37
5.4.180.0100.07812.37
5.4.170.0170.07912.38
5.4.160.0160.06912.37
5.4.150.0110.05912.37
5.4.140.0130.07912.05
5.4.130.0400.08812.04
5.4.120.0110.06312.00
5.4.110.0090.03812.00
5.4.100.0090.03812.00
5.4.90.0130.07011.99
5.4.80.0210.06811.99
5.4.70.0140.06311.99
5.4.60.0130.04611.99
5.4.50.0110.03711.98
5.4.40.0130.04611.98
5.4.30.0080.04811.97
5.4.20.0190.07511.97
5.4.10.0090.03711.98
5.4.00.0080.04111.46
5.3.290.0080.03912.80
5.3.280.0090.04012.71
5.3.270.0060.04212.73
5.3.260.0110.03712.72
5.3.250.0060.04212.72
5.3.240.0090.03812.72
5.3.230.0080.03812.71
5.3.220.0090.04012.68
5.3.210.0120.03912.68
5.3.200.0100.03612.68
5.3.190.0090.03712.68
5.3.180.0090.03612.68
5.3.170.0110.05012.67
5.3.160.0070.05512.67
5.3.150.0210.06012.67
5.3.140.0160.04812.66
5.3.130.0100.05112.66
5.3.120.0120.04212.66
5.3.110.0100.05712.66
5.3.100.0160.06312.12
5.3.90.0120.04312.09
5.3.80.0090.04412.07
5.3.70.0100.06012.07
5.3.60.0080.04912.07
5.3.50.0120.04512.01
5.3.40.0160.04312.01
5.3.30.0120.05011.96
5.3.20.0090.04811.75
5.3.10.0100.04011.71
5.3.00.0120.06211.70
5.2.170.0060.0479.19
5.2.160.0060.0319.18
5.2.150.0110.0299.19
5.2.140.0090.0439.18
5.2.130.0030.0329.14
5.2.120.0070.0299.14
5.2.110.0080.0289.15
5.2.100.0040.0319.15
5.2.90.0060.0309.14
5.2.80.0070.0429.14
5.2.70.0100.0469.14
5.2.60.0090.0439.09
5.2.50.0070.0409.07
5.2.40.0080.0379.04
5.2.30.0020.0339.02
5.2.20.0060.0379.01
5.2.10.0110.0398.93
5.2.00.0090.0358.78
5.1.60.0060.0338.07
5.1.50.0060.0338.07
5.1.40.0050.0338.05
5.1.30.0070.0288.39
5.1.20.0070.0398.42
5.1.10.0070.0338.14
5.1.00.0110.0488.14
5.0.50.0050.0296.63
5.0.40.0040.0276.48
5.0.30.0070.0316.29
5.0.20.0030.0236.26
5.0.10.0060.0316.24
5.0.00.0070.0326.23
4.4.90.0080.0404.78
4.4.80.0070.0174.75
4.4.70.0020.0244.75
4.4.60.0030.0204.76
4.4.50.0050.0304.77
4.4.40.0020.0334.71
4.4.30.0080.0384.76
4.4.20.0080.0774.85
4.4.10.0030.0214.85
4.4.00.0100.0494.76
4.3.110.0090.0384.67
4.3.100.0120.0304.66
4.3.90.0060.0194.64
4.3.80.0040.0324.58
4.3.70.0080.0214.63
4.3.60.0080.0194.62
4.3.50.0040.0244.63
4.3.40.0080.0354.54
4.3.30.0030.0223.28
4.3.20.0030.0223.26
4.3.10.0030.0203.23
4.3.00.0070.0176.74

preferences:
39.32 ms | 400 KiB | 5 Q