3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected static $bar = 'bar'; function test() { echo 'Non-static access: ', var_export($this->bar, true), PHP_EOL; echo 'Static access: ', var_export(self::$bar, true), PHP_EOL; } } (new Foo)->test();

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.140.0070.00716.82
8.3.130.0080.00016.86
8.3.120.0000.00818.66
8.3.110.0050.00520.94
8.3.100.0030.00624.06
8.3.90.0040.00726.77
8.3.80.0090.00016.50
8.3.70.0150.00416.58
8.3.60.0050.01016.63
8.3.50.0100.00720.23
8.3.40.0080.00622.14
8.3.30.0000.01518.55
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.250.0030.00616.59
8.2.240.0090.00018.66
8.2.230.0180.00322.58
8.2.220.0100.00637.54
8.2.210.0070.01026.77
8.2.200.0090.00018.41
8.2.190.0150.00016.58
8.2.180.0120.00325.92
8.2.170.0070.01318.87
8.2.160.0130.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00021.00
8.2.110.0040.00420.93
8.2.100.0060.00619.42
8.2.90.0040.00418.03
8.2.80.0040.00420.49
8.2.70.0080.00017.50
8.2.60.0040.00417.63
8.2.50.0040.00417.63
8.2.40.0000.00919.52
8.2.30.0000.00817.92
8.2.20.0070.00019.19
8.2.10.0030.00517.99
8.2.00.0000.00719.18
8.1.300.0060.00319.86
8.1.290.0070.00430.84
8.1.280.0080.00825.92
8.1.270.0140.00024.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00422.19
8.1.230.0070.00320.91
8.1.220.0080.00017.74
8.1.210.0030.00518.85
8.1.200.0060.00317.22
8.1.190.0000.00817.10
8.1.180.0060.00318.10
8.1.170.0040.00418.64
8.1.160.0040.00418.72
8.1.150.0040.00418.52
8.1.140.0080.00017.37
8.1.130.0050.00219.02
8.1.120.0020.01017.38
8.1.110.0040.00417.33
8.1.100.0040.00417.35
8.1.90.0070.01117.28
8.1.80.0140.00617.32
8.1.70.0160.00417.21
8.1.60.0190.00317.50
8.1.50.0190.00317.50
8.1.40.0120.01017.46
8.1.30.0160.00517.39
8.1.20.0120.00817.39
8.1.10.0140.00717.34
8.1.00.0080.01417.32
8.0.300.0040.00420.07
8.0.290.0040.00416.75
8.0.280.0040.00418.46
8.0.270.0000.00718.02
8.0.260.0060.00316.80
8.0.250.0030.00417.02
8.0.240.0080.00017.00
8.0.230.0050.00316.75
8.0.220.0080.01116.77
8.0.210.0130.00316.81
8.0.200.0150.00416.89
8.0.190.0190.00016.80
8.0.180.0140.00416.69
8.0.170.0140.00416.76
8.0.160.0140.00516.77
8.0.150.0130.00416.75
8.0.140.0100.00716.68
8.0.130.0180.00016.72
8.0.120.0060.01316.85
8.0.110.0100.01016.80
8.0.100.0040.01416.68
8.0.90.0100.00716.79
8.0.80.0140.00416.82
8.0.70.0150.00316.64
8.0.60.0060.00816.70
8.0.50.0100.00416.52
8.0.30.0120.00016.68
8.0.20.0000.01216.80
8.0.10.0050.00816.84
8.0.00.0040.00716.96
7.4.330.0000.00515.55
7.4.320.0060.00016.34
7.4.300.0060.00916.32
7.4.290.0190.00016.34
7.4.280.0170.00216.46
7.4.270.0100.01016.47
7.4.260.0150.00616.29
7.4.250.0080.00316.39
7.4.240.0090.00515.99
7.4.230.0040.00716.23
7.4.220.0100.00616.43
7.4.210.0070.00716.47
7.4.200.0000.01016.20
7.4.190.0060.00516.50
7.4.180.0050.00516.42
7.4.160.0120.00016.37
7.4.150.0030.00915.98
7.4.140.0070.00516.21
7.4.130.0090.00516.08
7.4.120.0020.01116.27
7.4.110.0090.00316.12
7.4.100.0090.00416.17
7.4.90.0120.00016.40
7.4.80.0070.00715.95
7.4.70.0080.00415.97
7.4.60.0060.00616.21
7.4.50.0130.00016.21
7.4.40.0070.00715.86
7.4.30.0030.00916.00
7.4.20.0070.00716.20
7.4.10.0140.00016.20
7.4.00.0070.00716.34
7.3.330.0080.00816.40
7.3.320.0130.00416.39
7.3.310.0120.00516.40
7.3.300.0110.00616.19
7.3.290.0080.00816.35
7.3.280.0130.00416.23
7.3.270.0150.00216.46
7.3.260.0140.00316.20
7.3.250.0110.00616.37
7.3.240.0120.00416.25
7.3.230.0080.00916.39
7.3.220.0110.00816.13
7.3.210.0170.00016.16
7.3.200.0180.00016.30
7.3.190.0120.00616.32
7.3.180.0140.00316.12
7.3.170.0140.00516.06
7.3.160.0130.00516.40
7.3.150.0150.00316.36
7.3.140.0100.00916.33
7.3.130.0060.01116.33
7.3.120.0170.00216.32
7.3.110.0140.00416.26
7.3.100.0130.00516.02
7.3.90.0100.00716.41
7.3.80.0150.00416.26
7.3.70.0090.00916.34
7.3.60.0150.00316.23
7.3.50.0150.00316.34
7.3.40.0180.00016.37
7.3.30.0130.00316.43
7.3.20.0200.00416.23
7.3.10.0140.00516.21
7.3.00.0110.01016.19
7.2.340.0110.00816.28
7.2.330.0120.00716.41
7.2.320.0090.00916.32
7.2.310.0120.00516.16
7.2.300.0090.00816.17
7.2.290.0100.00816.35
7.2.280.0080.00916.25
7.2.270.0110.00616.10
7.2.260.0130.00516.18
7.2.250.0180.00316.34
7.2.240.0120.00816.27
7.2.230.0120.00816.41
7.2.220.0090.00816.33
7.2.210.0130.00416.12
7.2.200.0100.01016.40
7.2.190.0140.00616.54
7.2.180.0060.01016.46
7.2.170.0140.00416.60
7.2.160.0180.00016.50
7.2.150.0120.00816.52
7.2.140.0120.00716.57
7.2.130.0120.00816.70
7.2.120.0140.00516.73
7.2.110.0140.00516.68
7.2.100.0140.00416.49
7.2.90.0150.00316.45
7.2.80.0150.00216.50
7.2.70.0100.01016.46
7.2.60.0140.00416.30
7.2.50.0100.00716.55
7.2.40.0100.00816.56
7.2.30.0150.00316.63
7.2.20.0170.00016.54
7.2.10.0080.01216.67
7.2.00.0120.00716.49
7.1.330.0100.00715.60
7.1.320.0100.00515.57
7.1.310.0170.00015.29
7.1.300.0210.00015.45
7.1.290.0080.00815.50
7.1.280.0110.00515.49
7.1.270.0160.00015.26
7.1.260.0110.00515.25
7.1.250.0090.00915.39
7.1.240.0070.01015.38
7.1.230.0170.00015.47
7.1.220.0100.00515.24
7.1.210.0140.00315.45
7.1.200.0200.00315.45
7.1.190.0150.00315.52
7.1.180.0260.00015.22
7.1.170.0060.01115.23
7.1.160.0060.01115.32
7.1.150.0090.00915.40
7.1.140.0170.00015.49
7.1.130.0120.00615.39
7.1.120.0170.00015.36
7.1.110.0130.00415.40
7.1.100.0130.00415.25
7.1.90.0050.01115.25
7.1.80.0150.00215.24
7.1.70.0100.00715.25
7.1.60.0170.00015.27
7.1.50.0040.01315.44
7.1.40.0110.00715.25
7.1.30.0050.01015.47
7.1.20.0100.00515.05
7.1.10.0070.00715.45
7.1.00.0090.00715.30
7.0.330.0140.00515.21
7.0.320.0100.00515.09
7.0.310.0150.00014.89
7.0.300.0100.00515.21
7.0.290.0070.00715.22
7.0.280.0150.00014.94
7.0.270.0130.00215.15
7.0.260.0110.00415.01
7.0.250.0070.00715.25
7.0.240.0120.00415.29
7.0.230.0080.00815.14
7.0.220.0150.00015.16
7.0.210.0150.00015.19
7.0.200.0080.00815.16
7.0.190.0150.00015.09
7.0.180.0120.00315.22
7.0.170.0080.00615.06
7.0.160.0090.00615.21
7.0.150.0110.00715.10
7.0.140.0150.00015.06
7.0.130.0120.00315.32
7.0.120.0100.00414.96
7.0.110.0170.00815.10
7.0.100.0080.00814.92
7.0.90.0160.00015.18
7.0.80.0110.00415.08
7.0.70.0150.00015.08
7.0.60.0080.00815.24
7.0.50.0130.00314.88
7.0.40.0140.00015.13
7.0.30.0100.00515.26
7.0.20.0120.00314.97
7.0.10.0040.01115.14
7.0.00.0030.01015.00
5.6.400.0120.00215.55
5.6.390.0150.00015.72
5.6.380.0070.00715.75
5.6.370.0100.00515.65
5.6.360.0110.00315.64
5.6.350.0110.00315.72
5.6.340.0120.00315.61
5.6.330.0120.00415.75
5.6.320.0120.00315.73
5.6.310.0050.01115.57
5.6.300.0110.00415.45
5.6.290.0150.00015.80
5.6.280.0090.00415.79
5.6.270.0100.00415.62
5.6.260.0000.01515.73
5.6.250.0140.00015.58
5.6.240.0070.00815.74
5.6.230.0150.00015.64
5.6.220.0140.00015.63
5.6.210.0140.00015.66
5.6.200.0060.00815.70
5.6.190.0100.00315.88
5.6.180.0090.00515.62
5.6.170.0130.00015.87
5.6.160.0070.00715.97
5.6.150.0140.00015.60
5.6.140.0090.00615.70
5.6.130.0070.00715.79
5.6.120.0040.01115.79
5.6.110.0090.00615.72
5.6.100.0140.00015.57
5.6.90.0070.00715.63
5.6.80.0150.00015.59
5.6.70.0120.00415.85
5.6.60.0120.00215.71
5.6.50.0140.00015.73
5.6.40.0130.00015.61
5.6.30.0150.00015.63
5.6.20.0150.00015.68
5.6.10.0070.00815.67
5.6.00.0120.00215.68
5.5.380.0070.00715.84
5.5.370.0110.00215.77
5.5.360.0110.00415.77
5.5.350.0160.00015.48
5.5.340.0130.00315.59
5.5.330.0100.00615.57
5.5.320.0100.00415.77
5.5.310.0080.00815.43
5.5.300.0160.00015.57
5.5.290.0130.00415.64
5.5.280.0080.00815.64
5.5.270.0150.00015.48
5.5.260.0100.00315.64
5.5.250.0080.00815.64
5.5.240.0070.00715.93
5.5.230.0110.00415.51
5.5.220.0100.00415.51
5.5.210.0100.00515.92
5.5.200.0130.00015.52
5.5.190.0090.00515.71
5.5.180.0120.00315.45
5.5.170.0090.00615.41
5.5.160.0060.01015.50
5.5.150.0060.00915.37
5.5.140.0090.00715.35
5.5.130.0120.00315.40
5.5.120.0100.00515.54
5.5.110.0140.00015.49
5.5.100.0090.00415.84
5.5.90.0100.00315.80
5.5.80.0110.00315.63
5.5.70.0090.00615.69
5.5.60.0150.00015.73
5.5.50.0090.00615.82
5.5.40.0110.00315.74
5.5.30.0050.00915.85
5.5.20.0080.00615.84
5.5.10.0150.00015.69
5.5.00.0040.01215.71
5.4.450.0060.00612.74
5.4.440.0060.00612.53
5.4.430.0100.00212.84
5.4.420.0090.00312.50
5.4.410.0120.00012.59
5.4.400.0070.00512.46
5.4.390.0040.00812.45
5.4.380.0050.00512.46
5.4.370.0120.00012.63
5.4.360.0130.00012.38
5.4.350.0060.00612.78
5.4.340.0060.00612.69
5.4.330.0090.00212.77
5.4.320.0080.00412.69
5.4.310.0080.00312.69
5.4.300.0060.00612.71
5.4.290.0080.00412.65
5.4.280.0040.00712.74
5.4.270.0120.00012.48
5.4.260.0060.00612.81
5.4.250.0060.00512.45
5.4.240.0110.00012.37
5.4.230.0110.00012.59
5.4.220.0050.00512.58
5.4.210.0060.00512.40
5.4.200.0120.00012.44
5.4.190.0040.00912.18
5.4.180.0040.00812.23
5.4.170.0040.00812.59
5.4.160.0090.00312.44
5.4.150.0080.00412.23
5.4.140.0080.00412.50
5.4.130.0100.00012.57
5.4.120.0040.00712.68
5.4.110.0050.00512.76
5.4.100.0110.00012.41
5.4.90.0090.00312.58
5.4.80.0060.00612.57
5.4.70.0060.00612.70
5.4.60.0030.00712.48
5.4.50.0110.00012.62
5.4.40.0060.00612.47
5.4.30.0090.00312.89
5.4.20.0110.00012.57
5.4.10.0120.00012.53
5.4.00.0090.00312.52
5.3.290.0060.00612.69
5.3.280.0070.00412.81
5.3.270.0090.00112.81
5.3.260.0110.00012.57
5.3.250.0110.00012.63
5.3.240.0100.00012.55
5.3.230.0090.00312.85
5.3.220.0070.00412.56
5.3.210.0040.00812.56
5.3.200.0040.00812.75
5.3.190.0090.00412.83
5.3.180.0070.00312.95
5.3.170.0090.00312.96
5.3.160.0080.00412.99
5.3.150.0100.00012.70
5.3.140.0070.00412.71
5.3.130.0110.00012.74
5.3.120.0110.00012.94
5.3.110.0090.00312.79
5.3.100.0070.00412.89
5.3.90.0060.00612.74
5.3.80.0000.01212.81
5.3.70.0080.00312.62
5.3.60.0000.01212.61
5.3.50.0110.00012.55
5.3.40.0070.00312.81
5.3.30.0000.01012.79
5.3.20.0040.00712.75
5.3.10.0060.00612.39
5.3.00.0110.00012.43
5.2.170.0100.00011.74
5.2.160.0060.00411.85
5.2.150.0080.00311.69
5.2.140.0090.00011.53
5.2.130.0080.00211.57
5.2.120.0070.00311.87
5.2.110.0080.00211.64
5.2.100.0050.00511.87
5.2.90.0050.00411.84
5.2.80.0090.00011.62
5.2.70.0060.00311.48
5.2.60.0070.00311.64
5.2.50.0000.00911.67
5.2.40.0070.00311.61
5.2.30.0070.00311.42
5.2.20.0030.00711.39
5.2.10.0050.00511.35
5.2.00.0000.00911.30
5.1.60.0050.00310.68
5.1.50.0000.00710.63
5.1.40.0060.00310.75
5.1.30.0090.00011.04
5.1.20.0050.00510.79
5.1.10.0050.00310.69
5.1.00.0040.00410.80
5.0.50.0030.0039.93
5.0.40.0050.00210.00
5.0.30.0030.00310.02
5.0.20.0040.0049.70
5.0.10.0040.0029.88
5.0.00.0000.0089.80
4.4.90.0000.0049.38
4.4.80.0050.0009.38
4.4.70.0040.0009.38
4.4.60.0040.0009.38
4.4.50.0000.0049.38
4.4.40.0000.0039.38
4.4.30.0000.0049.38
4.4.20.0000.0049.38
4.4.10.0000.0049.38
4.4.00.0000.0049.38
4.3.110.0040.0009.38
4.3.100.0030.0009.38
4.3.90.0040.0009.38
4.3.80.0040.0009.38
4.3.70.0000.0049.38
4.3.60.0050.0009.38
4.3.50.0040.0009.38
4.3.40.0030.0009.38
4.3.30.0000.0039.38
4.3.20.0000.0039.38
4.3.10.0030.0009.38
4.3.00.0030.0009.38

preferences:
36.93 ms | 403 KiB | 5 Q