3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface ValueAccessor { public function & accessValue($object, $memberName); } final class DemoFile implements ValueAccessor { public function & accessValue($object, $memberName) { return count($object); } } $acc = new DemoFile(); $array = [1,2,3]; echo $acc->accessValue($array, 'count');

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.5.30.0100.00719.55
8.5.20.0100.00821.25
8.5.10.0100.00718.24
8.5.00.0120.01019.98
8.4.180.0150.00719.54
8.4.170.0140.00819.66
8.4.160.0140.00821.52
8.4.150.0070.00516.86
8.4.140.0120.00917.59
8.4.130.0080.00717.97
8.4.120.0070.00324.05
8.4.110.0050.00722.54
8.4.100.0120.00917.76
8.4.90.0040.00518.61
8.4.80.0050.00318.03
8.4.70.0140.00617.86
8.4.60.0130.00720.72
8.4.50.0100.01018.80
8.4.40.0050.00319.50
8.4.30.0130.00618.60
8.4.20.0040.00818.94
8.4.10.0090.00017.64
8.3.300.0090.01420.41
8.3.290.0120.00820.81
8.3.280.0100.01018.54
8.3.270.0140.00616.75
8.3.260.0160.00416.91
8.3.250.0090.00618.75
8.3.240.0040.00517.06
8.3.230.0110.00916.39
8.3.220.0050.00317.31
8.3.210.0150.00518.50
8.3.200.0040.00416.67
8.3.190.0130.00717.13
8.3.180.0050.00418.16
8.3.170.0030.01417.09
8.3.160.0140.00416.50
8.3.150.0040.01119.09
8.3.140.0000.00919.14
8.3.130.0040.00418.54
8.3.120.0080.00818.93
8.3.110.0090.00020.94
8.3.100.0060.00924.06
8.3.90.0090.00926.77
8.3.80.0080.00016.63
8.3.70.0210.00016.88
8.3.60.0120.00316.88
8.3.50.0140.00016.25
8.3.40.0110.00818.53
8.3.30.0120.00318.90
8.3.20.0030.01224.18
8.3.10.0060.00924.66
8.3.00.0040.00426.16
8.2.300.0150.00718.00
8.2.290.0090.00120.45
8.2.280.0110.00822.26
8.2.270.0120.00617.02
8.2.260.0110.00718.35
8.2.250.0040.00416.55
8.2.240.0090.00019.17
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0040.01526.77
8.2.200.0000.00816.88
8.2.190.0110.00716.75
8.2.180.0140.00725.92
8.2.170.0040.01219.09
8.2.160.0130.00722.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0040.00720.98
8.2.100.0090.00317.91
8.2.90.0000.00719.08
8.2.80.0060.00317.97
8.2.70.0080.00017.63
8.2.60.0080.00018.05
8.2.50.0080.00318.07
8.2.40.0000.00817.96
8.2.30.0040.00418.05
8.2.20.0050.00317.93
8.2.10.0040.00419.17
8.2.00.0040.00419.18
8.1.340.0090.01219.89
8.1.330.0100.00923.76
8.1.320.0070.01316.23
8.1.310.0090.00618.55
8.1.300.0050.00518.41
8.1.290.0090.00030.84
8.1.280.0130.00325.92
8.1.270.0040.00423.99
8.1.260.0000.00828.09
8.1.250.0000.00828.09
8.1.240.0050.00521.21
8.1.230.0120.00017.42
8.1.220.0000.00717.79
8.1.210.0000.00818.77
8.1.200.0060.00317.47
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0030.00618.64
8.1.160.0070.00019.11
8.1.150.0000.00818.80
8.1.140.0050.00218.88
8.1.130.0030.00320.10
8.1.120.0000.00817.50
8.1.110.0070.00017.41
8.1.100.0040.00417.46
8.1.90.0070.00017.36
8.1.80.0060.00317.32
8.1.70.0070.00017.43
8.1.60.0000.00717.60
8.1.50.0050.00317.52
8.1.40.0040.00417.53
8.1.30.0040.00417.59
8.1.20.0000.00917.58
8.1.10.0070.00017.58
8.1.00.0040.00417.56
8.0.300.0000.00718.77
8.0.290.0040.00416.58
8.0.280.0040.00418.36
8.0.270.0020.00518.07
8.0.260.0060.00018.36
8.0.250.0000.00717.01
8.0.240.0000.00716.93
8.0.230.0030.00317.03
8.0.220.0060.00316.86
8.0.210.0070.00016.91
8.0.200.0040.00416.98
8.0.190.0030.00516.97
8.0.180.0040.00416.87
8.0.170.0060.00316.89
8.0.160.0000.00717.04
8.0.150.0030.00316.78
8.0.140.0060.00616.96
8.0.130.0030.00313.38
8.0.120.0030.00516.95
8.0.110.0040.00416.91
8.0.100.0000.00717.07
8.0.90.0000.00817.02
8.0.80.0130.00716.99
8.0.70.0070.00016.91
8.0.60.0000.00816.90
8.0.50.0000.00716.94
8.0.30.0090.00716.91
8.0.20.0080.01417.02
8.0.10.0090.01017.04
8.0.00.0100.00917.08
7.4.330.0020.00215.55
7.4.320.0030.00316.65
7.4.300.0030.00316.61
7.4.290.0000.00816.46
7.4.280.0030.00516.59
7.4.270.0030.00316.61
7.4.260.0030.00313.30
7.4.250.0040.00416.54
7.4.240.0000.00716.47
7.4.230.0040.00716.39
7.4.220.0020.00516.52
7.4.210.0050.01116.57
7.4.200.0030.00316.51
7.4.160.0110.00816.58
7.4.150.0070.01216.49
7.4.140.0120.00816.46
7.4.130.0140.00716.46
7.4.120.0070.01516.38
7.4.110.0090.01016.48
7.4.100.0120.01016.50
7.4.90.0140.00716.44
7.4.80.0140.00916.50
7.4.70.0070.01216.50
7.4.60.0150.00616.47
7.4.50.0120.00916.42
7.4.40.0120.00716.35
7.4.30.0110.01216.45
7.4.20.0140.00616.50
7.4.10.0100.00916.48
7.4.00.0060.01016.50
7.3.330.0030.00616.17
7.3.320.0000.00613.25
7.3.310.0000.00616.19
7.3.300.0030.00316.26
7.3.290.0060.01016.30
7.3.280.0060.00816.27
7.3.270.0130.00716.25
7.3.260.0120.00816.28
7.3.250.0110.00916.30
7.3.240.0110.00916.26
7.3.230.0100.01116.31
7.3.220.0140.00916.29
7.3.210.0130.01016.23
7.3.200.0120.00816.22
7.3.190.0090.00916.28
7.3.180.0080.01216.28
7.3.170.0160.00516.31
7.3.160.0100.01016.26
7.3.150.0090.01316.26
7.3.140.0120.00916.29
7.3.130.0130.00716.27
7.3.120.0120.01116.23
7.3.110.0080.01016.14
7.3.100.0130.00716.19
7.3.90.0110.00916.47
7.3.80.0100.00916.20
7.3.70.0090.00916.31
7.3.60.0130.00516.39
7.3.50.0130.00816.39
7.3.40.0110.00816.41
7.3.30.0110.00916.37
7.3.20.0160.00717.30
7.3.10.0250.01017.21
7.3.00.0110.00917.21
7.2.340.0090.02216.29
7.2.330.0270.01516.36
7.2.320.0230.00816.38
7.2.310.0080.01916.35
7.2.300.0250.00816.38
7.2.290.0130.02016.30
7.2.280.0210.01116.23
7.2.270.0200.01316.40
7.2.260.0200.00816.37
7.2.250.0290.00816.29
7.2.240.0210.01416.34
7.2.230.0220.01116.29
7.2.220.0200.01216.32
7.2.210.0220.00816.39
7.2.200.0260.00816.62
7.2.190.0220.01116.43
7.2.180.0180.01516.48
7.2.170.0230.00816.59
7.2.160.0270.00316.59
7.2.150.0200.01416.63
7.2.140.0130.01316.75
7.2.130.0210.00816.79
7.2.120.0230.00816.76
7.2.110.0180.01116.73
7.2.100.0190.01316.70
7.2.90.0170.01316.66
7.2.80.0250.00816.52
7.2.70.0160.01616.64
7.2.60.0180.00916.71
7.2.50.0190.01016.59
7.2.40.0270.00416.72
7.2.30.0160.01616.73
7.2.20.0200.01616.71
7.2.10.0290.01316.70
7.2.00.0240.00616.71
7.1.330.0520.01215.51
7.1.320.0170.01715.69
7.1.310.0250.00515.59
7.1.300.0180.01015.48
7.1.290.0260.00415.62
7.1.280.0220.01115.59
7.1.270.0200.00715.53
7.1.260.0170.01015.52
7.1.250.0330.00615.47
7.1.240.0220.00715.37
7.1.230.0250.00415.50
7.1.220.0300.01115.54
7.1.210.0220.00615.54
7.1.200.0220.01115.54
7.1.190.0250.00715.55
7.1.180.0130.01315.40
7.1.170.0200.01115.46
7.1.160.0290.01315.48
7.1.150.0140.01415.48
7.1.140.0190.01015.50
7.1.130.0210.00515.45
7.1.120.2010.00715.43
7.1.110.0210.00515.49
7.1.100.0170.00915.45
7.1.90.0210.00915.41
7.1.80.0160.00915.55
7.1.70.0220.00315.30
7.1.60.0160.01215.61
7.1.50.0190.01115.52
7.1.40.0150.00815.50
7.1.30.0170.00915.62
7.1.20.0160.00815.51
7.1.10.0290.00015.43
7.1.00.0230.00415.39
7.0.330.0220.00715.04
7.0.320.0210.00915.20
7.0.310.0390.01115.23
7.0.300.0240.00815.14
7.0.290.0150.01215.17
7.0.280.0180.00615.08
7.0.270.1150.01315.18
7.0.260.0210.00415.19
7.0.250.0120.01215.29
7.0.240.0120.01215.42
7.0.230.0210.00415.23
7.0.220.0100.01315.18
7.0.210.0250.00715.25
7.0.200.0230.00015.13
7.0.190.0120.01215.29
7.0.180.0190.01115.18
7.0.170.0180.01115.23
7.0.160.0940.00915.11
7.0.150.0050.02115.09
7.0.140.0130.01714.99
7.0.130.0200.01015.26
7.0.120.0490.01115.29
7.0.110.0080.01715.22
7.0.100.0200.01015.27
7.0.90.0350.00415.15
7.0.80.0160.01215.21
7.0.70.0120.01215.14
7.0.60.0120.01215.20
7.0.50.0090.01915.11
7.0.40.0110.01415.27
7.0.30.0150.00815.15
7.0.20.0150.00615.16
7.0.10.0180.01215.17
7.0.00.0260.01215.15
5.6.400.0180.01315.95
5.6.390.0210.00815.93
5.6.380.0150.00915.93
5.6.370.0160.01215.80
5.6.360.0110.01515.87
5.6.350.0140.01515.87
5.6.340.0160.00815.93
5.6.330.0150.00915.89
5.6.320.0200.00415.84
5.6.310.0160.01215.85
5.6.300.0220.00915.67
5.6.290.0120.01215.77
5.6.280.0110.01915.87
5.6.270.0220.00215.87
5.6.260.0230.00415.81
5.6.250.0200.01015.77
5.6.240.0180.00915.81
5.6.230.0230.00415.90
5.6.220.0210.01215.87
5.6.210.0200.00815.89
5.6.200.0230.00715.86
5.6.190.0240.00015.98
5.6.180.0110.01515.91
5.6.170.0230.00915.88
5.6.160.0140.01116.06
5.6.150.0190.00916.06
5.6.140.0210.00815.77
5.6.130.0180.01515.91
5.6.120.0160.01215.88
5.6.110.0350.01115.83
5.6.100.0110.01715.81
5.6.90.0150.01315.73
5.6.80.0200.00515.98
5.6.70.0210.00615.98
5.6.60.0110.01115.96
5.6.50.0150.01115.82
5.6.40.0140.01415.69
5.6.30.0140.01115.70
5.6.20.0140.01115.76
5.6.10.0140.01115.92
5.6.00.0170.01015.61
5.5.380.0130.01315.93
5.5.370.0210.00415.87
5.5.360.0180.00815.61
5.5.350.0090.01715.75
5.5.340.0170.01115.68
5.5.330.0270.00015.67
5.5.320.0130.01715.65
5.5.310.0200.00715.70
5.5.300.0170.01415.84
5.5.290.0150.01515.67
5.5.280.0180.00915.70
5.5.270.0190.00515.74
5.5.260.0170.00915.64
5.5.250.0160.01115.88
5.5.240.0180.00615.84
5.5.230.0180.00715.92
5.5.220.0200.00315.68
5.5.210.0130.01615.91
5.5.200.0150.01115.61
5.5.190.0180.01115.64
5.5.180.0090.01415.53
5.5.170.0220.00415.61
5.5.160.0150.00915.68
5.5.150.0150.00815.50
5.5.140.0140.01115.48
5.5.130.0450.00415.51
5.5.120.0220.00015.49
5.5.110.0230.00015.71
5.5.100.0110.01115.75
5.5.90.0120.01215.91
5.5.80.0220.00015.73
5.5.70.0370.00615.85
5.5.60.0150.00815.89
5.5.50.0180.00715.82
5.5.40.0140.00915.79
5.5.30.0190.00615.78
5.5.20.0180.01015.77
5.5.10.0100.01015.68
5.5.00.0170.00815.67
5.4.450.0180.00412.71
5.4.440.0140.00712.63
5.4.430.0130.01012.70
5.4.420.0150.00612.70
5.4.410.0150.00612.71
5.4.400.0180.00012.61
5.4.390.0090.00912.73
5.4.380.0180.00012.62
5.4.370.0150.00712.60
5.4.360.0080.00812.58
5.4.350.0060.01312.67
5.4.340.0090.00912.57
5.4.330.0170.00612.57
5.4.320.0160.00012.65
5.4.310.0130.00412.74
5.4.300.0140.00412.73
5.4.290.0090.01312.62
5.4.280.0110.01112.61
5.4.270.0110.00712.66
5.4.260.0110.01112.68
5.4.250.0130.00512.59
5.4.240.0140.00612.58
5.4.230.0130.00412.46
5.4.220.0080.01212.46
5.4.210.0120.00612.41
5.4.200.0130.00712.47
5.4.190.0120.00712.36
5.4.180.0240.00912.45
5.4.170.0160.00812.54
5.4.160.0190.00512.52
5.4.150.0230.00012.45
5.4.140.0120.00912.55
5.4.130.0160.00412.66
5.4.120.0190.00012.61
5.4.110.0190.00412.78
5.4.100.0150.00412.76
5.4.90.0180.00612.71
5.4.80.0180.00512.82
5.4.70.0110.00612.85
5.4.60.0050.01212.84
5.4.50.0180.00012.73
5.4.40.0040.01412.67
5.4.30.0140.00712.85
5.4.20.0130.01012.79
5.4.10.0220.00012.75
5.4.00.0320.01012.48
5.3.290.0120.00612.94
5.3.280.0060.01012.67
5.3.270.0110.00712.84
5.3.260.0130.01012.78
5.3.250.0110.00712.83
5.3.240.0090.01212.62
5.3.230.0190.00712.80
5.3.220.0090.01512.68
5.3.210.0140.00612.70
5.3.200.0080.01112.80
5.3.190.0250.00012.78
5.3.180.0150.00812.98
5.3.170.0130.00812.85
5.3.160.0140.00613.09
5.3.150.0130.01012.96
5.3.140.0150.00512.80
5.3.130.0170.00412.77
5.3.120.0150.00312.77
5.3.110.0170.00812.93
5.3.100.0130.00912.90
5.3.90.0180.00012.97
5.3.80.0110.00812.84
5.3.70.0090.00912.87
5.3.60.0180.00412.89
5.3.50.0160.00212.86
5.3.40.0170.00312.84
5.3.30.0100.01012.83
5.3.20.0120.00612.86
5.3.10.0090.00912.64
5.3.00.0130.00712.63
5.2.170.0180.00011.80
5.2.160.0130.00511.86
5.2.150.0180.00311.80
5.2.140.0120.00611.75
5.2.130.0110.00411.73
5.2.120.0070.01111.71
5.2.110.0100.00711.90
5.2.100.0130.00311.91
5.2.90.0120.00412.02
5.2.80.0170.00411.68
5.2.70.0090.00911.75
5.2.60.0210.00711.59
5.2.50.0030.01411.75
5.2.40.0120.00911.69
5.2.30.0090.00611.63
5.2.20.0100.01011.51
5.2.10.0130.00311.44
5.2.00.0120.00311.55
5.1.60.0050.01110.86
5.1.50.0130.00010.76
5.1.40.0100.00810.98
5.1.30.0100.00511.12
5.1.20.0120.00310.87
5.1.10.0110.00510.93
5.1.00.0110.00310.66
5.0.50.0150.00210.32
5.0.40.0110.0029.82
5.0.30.0140.0009.79
5.0.20.0160.0009.88
5.0.10.0040.0119.71
5.0.00.0110.0049.61
4.4.90.0040.0048.84
4.4.80.0050.0028.84
4.4.70.0080.0008.84
4.4.60.0120.0088.84
4.4.50.0050.0038.84
4.4.40.0030.0078.84
4.4.30.0050.0058.84
4.4.20.0060.0038.84
4.4.10.0030.0068.84
4.4.00.0000.0078.84
4.3.110.0070.0008.84
4.3.100.0030.0068.84
4.3.90.0050.0048.84
4.3.80.0040.0058.84
4.3.70.0040.0048.84
4.3.60.0080.0008.84
4.3.50.0000.0078.84
4.3.40.0070.0008.84
4.3.30.0000.0088.84
4.3.20.0060.0008.84
4.3.10.0000.0068.84
4.3.00.0070.0008.84

preferences:
74.56 ms | 2696 KiB | 5 Q