3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { public static function hi() { $cl = function(){ echo Left::$prot; }; $cl(); } } class Left extends Base { protected static $prot = 'Hello, world!'; } class Right extends Base { } Right::hi();

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.0120.00618.31
8.3.50.0060.01222.05
8.3.40.0100.01018.84
8.3.30.0110.00319.10
8.3.20.0040.00420.13
8.3.10.0040.00420.27
8.3.00.0040.00419.38
8.2.180.0190.00318.16
8.2.170.0070.00722.96
8.2.160.0040.01120.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0020.00526.16
8.2.120.0050.00222.05
8.2.110.0080.00020.41
8.2.100.0090.00318.16
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0080.00018.00
8.2.50.0000.00818.07
8.2.40.0030.00618.03
8.2.30.0040.00419.12
8.2.20.0030.00617.63
8.2.10.0030.00517.93
8.2.00.0030.00517.69
8.1.280.0000.01425.92
8.1.270.0040.00423.78
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00023.83
8.1.230.0110.00019.13
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0000.00817.23
8.1.180.0090.00018.10
8.1.170.0040.00418.64
8.1.160.0040.00422.09
8.1.150.0070.00018.89
8.1.140.0040.00417.36
8.1.130.0030.00317.82
8.1.120.0030.00317.38
8.1.110.0030.00517.45
8.1.100.0050.00317.40
8.1.90.0050.00217.51
8.1.80.0000.00717.37
8.1.70.0000.00717.44
8.1.60.0040.00417.59
8.1.50.0050.00317.40
8.1.40.0050.00317.47
8.1.30.0080.00017.64
8.1.20.0040.00417.55
8.1.10.0090.00017.62
8.1.00.0070.00017.34
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0080.00018.37
8.0.270.0070.00017.15
8.0.260.0060.00017.29
8.0.250.0070.00016.94
8.0.240.0000.00616.94
8.0.230.0020.00516.89
8.0.220.0070.00016.90
8.0.210.0000.00716.77
8.0.200.0040.00416.92
8.0.190.0000.00816.83
8.0.180.0070.00016.92
8.0.170.0040.00416.89
8.0.160.0030.00316.84
8.0.150.0000.00716.84
8.0.140.0000.00716.70
8.0.130.0000.00613.35
8.0.120.0040.00416.85
8.0.110.0040.00416.73
8.0.100.0030.00316.70
8.0.90.0040.00416.95
8.0.80.0070.00716.88
8.0.70.0040.00416.71
8.0.60.0040.00416.91
8.0.50.0040.00416.99
8.0.30.0120.00817.13
8.0.20.0170.00917.40
8.0.10.0000.00717.12
8.0.00.0090.00816.78
7.4.330.0030.00315.09
7.4.320.0030.00316.39
7.4.300.0080.00016.39
7.4.290.0060.00016.59
7.4.280.0070.00016.50
7.4.270.0030.00316.51
7.4.260.0040.00416.57
7.4.250.0000.00716.45
7.4.240.0030.00516.46
7.4.230.0000.00716.34
7.4.220.0150.00616.59
7.4.210.0070.00716.59
7.4.200.0040.00416.58
7.4.160.0100.00616.32
7.4.150.0100.00917.40
7.4.140.0130.01217.86
7.4.130.0120.00616.44
7.4.120.0120.00616.46
7.4.110.0150.00316.47
7.4.100.0120.00916.37
7.4.90.0100.01316.64
7.4.80.0060.01219.37
7.4.70.0080.00816.29
7.4.60.0030.01416.59
7.4.50.0000.00816.56
7.4.40.0140.00516.51
7.4.30.0060.00916.50
7.4.00.0030.01215.17
7.3.330.0000.00513.37
7.3.320.0020.00213.29
7.3.310.0050.00216.12
7.3.300.0030.00316.30
7.3.290.0060.00916.35
7.3.280.0100.00616.32
7.3.270.0070.01117.40
7.3.260.0080.00816.29
7.3.250.0150.00216.53
7.3.240.0120.00416.41
7.3.230.0090.00916.41
7.3.210.0170.00016.46
7.3.200.0160.00019.39
7.3.190.0070.01016.64
7.3.180.0090.00616.41
7.3.170.0090.00616.27
7.3.160.0080.00616.40
7.2.330.0090.01316.66
7.2.320.0030.01316.41
7.2.310.0080.01216.61
7.2.300.0100.00716.43
7.2.290.0070.01016.46
7.2.60.0030.01316.79
7.2.00.0030.01319.54
7.1.200.0000.00815.71
7.1.100.0000.01118.13
7.1.70.0040.00417.11
7.1.60.0070.01719.32
7.1.50.0000.02216.73
7.1.00.0030.07722.36
7.0.200.0000.00716.64
7.0.140.0130.06322.14
7.0.60.0070.06320.02
7.0.50.0000.05017.86
7.0.40.0100.08320.19
7.0.30.0470.07020.08
7.0.20.0230.06020.25
7.0.10.0030.05320.20
7.0.00.0130.07720.23
5.6.280.0000.07720.79
5.6.210.0070.05020.77
5.6.200.0230.07018.21
5.6.190.0030.04720.52
5.6.180.0230.08720.66
5.6.170.0270.08020.39
5.6.160.0130.06720.71
5.6.150.0170.05718.25
5.6.140.0130.07718.12
5.6.130.0100.05718.28
5.6.120.0170.08021.07
5.6.110.0000.09021.12
5.6.100.0170.06321.11
5.6.90.0070.08320.99
5.6.80.0100.07320.41
5.5.350.0000.04320.41
5.5.340.0130.05018.06
5.5.330.0030.04020.27
5.5.320.0000.06720.26
5.5.310.0270.04320.36
5.5.300.0100.07718.04
5.5.290.0030.07018.08
5.5.280.0030.05320.66
5.5.270.0230.07020.84
5.5.260.0070.09020.96
5.5.250.0100.08020.59
5.5.240.0300.06720.17
5.4.450.0200.02719.32
5.4.440.0800.06719.45
5.4.430.1000.04719.61
5.4.420.0670.00019.21
5.4.410.0670.00019.28
5.4.400.0630.00019.12
5.4.390.0630.00019.03
5.4.380.0370.06018.77
5.4.370.0600.06318.80
5.4.360.0430.06018.54
5.4.350.0330.05318.84
5.4.340.0400.05718.61
5.4.320.0070.04612.51
5.4.310.0020.04112.50
5.4.300.0080.04112.51
5.4.290.0030.04112.50
5.4.280.0080.03312.40
5.4.270.0050.03712.40
5.4.260.0060.05412.40
5.4.250.0070.03512.40
5.4.240.0020.04112.40
5.4.230.0090.03512.39
5.4.220.0050.03612.40
5.4.210.0040.03712.40
5.4.200.0060.03712.39
5.4.190.0100.04312.39
5.4.180.0100.03812.39
5.4.170.0080.04512.40
5.4.160.0090.03312.39
5.4.150.0090.03912.39
5.4.140.0060.04212.08
5.4.130.0100.04112.06
5.4.120.0080.04512.02
5.4.110.0050.03612.02
5.4.100.0070.04512.02
5.4.90.0050.04512.02
5.4.80.0070.03512.02
5.4.70.0050.03512.01
5.4.60.0080.03312.01
5.4.50.0080.03712.01
5.4.40.0080.03212.00
5.4.30.0060.03512.00
5.4.20.0060.03512.00
5.4.10.0060.03412.00
5.4.00.0090.03211.49
5.3.290.0040.04312.80
5.3.280.0100.04512.71
5.3.270.0060.04012.72
5.3.260.0070.04312.72
5.3.250.0050.04712.72
5.3.240.0080.04712.72
5.3.230.0080.04112.71
5.3.220.0100.03512.68
5.3.210.0110.03312.68
5.3.200.0080.03412.68
5.3.190.0020.04112.68
5.3.180.0080.03412.67
5.3.170.0070.03512.67
5.3.160.0060.03612.67
5.3.150.0040.03912.68
5.3.140.0060.03712.66
5.3.130.0070.03912.66
5.3.120.0040.04112.66
5.3.110.0080.05012.66
5.3.100.0050.04412.13
5.3.90.0070.04612.11
5.3.80.0100.04512.10
5.3.70.0070.04312.10
5.3.60.0060.03712.08
5.3.50.0050.03812.04
5.3.40.0060.03712.04
5.3.30.0040.03711.99
5.3.20.0040.03611.78
5.3.10.0080.03211.73
5.3.00.0050.03611.72
5.2.170.0080.0269.22
5.2.160.0040.0289.22
5.2.150.0080.0289.22
5.2.140.0070.0349.21
5.2.130.0040.0299.18
5.2.120.0070.0259.18
5.2.110.0090.0289.18
5.2.100.0050.0279.18
5.2.90.0040.0349.18
5.2.80.0040.0319.18
5.2.70.0060.0329.18
5.2.60.0050.0359.13
5.2.50.0060.0299.10
5.2.40.0040.0299.07
5.2.30.0050.0299.05
5.2.20.0020.0329.04
5.2.10.0080.0298.95
5.2.00.0030.0308.80
5.1.60.0050.0228.10
5.1.50.0040.0308.09
5.1.40.0030.0258.07
5.1.30.0110.0198.41
5.1.20.0060.0298.44
5.1.10.0060.0268.17
5.1.00.0040.0298.17
5.0.50.0030.0306.64
5.0.40.0040.0196.50
5.0.30.0050.0376.31
5.0.20.0080.0176.28
5.0.10.0020.0216.25
5.0.00.0070.0276.25
4.4.90.0040.0144.78
4.4.80.0030.0144.76
4.4.70.0020.0164.75
4.4.60.0050.0174.76
4.4.50.0020.0164.77
4.4.40.0040.0324.71
4.4.30.0010.0174.76
4.4.20.0020.0204.85
4.4.10.0050.0134.85
4.4.00.0060.0284.76
4.3.110.0020.0204.67
4.3.100.0050.0234.66
4.3.90.0020.0214.64
4.3.80.0030.0354.58
4.3.70.0060.0134.63
4.3.60.0020.0164.63
4.3.50.0000.0184.63
4.3.40.0030.0324.54
4.3.30.0010.0173.30
4.3.20.0020.0163.28
4.3.10.0010.0163.24
4.3.00.0000.02315.62

preferences:
38.07 ms | 401 KiB | 5 Q