3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function bar() { $foo = static function() { return get_called_class(); }; return $foo(); } } class Bar extends Foo { function bar() { $foo = static function() { return get_called_class(); }; return $foo(); } } //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.0080.00816.50
8.3.50.0110.00721.99
8.3.40.0130.00318.71
8.3.30.0080.00619.01
8.3.20.0040.00420.29
8.3.10.0050.00323.63
8.3.00.0090.00317.23
8.2.180.0060.01218.41
8.2.170.0130.00622.96
8.2.160.0000.01420.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0130.00326.16
8.2.120.0070.00022.25
8.2.110.0060.00322.13
8.2.100.0070.00417.59
8.2.90.0040.00418.92
8.2.80.0000.00717.97
8.2.70.0040.00417.25
8.2.60.0030.00617.90
8.2.50.0090.00019.22
8.2.40.0040.00418.03
8.2.30.0040.00418.00
8.2.20.0060.00317.61
8.2.10.0000.00717.80
8.2.00.0030.00617.54
8.1.280.0060.00925.92
8.1.270.0080.00022.04
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.95
8.1.230.0060.00619.01
8.1.220.0040.00417.74
8.1.210.0070.00318.77
8.1.200.0030.00617.10
8.1.190.0000.00817.41
8.1.180.0030.00618.10
8.1.170.0090.00018.46
8.1.160.0040.00421.99
8.1.150.0040.00418.50
8.1.140.0000.00717.22
8.1.130.0000.00817.76
8.1.120.0040.00417.30
8.1.110.0000.00817.34
8.1.100.0000.00717.34
8.1.90.0050.00217.29
8.1.80.0000.00717.21
8.1.70.0000.00717.30
8.1.60.0000.00817.46
8.1.50.0040.00417.42
8.1.40.0040.00417.27
8.1.30.0060.00317.36
8.1.20.0080.00017.45
8.1.10.0000.00717.34
8.1.00.0060.00317.29
8.0.300.0050.00219.21
8.0.290.0050.00216.91
8.0.280.0030.00518.39
8.0.270.0070.00017.13
8.0.260.0000.00717.11
8.0.250.0060.00016.87
8.0.240.0000.00816.88
8.0.230.0040.00416.84
8.0.220.0030.00316.76
8.0.210.0050.00216.71
8.0.200.0040.00416.82
8.0.190.0000.01116.83
8.0.180.0040.00416.78
8.0.170.0050.00316.69
8.0.160.0040.00416.70
8.0.150.0000.00716.73
8.0.140.0040.00416.70
8.0.130.0030.00613.17
8.0.120.0040.00416.70
8.0.110.0040.00416.64
8.0.100.0000.00816.79
8.0.90.0050.00316.66
8.0.80.0090.00616.77
8.0.70.0040.00416.76
8.0.60.0000.00816.71
8.0.50.0040.00416.71
8.0.30.0060.01317.04
8.0.20.0080.01217.40
8.0.10.0040.00416.68
8.0.00.0070.01116.48
7.4.330.0030.00315.00
7.4.320.0070.00016.51
7.4.300.0060.00016.43
7.4.290.0060.00016.43
7.4.280.0040.00416.45
7.4.270.0070.00016.29
7.4.260.0030.00616.31
7.4.250.0030.00316.44
7.4.240.0040.00316.42
7.4.230.0030.00316.42
7.4.220.0090.00916.43
7.4.210.0000.01416.40
7.4.200.0030.00316.36
7.4.190.0040.00416.27
7.4.160.0110.00616.34
7.4.150.0090.00917.40
7.4.140.0060.01117.86
7.4.130.0050.01416.37
7.4.120.0130.00816.35
7.4.110.0160.00616.34
7.4.100.0030.01416.22
7.4.90.0190.00516.45
7.4.80.0110.01219.39
7.4.70.0120.00316.62
7.4.60.0090.00916.09
7.4.50.0050.00316.38
7.4.40.0060.00622.77
7.4.30.0030.01316.35
7.4.00.0040.01215.05
7.3.330.0030.00313.23
7.3.320.0000.00513.21
7.3.310.0040.00416.08
7.3.300.0070.00016.18
7.3.290.0100.00316.23
7.3.280.0070.01216.17
7.3.270.0100.00717.40
7.3.260.0060.01716.42
7.3.250.0080.01116.33
7.3.240.0030.01416.42
7.3.230.0030.01916.39
7.3.210.0140.00316.30
7.3.200.0090.00919.39
7.3.190.0040.01216.32
7.3.180.0130.00316.41
7.3.170.0070.00716.32
7.3.160.0060.01016.39
7.3.120.0040.01114.57
7.2.330.0090.00916.45
7.2.320.0070.01016.20
7.2.310.0000.01616.32
7.2.300.0080.00816.55
7.2.290.0160.00016.40
7.2.60.0130.00616.58
7.1.200.0090.00315.67
7.1.100.0000.01118.03
7.1.70.0000.01316.74
7.1.60.0090.01519.33
7.1.50.0060.01416.82
7.1.00.0100.07022.30
7.0.200.0210.00314.61
7.0.140.0100.06722.18
7.0.60.0000.08320.02
7.0.50.0100.07717.87
7.0.40.0070.08720.18
7.0.30.0470.04020.10
7.0.20.0200.09020.26
7.0.10.0030.04720.33
7.0.00.0000.07720.25
5.6.280.0030.07320.99
5.6.210.0100.08320.52
5.6.200.0100.08718.25
5.6.190.0200.06320.39
5.6.180.0270.06720.66
5.6.170.0270.03720.45
5.6.160.0070.04020.52
5.6.150.0070.05318.18
5.6.140.0030.04018.15
5.6.130.0130.04318.18
5.6.120.0100.05320.99
5.6.110.0100.08320.90
5.6.100.0170.07321.13
5.6.90.0030.04721.03
5.6.80.0100.05020.50
5.5.350.0200.07020.44
5.5.340.0030.08318.05
5.5.330.0070.08720.13
5.5.320.0070.04020.31
5.5.310.0170.06020.28
5.5.300.0030.08717.96
5.5.290.0070.04018.01
5.5.280.0130.08320.63
5.5.270.0170.04720.85
5.5.260.0100.08020.88
5.5.250.0100.06320.50
5.5.240.2970.03320.23
5.4.450.0230.04719.59
5.4.440.0070.06019.55
5.4.430.0130.06719.38
5.4.420.0130.05019.33
5.4.410.0200.04719.34
5.4.400.0070.05719.29
5.4.390.0170.05019.08
5.4.380.0300.05318.79
5.4.370.0270.05718.74
5.4.360.0200.05718.65
5.4.350.0200.05718.48
5.4.340.0330.05018.76
5.4.320.0100.03212.52
5.4.310.0050.04012.51
5.4.300.0030.03912.52
5.4.290.0090.03512.51
5.4.280.0060.05812.38
5.4.270.0100.05012.38
5.4.260.0150.05012.38
5.4.250.0100.05412.38
5.4.240.0070.05412.38
5.4.230.0120.05412.37
5.4.220.0150.04912.37
5.4.210.0100.04912.37
5.4.200.0110.05112.37
5.4.190.0100.05012.37
5.4.180.0120.05212.37
5.4.170.0110.05212.37
5.4.160.0090.05012.37
5.4.150.0080.04812.36
5.4.140.0080.05212.05
5.4.130.0070.05312.04
5.4.120.0100.05112.00
5.4.110.0090.04911.99
5.4.100.0120.04411.99
5.4.90.0120.04612.00
5.4.80.0080.05112.00
5.4.70.0110.04811.99
5.4.60.0100.05311.99
5.4.50.0090.04611.99
5.4.40.0030.04011.98
5.4.30.0100.04611.97
5.4.20.0070.04711.98
5.4.10.0090.04211.97
5.4.00.0050.04411.46
5.3.290.0070.04212.80
5.3.280.0080.03712.71
5.3.270.0070.05712.73
5.3.260.0050.04412.72
5.3.250.0060.03912.71
5.3.240.0070.04212.72
5.3.230.0080.04112.71
5.3.220.0100.04612.68
5.3.210.0090.04912.68
5.3.200.0080.04312.68
5.3.190.0100.05012.68
5.3.180.0110.05712.68
5.3.170.0080.05512.67
5.3.160.0100.04812.67
5.3.150.0160.04812.67
5.3.140.0050.05512.66
5.3.130.0100.04912.66
5.3.120.0100.05212.66
5.3.110.0080.05412.66
5.3.100.0080.05012.12
5.3.90.0100.04912.08
5.3.80.0080.04612.08
5.3.70.0110.05412.07
5.3.60.0100.03912.06
5.3.50.0130.04312.00
5.3.40.0080.04612.00
5.3.30.0050.05111.95
5.3.20.0060.03911.74
5.3.10.0050.03911.70
5.3.00.0060.04011.69
5.2.170.0060.0439.19
5.2.160.0050.0359.18
5.2.150.0060.0359.18
5.2.140.0100.0329.18
5.2.130.0080.0389.14
5.2.120.0070.0289.14
5.2.110.0040.0339.14
5.2.100.0050.0359.15
5.2.90.0050.0379.15
5.2.80.0090.0349.14
5.2.70.0070.0429.14
5.2.60.0040.0439.09
5.2.50.0080.0399.07
5.2.40.0070.0399.04
5.2.30.0090.0419.02
5.2.20.0100.0309.00
5.2.10.0070.0308.92
5.2.00.0070.0378.78
5.1.60.0070.0398.06
5.1.50.0230.0848.07
5.1.40.0050.0358.04
5.1.30.0090.0368.39
5.1.20.0130.0318.42
5.1.10.0080.0348.14
5.1.00.0110.0358.14
5.0.50.0090.0246.61
5.0.40.0050.0266.48
5.0.30.0060.0506.29
5.0.20.0050.0316.25
5.0.10.0080.0316.23
5.0.00.0080.0366.22
4.4.90.0040.0224.78
4.4.80.0050.0224.76
4.4.70.0010.0244.75
4.4.60.0050.0204.75
4.4.50.0060.0214.77
4.4.40.0060.0334.71
4.4.30.0040.0204.76
4.4.20.0110.0144.84
4.4.10.0080.0194.85
4.4.00.0080.0294.76
4.3.110.0100.0164.67
4.3.100.0090.0184.66
4.3.90.0060.0204.64
4.3.80.0090.0274.58
4.3.70.0070.0194.63
4.3.60.0040.0204.63
4.3.50.0070.0184.63
4.3.40.0060.0314.54
4.3.30.0020.0233.29
4.3.20.0040.0213.27
4.3.10.0060.0193.23
4.3.00.0000.0236.74

preferences:
45.56 ms | 400 KiB | 5 Q